single

Turtle Pong, Episode 2: Play Ball

Time to play ball! Introduce the pong ball into the game.

Starts

Instructor: Rebecca | Difficulty: Intermediate | Series: Turtle Pong

Turtles play pong too! This series takes you step-by-step through the process of creating a pong-style game using - oh yes - Python turtles. Your finished project will allow you to play against yourself or with a friend, using movable paddles and a bouncing ball to earn points and win the game! 

Our paddles can move, but they have nothing to do and nothing to chase. In this episode, we fix that by adding a ball to our pong game! We’ll program the ball to move constantly, in random directions, and respawn if it flies off-screen. To top things off, we’ll also program our paddles to stop (rather than keep journeying into infinity, out of the player’s sight) if they reach the edge of the playing area. Let’s play ball!

You can always watch a livestream anytime! But before following along with the project, be sure to complete the following checklist: