[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] particles



Hi,

the file attached is a pygame/pyopengl port of Nehes tutorial number 25 ( well, more like a quick hack ) from:

http://nehe.gamedev.net/tutorials/lesson.asp?l=25

the code is REALY not nice and has no comments but hey, nobody's perfect :)

just unpack, run ./compile.py ; ./main.py

a little about those files in the pack:

src.py - main script
lib/libparticles.py - particles library

compile.py - is a sort of compiler for python, that includes some librarys to main script so that we don't have to import too much :)
manual.py - 'compiler' greps all the functions from main(compiled script) and puts them to one file
main.py - the script you should run after compiling this thing

about speed:

with psyco about 400 fps
without psyco about .. well 20 fps :(



sammy



____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org