Pete Shinners writes:
> 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.
>snip<
This is really excellent. The version I did was just a hacked-up,
half-C half-python experiment, but Pete's code is really very
good. It's certainly worthy of inclusion in a pysdl/demos directory,
if Mark chooses to include one. Mark?
One suggested change: On lines 224 and 228, the explosion sound is
played on channel 0, the same channel as the shot sound. As a result,
explosions quickly followed by shots are truncated. If these two lines
are changed to "audio.play(1, Snd.explode, 0, -1)" so that the
explosions play on channel 1, the two effects can overlap.
By the way Pete, I love your docstrings :)
David Clark
si...@te...
Preliminary pySDL Documentation:
http://www3.telus.net/futility/futility/docs/pysdl/index.html
|