[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] creating a sprite image in code



I've seen examples on how to load sprites or sprite pages from a .bmp file, but I haven't seen an example of making a simple sprite in code.

Does anybody know of an example where the sprite image is created in the code itself, instead of loading a graphics file?  For what I'm working on at the moment I only need say a 3x3 sprite, which would be a waist to have to load it from a .bmp file.


Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.