Note: This file is auto-generated from the SuperTux scripting interface source code, using the template ScriptingPage.md.
This class provides additional controlling functions for a sector, other than the ones listed at GameObjectManager.
An instance under sector.settings
is available from scripts and the console.
Method | Explanation |
---|---|
set_gravity(float gravity) |
Sets the sector's gravity. |
add_object(string class_name, string name, int posX, int posY, string direction, string data) |
Adds a MovingObject to the game. class_name - GameObject's class. name - Name of the created object. posX - X position inside the current sector. posY - Y position inside the current sector. direction - Direction. data - Additional data. |
None.