game

Defines the Game class.

class game.Game(scale, ini_dir, quick_start, cheat, version, sav_file)

Builds the skool and the cast, and executes the main loop of the game.

Parameters:
  • scale (number) – The desired scale at which to run the game.
  • ini_dir – The directory to scan for ini files.
  • quick_startTrue to force the game to start quickly, None to use the QuickStart ini file parameter.
  • cheatTrue to force cheat keys to be enabled, None to use the Cheat ini file parameter.
  • version (string) – The version number of Pyskool.
  • sav_file – A file from which to restore a saved game.
play()
Start the game and enter the main loop.

Previous topic

floor

Next topic

graphics