Changes

Jump to navigation Jump to search

require

2 bytes removed, 13:23, 7 June 2012
no edit summary
Line 4: Line 4:       −
The physics module is the chipmunk [[Physics Engine]].
+
* ''physics'' is the [[Physics Engine]].
   −
color is just a table containing colors. (color.red (or color["red"]) will return the color code for red.)
+
* ''color'' is just a table containing colors. (color.red (or color["red"]) will return the color code for red.)
 +
 
 +
* ''strict'' is a module (not tested) which, apparently, makes it so Lua checks uses of undeclared global variables. All global variables must be 'declared' through a regular assignment (even assigning nil will do) in a main chunk before being used anywhere or assigned to inside a function.
   −
'strict' is a module (not tested) which, apparently, makes it so Lua checks uses of undeclared global variables. All global variables must be 'declared' through a regular assignment (even assigning nil will do) in a main chunk before being used anywhere or assigned to inside a function.
      
'''Usage:'''  
 
'''Usage:'''  
 
require 'modulename'
 
require 'modulename'
 +
    
{{Since|3.2}}
 
{{Since|3.2}}

Navigation menu