Chapter 13. Beginning Your First Game: Bounce!
So far, we’ve covered the basics of computer programming. You’ve learned how to use variables to store information,
if statements for conditional code, and
for loops for repeating code. You know how to create functions to reuse your code, and how to use classes and objects to divide your code into smaller chunks that make it easier to understand. You’ve learned how to draw graphics on the screen with both the
tkinter modules. Now it’s time to use that knowledge to create your first game.
Whack the Bouncing Ball
We’re going to develop a game with a bouncing ball and a paddle. The ball will fly around the screen, and the player will bounce it off the paddle. If the ball hits the bottom of the ...