[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] particles
- To: pygame-users@seul.org
- Subject: [pygame] particles
- From: Urmas Eero <sammy@local.ee>
- Date: Fri, 03 Jan 2003 01:38:16 +0200
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 02 Jan 2003 18:38:33 -0500
- Reply-to: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021127
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