Pygvent
Handle your game events easier! Pygvent is a simple yet useful event framework for PyGame.
Jakob E.
(nucular)
With a pygvent.Handler instance, you can bind your callback functions to specific PyGame events with specific dict-keys. You can also specify more possible events or keys. Then, call myhandler.update() every step.
You can use different Handlers like different game worlds.
Included is an example 'Pong' application, showing this technique.
Pygvent is Public Domain.
Changes
Links
- Home Page
- http://www.pygame.org/