An Introduction to Pyglet and Rabbyt

In this example we create a pyglet window and use rabbyt to display a sprite. The sprite is rendered as an OpenGL quad using an orthographic projection. Rabbyt handles setting this up for us (in rabbyt.set_viewport) but in a later tutorial we’ll be doing it ourselves.

Obviously, the code doesn’t do much. However, this is about as small a pyglet/rabbyt program you can write, and demonstrates just how easy it is to get a sprite on the screen with rabbyt.

tut1

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>