Global Variables and Constants

sge.IMPLEMENTATION

A string indicating the name of the SGE implementation.

sge.ALIGN_LEFT

Flag indicating horizontal alignment to the left.

sge.ALIGN_CENTER

Flag indicating horizontal alignment to the center.

sge.ALIGN_RIGHT

Flag indicating horizontal alignment to the right.

sge.ALIGN_TOP

Flag indicating vertical alignment to the top

sge.ALIGN_MIDDLE

Flag indicating vertical alignment to the middle.

sge.ALIGN_BOTTOM

Flag indicating vertical alignment to the bottom.

sge.game

Stores the current sge.Game object. If there is no sge.Game object currently, this variable is set to None.

sge.image_directories

A list of directories where images can be found. Default is ./data/images, ./data/sprites, or ./data/backgrounds, where . is the program directory.

sge.font_directories

A list of directories where font files can be found. Default is ./data/fonts, where . is the program directory.

sge.sound_directories

A list of directories where sounds can be found. Default is ./data/sounds, where . is the program directory.

sge.music_directories

A list of directories where music files can be found. Default is ./data/music, where . is the program directory.

Previous topic

Second Example: Pong

Next topic

Classes

This Page