pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Bwekamba

Bwekamba - 200908231214

nitrofurano (nitrofurano)

Tags:

Description

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...)

Links

Home Page: http://nitrofurano.linuxkafe.com/bwekamba/pygame.htm
Source: http://nitrofurano.linuxkafe.com/bwekamba/pygame.htm
Mac: http://nitrofurano.linuxkafe.com/bwekamba/pygame.htm

Screenshot


click to view original size

Releases

Bwekamba - 200908231214 - Aug 23, 2009

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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:
pygame.time.delay(1000/100)
key=pygame.key.get_pressed()
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:
pygame.time.wait(1000/100)
key=pygame.key.get_pressed()
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.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Sep 9, 2014

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 22, 2014

Aug 21, 2014


Aug 18, 2014

Aug 2, 2014


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