-
-
Notifications
You must be signed in to change notification settings - Fork 492
ScriptingLevel
SuperTux Bot edited this page Nov 22, 2024
·
12 revisions
This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
The Level
table provides basic controlling functions for the current level.
None.
None.
Method | Explanation |
---|---|
void finish(bool win) |
Ends the current level.win - If true , the level is marked as completed if launched from a worldmap. |
bool has_active_sequence() |
Returns whether an end sequence has started. |
void spawn(string sector, string spawnpoint) |
Respawns Tux in sector named sector at spawnpoint named spawnpoint . |
void spawn_transition(string sector, string spawnpoint, string transition) |
Respawns Tux in sector named sector at spawnpoint named spawnpoint with the given transition transition .transition - Valid transitions are circle and fade . If any other value is specified, no transition effect is drawn. |
void set_start_point(string sector, string spawnpoint) |
Sets the default start spawnpoint of the level. |
void set_start_pos(string sector, float x, float y) |
Sets the default start spawn position of the level. |
void set_respawn_point(string sector, string spawnpoint) |
Sets the default respawn spawnpoint of the level. |
void set_respawn_pos(string sector, float x, float y) |
Sets the default respawn position of the level. |
void flip_vertically() |
Flips the level vertically (i.e. |
void toggle_pause() |
Toggles pause. |
void pause_target_timer() |
Pauses the target timer. |
void resume_target_timer() |
Resumes the target timer. |
void override_item_pocket(string allow) |
Override the Item Pocket setting in the Level.allow - Can be "on", "off", or "inherit" (use the setting in the Level). |
string is_item_pocket_overridden() |
Get the override value for the Item Pocket. |
bool is_item_pocket_allowed() |
Check if the Item Pocket is allowed in this level. |
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