Skip to content

Commit

Permalink
Update scripting reference (SuperTux/supertux@41356f0)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux Bot committed Dec 14, 2023
1 parent aadfdb9 commit 0b2652c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ScriptingGlobals.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Method | Explanation
`rand()` | Returns a random integer.
`record_demo(string filename)` | Records a demo to the given file.
`play_demo(string filename)` | Plays back a demo from the given file.
`set_title_frame(string image)` | Sets the frame, displayed on the title screen.


Constants
Expand Down
1 change: 1 addition & 0 deletions ScriptingWorldMapSector.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Method | Explanation
`spawn(string sector, string spawnpoint)` | Changes the current sector of the worldmap to a specified new sector, moving Tux to the specified spawnpoint.
`move_to_spawnpoint(string spawnpoint)` | Moves Tux to a specified spawnpoint.
`get_filename()` | Gets the path to the worldmap file. Useful for saving worldmap specific data.
`set_title_level(string filename)` | Overrides the "Title Screen Level" property for the world with `filename`. The newly set level will be used for the title screen, after exiting the world.


Constants
Expand Down

0 comments on commit 0b2652c

Please sign in to comment.