game

Defines the Game class.

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

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

Parameters:
  • pyskool_dir – The absolute path of the top-level Pyskool directory.
  • 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.
  • icon_fname – The name of the icon file to use.
play()
Start the game and enter the main loop.

Previous topic

floor

Next topic

graphics