Quit
(Difference between revisions)
(Created page with "Bind a key to quit the game Example : function onSceneUpdate() if isKeyPressed("K") then quit() end end") |
Dahnielson (Talk | contribs) |
||
| Line 6: | Line 6: | ||
if isKeyPressed("K") then quit() end | if isKeyPressed("K") then quit() end | ||
end | end | ||
| + | |||
| + | [[Category:Lua scripting]] | ||
Revision as of 18:17, 4 February 2014
Bind a key to quit the game
Example :
function onSceneUpdate()
if isKeyPressed("K") then quit() end
end