| |||||||||||
PyWeek - PyWeek Warmup - Helicopters![]() Well, I made a little pyweek warmup this morning, called "Helicopters". I'm having problems with the pyweek-upload.py script, so right now the game is hosted on my webpage. Download it here. Enjoy the game, and please give me feedback! —
pymike on 2008/03/02 15:02
of NanoBot
Comments: (log in to comment) |
Last Challenge
September 2008 [entries, ratings] Previous > March 2008 [entries, ratings] September 2007 [entries, ratings] April 2007 [entries, ratings] September 2006 [entries, ratings] March 2006 [entries, ratings] (June 2006) August 2005 [entries, ratings] Not logged in Login | ||||||||||
By Popcorn on 2008/03/02 17:17:
Nice little game. I'm getting some static though. It seems to happen when several sounds are played at once. I'm using pygame 1.7.1release on Ubuntu 7.10.By pymike on 2008/03/02 18:15:
Thanks! Hmm.. I'm not getting the static, but I'm running Windows XP. It might be because I'm using .ogg files for music and sounds... I know one game has done that before, but it was fixed. I'll look into it :)By Popcorn on 2008/03/02 18:42:
I was able to fix it by making this change in main.py:pygame.mixer.pre_init(44100) # Added this line pygame.init()Apparently my audio driver doesn't like 22050hz samples, but 44100hz is fine.(Not sure what that'll do on windows, it may need to detect the OS and set it differently)
By Popcorn on 2008/03/02 18:43:
Oh, and the sound files being ogg seems to have no effect on the static. I first tried converting them all to WAV and modifying the code to load the WAVs instead, which made no difference.By richard on 2008/03/02 20:48:
@pymike: uploads to this site aren't allowed outside of the challenge itself unless you specifically ask me for permission.By pymike on 2008/03/04 18:23:
Version 1.2 is released! Lots of updates, so check it out! :) Download here
By pymike on 2008/03/04 18:25:
@Popcorn:Hmm... my speaker crackles when it's at 44100hz... weird problem :-/
By Popcorn on 2008/03/04 23:58:
Odd. I wonder if it's my OS or my sound card. I added this to the obvious place in main.py: which fixed it up nicely.One thing I noticed about this version (don't recall if it happened in the old one) is that I several times saw explosions half way into the left side of the screen, as if a bomb had been dropped slightly out of frame. You may want to check that the bomb-dropping code doesn't drop bombs unless they're on the screen (preferably with a buffer zone, say 10 pixels from the edge)
By PyScripter on 2008/03/26 21:14:
Love your game!