Quit
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lua-function|quit|}} | ||
+ | |||
Bind a key to quit the game | Bind a key to quit the game | ||
Line 8: | Line 10: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:System]] |
Latest revision as of 16:55, 8 February 2014
quit()
Bind a key to quit the game
Example :
function onSceneUpdate() if isKeyPressed("K") then quit() end end