[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] "Ringtale" Game Framework
http://kschnee.xepher.net/code/ringtale.py.txt
Here's my solution to the problem of organizing the different screens of
a game. You can use it if you like.
It has states defined by a state name, which is used to find matching
functions called [name]Setup, [name]Logic and [name]Draw. It runs a loop
of calling those functions, and maintains a stack of states that can be
pushed and popped.
This version uses Pygame to allow for music and keyboard event handling.
Demos included.