-
-
Notifications
You must be signed in to change notification settings - Fork 494
ScriptingWorldMapSector
SuperTux Bot edited this page Dec 16, 2024
·
8 revisions
This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
This class provides additional controlling functions for a worldmap sector, other than the ones listed at GameObjectManager.
An instance under worldmap.settings
is available from scripts and the console.
This class inherits functions and variables from the following base classes:
- Base::Sector
- GameObjectManager
Method | Explanation |
---|---|
float get_tux_x() |
Returns Tux's X position on the worldmap. |
float get_tux_y() |
Returns Tux's Y position on the worldmap. |
void set_sector(string sector) |
Changes the current sector of the worldmap to a specified new sector. |
void spawn(string sector, string spawnpoint) |
Changes the current sector of the worldmap to a specified new sector, moving Tux to the specified spawnpoint. |
void move_to_spawnpoint(string spawnpoint) |
Moves Tux to the specified spawnpoint. |
string get_filename() |
Gets the path to the worldmap file. |
void set_title_level(string filename) |
Overrides the "Title Screen Level" property for the world with filename . |
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