From: Pete S. <pe...@vi...> - 2000-08-25 02:14:10
|
well i was sitting around today, and i thought i'd try to clean up David Clark's Excellent little PyAliens Demo. I suppose it's an excellent demo, because it is Sam Lantiga's standard SDL demo program for C. Anyways, for better or worse i went and redid the PyAliens that David Clark did. My goal was to make it a lot simpler to follow, be more python-like, and most of all make an actual good demo/sample for pysdl. Well, here it is. perhaps it will get rolled into pyaliens 1.2? I'm happy with the results, and anyone with small grasp of programming should be able to look at this new pyaliens and follow along with ease. As an added bonus, the python code is now about 30% smaller and now runs well over the needed 50 fps to keep up with the fps delay. (whereas my nt4-p300 was running well under 50fps before this) anyways, i've attached the whole thing. my main desire was to see some code that actually could 'show off' what python does. all the current demos and samples are pretty rough looking and don't really show much benefit of Python over C. Hopefully something like this can get rolled into the official pysdl release. i'm motivated enough to clean up all the current samples/demos and really make them shine. anyways, i'll definitely hear anyone's suggestions. if someone knows of another small demo like this that would be beneficial to add the the pysdl samples let me know! |