# HG changeset patch # User sheepyluva@gmail.com # Date 1390310971 0 # Node ID 3552b458f1eaa00cec4d72c92055af42af1b446b # Parent 4793d4b4e6bea4dbf6c1433be1fc5369fad5fb89 add SetGravity and GetGravity diff -r 4793d4b4e6be -r 3552b458f1ea LuaAPI.wiki --- a/LuaAPI.wiki Mon Jan 20 08:07:59 2014 +0000 +++ b/LuaAPI.wiki Tue Jan 21 13:29:31 2014 +0000 @@ -670,6 +670,18 @@ Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping. + +=== !SetGravity(percent) === + +
Changes the current gravity of the game in percent (relative to default, integer value). +Setting it to 100 will set gravity to default gravity of hedgewars, 200 will double it, etc. ++ +=== !GetGravity() === + +
Returns the current gravity in percent ++ === !SetZoom(zoomLevel) ===
Sets the zoom level. The value for maximum zoom is currently 1.0 and for minimum 3.0 The default zoom level is 2.0