pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Block Dodger 2: The Blockening alpha

Block Dodger 2: The Blockening alpha - .02v

Lawrence Mascia (neondevil)

Tags:

Description

Arrow Keys move and space bar shrinks This is my first game in pygame there's still a bunch of problems that I'm still trying to solve: -Touching the black block should make the black block disappear and award the player with 500 points, however both things just disappear. -The level counter only seems to paste things on top of each other instead of blitting a new text set. -Hitting space bar just crashes the program and I'm not sure how I can get it to make the player shrink. Can anyone help?

Links

Home Page: http://www.lawrencemascia.com
Source: http://www.mediafire.com/?sharekey=89711e09f5bc7be7d2db6fb9a8902bda

Releases

Block Dodger 2: The Blockening alpha - .02v - Nov 29, 2008

Pygame.org account Comments

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

November 30, 2008 8:34pm - Andy Hanson - nickname: (rhodiumgames)
http://www.mediafire.com/download.php?jtwjzjrbcyn
It doesn't explain anything about the PyGame funcions, since I assume you already know what they do.
Keep in mind this is one man's opinion. Things like input can be done differently and still work fine. I even took the time to describe some of the problems the demo has!
November 30, 2008 9:09am - Lawrence Mascia - nickname: (neondevil)
If you could I'd be very indebted to you. Thanks!
November 29, 2008 10:21am - Andy Hanson - nickname: (rhodiumgames)
I tested it. Collision with blocks works fine. As for your problems...

When in doubt, completely rewrite everything! It must suck, but it looks like you're writing on top of a tutorial with poor organization, and adding more just makes it more disorganized. I'm not saying anything against the tutorial - the point is to quickly show how to use a bunch of functions. But in a bigger program you need to use objects and stuff. A good idea is to keep your game computing (rectangles moving around, bumping into each other) inside object functions, and the main loop can just call a compute function each frame for every object.
If you want me to make an outline script for (my idea of) an organized game, I'd be happy to. You probably can't figure out much of what I'm talking about just by reading this.
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)