Skip to main content

Ringtale - 2009.9.23

A simple framework for managing multiple states of a game.


Kris Schnee
(snow)
A simple framework for managing multiple states of a game. You define states representing things like a title screen, main screen, and inventory screen, then "push" and "pop" states to easily switch between them. Make your game a subclass of ringtale.Framework. Define a state called "Spam" by defining functions "SpamSetup", "SpamLogic" and "SpamDraw". Now call your_game_object.PushState("Spam"), then your_game.MainLoop(). It'll automatically call the Logic and Draw functions in sequence, with the ability to push/pop additional states. Contains two demos and the option to add keyboard- and mouse-handler objects. Works with Pygame's sound system to handle looping music.

Changes

Links

Home Page
http://kschnee.xepher.net/code/
Source
http://kschnee.xepher.net/code/ringtale.py.txt

Releases

Ringtale 2009.9.23 — 26 Sep, 2009

Pygame.org account Comments