Skip to main content

Pygame Extended: OpenGL accelerated 2D game programming framework

Project description

Pygame Extended (or pygext) is my “everything and a kitchen sink” collection of libraries for Pygame development. The main part of pygext, is the OpenGL accelerated 2D framework (pygext.gl) for rendering and controlling sprites. Pygext also contains additions to pygame.draw (e.g. rectangles with round corners) and an opengl accelerated 2D vector graphics library (experimental).

Pygext is currently 100% pure Python, so parts of it might still be a bit slow on less than high end PCs. However, I’ve tried to design the code to be as psyco-friendly as possible, so you will see quite a noticeable difference with psyco enabled. Remember to add import psyco; psyco.profile() at the beginning of your applications.

Main Features

  • Use layers to control rendering order (unlimited layers per scene)

  • Sprites you can rotate, scale and alpha blend

  • Sprites can be attached to each other for synchronized movement

  • Framerate independent animation and movement

  • Control sprites via “Actions” instead of manually updating coordinates every frame

  • Fully featured particle effects

  • Collision detection

  • Scenes and states for structuring game logic

NOTE: this release of pygext is still alpha, so there will be backward incompatible API changes and refactoring in future versions.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page