image

13BEGINNING 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 turtle and 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 ...

Get Python for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.