What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated May 29, 2008 by johngunderman
ClassGame  
Overview of the Game Class

Introduction

The Game class stores the entire game definition, and is serialised to save the game definition.

Details

Methods:

__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.

Sign in to add a comment