-
-
Notifications
You must be signed in to change notification settings - Fork 491
ScriptingSector
SuperTux Bot edited this page Aug 12, 2024
·
10 revisions
This file is auto-generated from the SuperTux 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.
This class inherits functions and variables from the following base classes:
- Base::Sector
- GameObjectManager
Method | Explanation |
---|---|
bool is_free_of_solid_tiles(float left, float top, float right, float bottom, bool ignore_unisolid) |
Checks if the specified sector-relative rectangle is free of solid tiles.ignore_unisolid - If true , unisolid tiles will be ignored. |
bool is_free_of_statics(float left, float top, float right, float bottom, bool ignore_unisolid) |
Checks if the specified sector-relative rectangle is free of both: 1) Solid tiles.ignore_unisolid - If true , unisolid tiles will be ignored. |
bool is_free_of_movingstatics(float left, float top, float right, float bottom) |
Checks if the specified sector-relative rectangle is free of both: 1) Solid tiles. |
bool is_free_of_specifically_movingstatics(float left, float top, float right, float bottom) |
Checks if the specified sector-relative rectangle is free of MovingObject s in COLGROUP_MOVINGSTATIC . |
void set_gravity(float gravity) |
|
float get_gravity(float gravity) |
Variable | Explanation |
---|---|
float gravity |
The sector's gravity. |
None.
Home
Guidelines
Game Mechanics
Tools
Engine
- Cameras in other games
- Collision
- Configuration File
- Console
- Cutscenes
- Game_Engine
- Lighting
- Map_transformer
- Portables
- SceneGraph
- Scripting
Specifications
Milestones
- Milestone 1 Analysis
- Milestone 2 Design Document
- Milestone 2 Design Document Old
- Milestone 3 Design Document
Building (mostly outdated)
- INSTALL.md
- Building
- Building on macOS
- Building SuperTux
- Building on Windows
- Building with MXE (cross-compile)
Meetings