Thursday, January 10, 2013

Python Game Development - Pygame vs Pyglet Pt. 1

Here, you'll find basic comparisons between Pygame and Pyglet, showing you how to accomplish the same tasks in each.  As I learn, more posts on the subject will be made.

Get a blank window to come up

Pygame

Loading ...

Pyglet

Loading ...

Clear Screen

Pygame

Loading ...

Pyglet

Loading ...


Control Frames Per Second (FPS)

Pygame

Loading ...

Pyglet

Loading ...

Handle events and closing application with Key_ESCAPE

Pygame

Loading ...

Pyglet

Note: Pyglet handles the Escape key event by default.  This example shows you how to handle when the "a" key is pressed.

Loading ...

No comments:

Post a Comment