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

Block Dodger 2: The Blockening alpha - .02v

Lawrence Mascia (neondevil)



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?


Home Page:


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

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

November 30, 2008 8:34pm - Andy Hanson - nickname: (rhodiumgames)
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.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Jan 31, 2017

Jan 24, 2017

Jan 19, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

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