Quit
From MaratisWiki
(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) |
||
(2 intermediate revisions 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 6: | Line 8: | ||
if isKeyPressed("K") then quit() end | if isKeyPressed("K") then quit() end | ||
end | end | ||
+ | |||
+ | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:System]] |
Latest revision as of 17:55, 8 February 2014
quit()
Bind a key to quit the game
Example :
function onSceneUpdate() if isKeyPressed("K") then quit() end end