Quit

(Difference between revisions)
Jump to: navigation, search
(Created page with "Bind a key to quit the game Example : function onSceneUpdate() if isKeyPressed("K") then quit() end end")
 
Line 6: Line 6:
 
         if isKeyPressed("K") then quit() end
 
         if isKeyPressed("K") then quit() end
 
     end
 
     end
 +
 +
[[Category:Lua scripting]]

Revision as of 19:17, 4 February 2014

Bind a key to quit the game

Example :

   function onSceneUpdate()
       if isKeyPressed("K") then quit() end
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox