-
-
Notifications
You must be signed in to change notification settings - Fork 539
ScriptingSector
Lennard Hofmann edited this page Dec 6, 2020
·
13 revisions
The Sector
class provides basic controlling functions for the current sector.
An instance under sector.settings
is available from scripts and the console.
fade_to_ambient_light(float red, float green, float blue, float
fadetime) |
Fades to specified ambient light color in fadetime seconds. |
float get_ambient_red() |
Returns the specified channel of the ambient light color. |
float get_ambient_green() | |
float get_ambient_blue() | |
set_ambient_light(float red, float green, float blue) |
Sets the sector's ambient light to the specified color. |
set_gravity(float gravity) |
Sets the sector's gravity. |
set_music(string filename) |
Sets the sector's music (full filename relative to the music folder). |
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