IntroductionThe Game class stores the entire game definition, and is serialised to save the game definition. DetailsMethods: __init__(title)
# here title is the title that will be displayed in the game window.
gamescreen(dimensions,name)
# creates a new gamescreen as part of this game. The dimensions should be larger than or
# the same size as the game window you plan to use, and the name is how you will refer to
# this gamescreen. Returns the gamescreen.
gameobject(name)
# creates a new gameobject, as part of this game. Returns the gameobject.
workstate(name)
# creates a new workstate, referred to by "name". Returns the workstate.
|