Package pygext :: Package gl :: Package director :: Module scene
[frames | no frames]

Module pygext.gl.director.scene

Scene handling

Scenes are used to abstract different kinds of event loops in your game. You could, for example, have a scene for title screen, main game loop and hiscore screen. Usually, pygext.gl.director.Director control transition from one scene to another.

Scene rendering consists of layers of entities. Layers are used to control the z-ordering of the sprites ie. entities as well as grouping the entities into logical groups (for e.g. collision detection).

A single scene can have several states. Different states can have separate mainloop logic and separate event handling.
Classes
Scene  

Generated by Epydoc 2.1 on Mon Jun 12 18:21:20 2006 http://epydoc.sf.net