pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Mario Shell Defense

Mario Shell Defense - 1.0

Wes (euphwes)

Tags:

Description

You play as Mario, who's desperately trying to defend himself against an onslaught of Koopa shells! Use the left/right arrow keys to run, the space bar to jump, and the "e" button to shoot fireballs! Shoot fireballs at the shells to destroy them. If you get hit by a shell, it's game over. Only tested on Win XP so far, but as far as I know it's cross-platform compatible. Please leave your comments and criticism, and feel free to poke around through the code and comment on how I could be doing things better.

Links

Home Page: https://sourceforge.net/projects/marioshelldefen/files/
Source: https://sourceforge.net/projects/marioshelldefen/files/

Screenshot


click to view original size

Releases

Mario Shell Defense - 2.0 - Oct 29, 2009
Mario Shell Defense - 1.0 - Oct 28, 2009

Pygame.org account Comments

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

January 9, 2010 8:50am - Djdj7484 - nickname: (djdj77484)
how do i play the game
October 30, 2009 4:40am - Lasse Folkersen - nickname: (lassefolkersen) - 5/5
Haha - this is a great little game. Thumbs up!
October 29, 2009 5:45pm - Wes - nickname: (euphwes)
Thanks for the heads-up. I'm aware that Linux\Unix (and Mac OS) are case-sensitive, and I thought I had taken care to make sure my code matched the file names exactly. Whoops!

As for jumping on the shells, I just added that functionality in the game last night, as well as animating Mario's sprite, and plan to upload that today. Thanks for the comments!
October 29, 2009 1:31am - Donkyhotay - nickname: (donkyhotay) - 3/5
It's not very cross-compatible as is, couldn't run it on ubuntu linux. Fortunately I was able to fix it and get it to work. First of all some of your filenames have caps in them while the code doesn't. Although windows doesn't care about about caps in the filename linux and osX do. So you need to change the name of:

mario.PNG
pow.PNG

to:

mario.png
pow.png

Also, I got numerous:

typerror: function() takes no keyword arguments

which I fixed by modifying the following sections of game.py to read:
line 48: background.blit( sur, (0,0))
line 58: background.blit( sur, (0,0))
line 101: pygame.mixer.pre_init()

Beyond that it's not a bad little game, I keep wanting to jump on the shells out of habit though and keep dying because of that.
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 29, 2014

Sep 19, 2014

Sep 17, 2014

Sep 9, 2014

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 21, 2014


Aug 18, 2014

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