Available since LÖVE 0.9.1 |
This function is not supported in earlier versions. |
Gets the current running version of LÖVE.
major, minor, revision, codename = love.getVersion( )
None.
number major
number minor
number revision
string codename
For LÖVE versions below 0.9.1, the following variables can be used instead (and still work in 0.9.2 and newer):
love._version_major love._version_minor love._version_revision
function love.draw() local major, minor, revision, codename = love.getVersion() local str = string.format("Version %d.%d.%d - %s", major, minor, revision, codename) love.graphics.print(str, 20, 20) end