STOP!
Before you continue, watch the video below to make sure your Paddle Game project has all of the parts that we added in Step 1 and Step 2.
If something is missing from your project, go back to Step 1 or Step 2 now and fill in the missing pieces before you continue.
In part 3, you will:
- Set your game to record Player 1 and Player 2 scores, using the variables we added in Part 2
- Create "Game Over" screens to display when a player wins the game
Step 1:
Set your game to record player scores
It's important that Player 1 and Player 2 are able to score points. Watch the video below to see how this is done!
The script for your Ball sprite should now look like this:
Here's a closer look at what we added in this step:
Step 2: Set beginning player scores
We also need to make sure that each game starts with Player 1 and Player 2 at zero points. Watch the video below to find out how!
Here's what your script for your Ball sprite should look like at the end of Step 2:
Step 3: Create "Game Over" screens
The information for our "Game Over" screens will be stored in new Sprites. Watch the video below to see how this is done!
Here's the script that we added to our "Game Over" sprites:
(Remember: the "Player 2 Wins" sprite will have an orange "Player 2 Score" variable included in the if statement, instead of the "Player 1 Score" shown above.)
Step 4: reflection
Head over to Google Classroom and complete "Paddle Game Reflection #3."
Once your reflection form is turned in, you may begin part 4 by clicking on the link below:
Once your reflection form is turned in, you may begin part 4 by clicking on the link below: