pygame is
Simple DirectMedia Layer is
Site Swing

Bwekamba - 200908231214

nitrofurano (nitrofurano)



It's just a game i started coding on sdlBasic last year, which i used as warmup for the next pyweek competition, trying to recode it to Python Pygame. This game were only tested on GNU/Linux and MacOS-X, but i think it will run on other operating systems without any problem. There are people having problems on loading PNG and OGG files from this game, maybe is needed to get assured you're using python 2.6 and pygame 1.9 (i don't know which versions has which feature improvements or bug fixes...)


Home Page:


click to view original size


Bwekamba - 200908231214 - Aug 23, 2009 account Comments

If you wish to leave a comment with your account, please sign in first.

August 30, 2009 3:08pm - josmiley / Luke spywoker - nickname: (mutualaccount)
pas de probleme :

while not pygame.key.get_pressed()[pygame.K_SPACE]:
if pygame.event.wait().type==pygame.QUIT or pygame.key.get_pressed()[pygame.K_ESCAPE]:sys.exit()
August 30, 2009 11:33am - nitrofurano - nickname: (nitrofurano)
@josmiley tried to add your fix, but it doesn't work: the problem is i changed it for accepting ESC key on the title screen for exiting:
while 1:
if key[pygame.K_SPACE]:break
if key[pygame.K_ESCAPE]:sys.exit()
for event in pygame.event.get():
if event.type==pygame.QUIT:sys.exit()
thanks! :)
August 28, 2009 5:05pm - nitrofurano - nickname: (nitrofurano)
i will try that asap! thanks for both python and french lessons! :)
August 28, 2009 3:09pm - josmiley / Luke spywoker - nickname: (mutualaccount)
d'autres optiisations sont possibles, par exemple :

replacer :
while 1:
if key[pygame.K_SPACE]:break
for event in pygame.event.get():
if event.type==pygame.QUIT:sys.exit()

par :
while not pygame.key.get_pressed()[pygame.K_SPACE]:
if pygame.event.wait().type==pygame.QUIT:sys.exit()
August 28, 2009 3:45am - josmiley / Luke spywoker - nickname: (mutualaccount)
utilises pygame.time.wait() au lieu de pygame.time.delay()
August 26, 2009 1:35pm - nitrofurano - nickname: (nitrofurano)
@josmiley - thank you for encouraging, since i'm still a newbie on Pygame - and when talking about shooters, i think it's difficult not using 100% the cpu, unless the code could be tricky on blitting the background only over the sprites instead of the whole display, but i don't know how far the performance would be gained...
August 25, 2009 3:07pm - josmiley / Luke spywoker - nickname: (mutualaccount)
simple, efficace, mais utilise à 100% le CPU.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Jun 19, 2016

Jun 17, 2016

Jun 12, 2016

Jun 3, 2016

Jun 1, 2016

May 27, 2016

May 21, 2016

May 18, 2016

May 1, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)