About | Switches to the StoryScreen. |
Tutorial | Loads the first tutorial level (see Level Naming) and starts playing it. |
New Game | Loads the first non-tutorial level and starts playing it. Also clears any recorded game progress and saved game filename. |
Load Game | Prompts for a saved game file to load and restores the current level directory and game progress from it. Loads the next uncompleted level from the level directory and starts playing it. |
Save Game | Prompts for a filename and saves the current level directory and game progress in it. |
Quit | Quits the application. |
Start Level | Starts playing the currently loaded level from the beginning. Only enabled when a level is not yet being played. |
Resume Level | Resumes playing a level that has been suspended. Only enabled when a level is being played. |
Abort Level | Aborts a suspended level and enables the Start Level command. |
Choose Level | Switches to the ChooseLevelScreen. |
Play Standard Levels | Changes the current level directory to the standard level directory (Resources/levels). |
Play Custom Levels | Prompts for a level file or a level set directory. If a level file is chosen, it is loaded and started. If a level set directory is chosen, it is made the current level directory and the firstnon-tutorial level in it is loaded and started. |
Level Editor | Switches to the EditorMenuScreen. |
New Level Set | Prompts the user to create a directory for holding a set of levels. The directory name is given the level_set_suffix extension. |
New Level | Creates a new, empty level and switches to the EditorLevelScreen. |
Edit Level | Switches to the EditorLevelScreen. |
Load Level | Prompts for a level file to load, and switches to the EditorLevelScreen. |
Save Level | Saves the current level under its existing filename. |
Save Level As | Prompts for a new filename under which to save the current level. |
Exit Editor | Returns to the MenuScreen. |
<magic_string> <file_version> <game_version>The second line contains the pathname of the directory containing the levels, as a relative path if it is the standard level directory, or an absolute path otherwise. This is followed by the filenames of the completed levels (last pathname component only), one per line.
RESET | The level has not yet been started. |
PLAYING | The level has been started and is currently being played. |
SUCCEEDED | The level has ended in a winning state. |
FAILED | The level has ended in a losing state. |
<magic_string> <file_version>followed by lines of the form
<token> [<argument>, ...]where <token> is a string identifying the type of line, and the arguments are written as a Python list of constant Python expressions.
game_name | The name of your game, as it is to be displayed to the user. |
game_file_suffix | Filename extension for saved game files, including the dot. |
game_file_magic | A distinctive string written to the beginning of a saved game file to identify it as such. |
game_file_version | Version number of the saved game file format. This number should be incremented whenever you make an incompatible change to the file format of saved games. |
level_set_suffix | Filename extension for directories containing level sets, including the dot. |
level_file_suffix | Filename extension for level files, including the dot. |
level_file_magic | A distinctive string written to the beginning of a level file to identify it as such. |
level_file_version | Version number of the level file format. This number should be incremented whenever you make an incompatible change to the level file format. |