[et_pb_section][et_pb_row][et_pb_column type=”2_3″][et_pb_text admin_label=”Text”]
Your assignment is to add things to your completed Pygame tutorial game. Don’t forget to make a copy! For each thing you choose to do, do a little planning.
- What variables (if any) will you need to add?
- In what sections (setup, events, movement, drawing) will you put what code?
Here are some ideas for improving the game.
- Make it a game. Right now, it doesn’t matter if you miss the ball. What should happen? You could have a number of lives, and put the number of lives remaining in the top left.
- When the game ends, stop the ball from moving and write “Game Over” in the middle of the screen. You could make a new variable, or you could use the lives variable from #1.
- Change how the ball bounces off the paddle or bricks. Add some randomness, or make it depend on what part of the paddle (near the center or edges) the ball hits the paddle. Or make it matter if the paddle is moving.
- Make the ball speed up as the game proceeds. You can do it by time, or bricks. Or you could have levels.
- Add sound effects (use headphones).
- Use some images to replace the ball, bricks, or paddle. You’ll need to really understand image sizes to get this right.
- Something else. Powerups? Some bricks drop stuff on you that you have to avoid? Make it so you have to hit each brick multiple times to get rid of it?
Save your completed game as brickbreaker.py. If you use images or sounds you need to turn in a whole folder of stuff, or I won’t be able to run your game. If you make more than one, save the additional ones as brickbreaker2.py, etc.
[/et_pb_text][/et_pb_column][et_pb_column type=”1_3″][et_pb_sidebar admin_label=”Sidebar” orientation=”left” area=”et_pb_widget_area_8″ background_layout=”light” /][/et_pb_column][/et_pb_row][/et_pb_section]