
Over the past
several years there has been an interesting trend in game development,
the move towards higher level languages. Usually a game is split into
two major parts. The game engine, which must be as fast as possible,
and the game logic, which makes the engine actually do something. It
wasn't long ago when the engine of game was written in assembly, with
portions written in C. Nowadays, C has moved to the game engine, while
often the game itself is written in higher level scripting languages.
Games like Quake3 and Unreal run these scripts as portable bytecode.
Pygame and SDL
serve as an excellent C engine for 2D games. Games will still find the
largest part of their runtime is spent inside SDL handling the
graphics. SDL can take advantage of graphics hardware acceleration.
Enabling this can change a game from running around 40 frames per
second to over 200 frames per second. When you see your Python game
running at 200 frames per second, you realize that Python and games can
work together.| cdrom cursors display draw event font image joystick key mouse movie sndarray surfarray time transform |
manage cdrom devices and audio
playback load cursor images, includes standard cursors control the display window or screen draw simple shapes onto a Surface manage events and the event queue create and render Truetype fonts save and load images manage joystick devices manage the keyboard manage the mouse playback of mpeg movies manipulate sounds with Numeric manipulate images with Numeric control timing scale, rotate, and flip images |