[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Accelerated 2D Graphics for Pygame
Hi Chaps.
I've been working on a package (LGT) which provides easy to use 2D
graphic functions which are hardware accelerated. The modules use the
pygame and pyopengl modules.
*This means that these modules are useless to anyone without OpenGL
capable 3D hardware with working drivers!
They do some nifty things, like:
sprite and spritegroup rotation (without losing the corners of
your sprite, or increasing the surface size)
screen rotation and offsetting
alpha blending
constant virtual co-ordinate system
animated sprites
text sprites
I'm looking for feedback on the _usability_ of the library from the
coders point of view. eg, the sprite class requires a scale argument
to even show up on the screen, is this a good idea?
Is a virtual, constant co-ordinate system a pain? Would you rather
think about things as X pixels wide?
Also, new feature suggestions are welcome.
You can grab the code from http://metaplay.com.au/tarballs/LGT.tar.bz2
run the plat.py, tutorial.py and animatedSprite.py files to see how things work.
Simon Wittber.