-
Notifications
You must be signed in to change notification settings - Fork 8
love
The love
table contains all of the modules that WiiLÖVE offers. However, it is also a module itself. It has some pre-defined functions and callbacks that can be defined by the developer.
These are functions that relate to WiiLÖVE's status.
Gets the current running version of WiiLÖVE.
major, minor, patch = love.getVersion()
-
number major
- The major version of WiiLÖVE.
-
number minor
- The minor version of WiiLÖVE.
-
number patch
- The patch version of WiiLÖVE.
These are developer-defined functions that get called during different occasions at runtime.
Called exactly once at the beginning of the game.
love.load()
Used to update the state of the game every frame.
love.update(dt)
-
number dt
- Time since the last update in seconds.
Used to draw on the screen every frame.
love.draw()
Triggered when the HOME button is pressed. The game will quit after this function runs unless the function returns an aborted status.
abort = love.homepressed()
-
boolean abort
- Abort quitting. If true, do not quit the game.
Called when a Wiimote is connected.
love.wiimoteconnected(wiimote)
-
Wiimote wiimote
- The newly connected Wiimote.
Called when a Wiimote is disconnected.
love.wiimoteconnected(wiimote)
-
Wiimote wiimote
- The now-disconnected Wiimote.