core.components.save module

core.components.save.load(slot)[source]

Loads game state data from a shelved save file.

Parameters:slot (Integer) – The save slot to load game data from.
Return type:Dictionary
Returns:Dictionary containing game data to load.

Examples:

>>> core.components.load.load(1)
core.components.save.save(player, screenshot, slot, game)[source]

Saves the current game state to a file using shelve.

Parameters:
  • player (core.components.player.Player) – The player object that contains data to save.
  • slot (Integer) – The save slot to save the data to.
  • game (core.control.Control) – The core.control.Control object that runs the game.
Return type:

None

Returns:

None

Examples:

>>> core.components.save.save(player1, 2, self)