Spyral is a library/engine for developing 2D games in Python 2.X, with a focus on rapid development and clean design. Any system that runs Pygame should be able to run Spyral. Instead of import pygame
, you'll just use import spyral
instead.
Spyral was specifically designed for developing XO laptop <http://laptop.org/en/laptop/>
games. Spyral's main source of documentation can be found at the Platipy project, which documents Spyral in the context of a university course for which it was developed. Visit the Platipy Project <http://platipy.org>
main
function!Pygame <http://www.pygame.org/download.shtml>
_Parsley <https://pypi.python.org/pypi/Parsley>
_Greenlets <https://pypi.python.org/pypi/greenlet>
_ (optional, if you want to use the powerful Actors feature for multi-processing)skel.py <https://github.com/platipy/spyral/blob/master/examples/skel.py>
_ : A simple starting point for a new Spyral-based program, with a custom Scene. If you're not developing for the XO, this is a good starting point.events.py <https://github.com/platipy/spyral/blob/master/examples/events.py>
_ : Demonstration of registering keyboard and mouse events.fonts.py <https://github.com/platipy/spyral/blob/master/examples/fonts.py>
_ : Demonstration of a couple properties of fonts, and how to get text on the screen.forms.py <https://github.com/platipy/spyral/blob/master/examples/forms.py>
_ : Demonstration of the Forms feature, including buttons and text inputs.style.py <https://github.com/platipy/spyral/blob/master/examples/style.py>
_ : Demonstration of using Style files to separate code from content.concurrent.py <https://github.com/platipy/spyral/blob/master/examples/concurrent.py>
_ : Demonstration of the excellent Actors mixin, which allows quick and easy concurrency (requires greenlets). Press any key to step through it.cursors.py <https://github.com/platipy/spyral/blob/master/examples/cursors.py>
_ : Demosntration of the cursors presently supported in Spyral through Pygame. Press the left mouse button to step through them.collisions.py <https://github.com/platipy/spyral/blob/master/examples/collisions.py>
_ : Demonstration of two objects bouncing off each other.animations.py <https://github.com/platipy/spyral/blob/master/examples/animations.py>
_ : Demonstration of the various kinds of Animations supported by Spyral. Use Space
to walk through the steps.view.py <https://github.com/platipy/spyral/blob/master/examples/view.py>
_ : Demonstration of the functionality of Views, which allow Sprites to be manipulated in groups. Use Space
to walk through the steps.minimal.py <https://github.com/platipy/spyral/blob/master/examples/minimal.py>
_ : The simplest possible Spyral program with no custom functionality. Not recommended, simply here to show off the simplicity.artifical_events.py <https://github.com/platipy/spyral/blob/master/examples/artificial_events.py>
_ : An example showing off how to mock events, or send out your own custom ones.Check out the tracked issues on github <https://github.com/platipy/spyral/issues?state=open>
or the Open Issues <http://platipy.readthedocs.org/en/latest/openproblems.html>
on Platipy for a listing of the things still needed.