-
-
Notifications
You must be signed in to change notification settings - Fork 491
ScriptingGameObjectManager
SuperTux Bot edited this page Jul 31, 2024
·
6 revisions
This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
This class provides basic controlling functions for a sector.
For in-level sectors, an instance under sector.settings
is available from scripts and the console.
For worldmap sectors, such instance is available under worldmap.settings
.
The following classes inherit functions and variables from this class:
Method | Explanation |
---|---|
void set_ambient_light(float red, float green, float blue) |
Sets the sector's ambient light to the specified color. |
void fade_to_ambient_light(float red, float green, float blue, float fadetime) |
Fades to a specified ambient light color in fadetime seconds. |
float get_ambient_red() |
Returns the red channel of the ambient light color. |
float get_ambient_green() |
Returns the green channel of the ambient light color. |
float get_ambient_blue() |
Returns the blue channel of the ambient light color. |
void set_music(string music) |
Sets the sector's music.music - Full filename, relative to the "music" folder. |
void add_object(string class_name, string name, float pos_x, float pos_y, string direction, string data) |
Adds a MovingObject to the manager.class_name - GameObject's class. name - Name of the created object. pos_x - X position inside the current sector. pos_y - Y position inside the current sector. direction - Direction. data - Additional data in S-Expression format (check object definitions in level files). |
None.
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