This is a step-by-step guide for making a paddle ball game in Scratch. You can either complete the challenges (advanced users), attempt the challenges using hints (intermediate users), or use the video tutorials (beginners).
You will need the Scratch software for this workshop. This is available free either in browser or as a desktop application. For the software and related information, go to scratch.mit.edu
Having completed the basic scripts for an operational paddle-ball game, it is now time to add some finishing touches and personalise it.
Here is a list of things you may wish to consider doing:
Resizing the sprites - you can do this in the costume tab of each sprite.
Adding more bricks and changing their placement - remember to adjust the end-game score to match the number of bricks x point value
Having bricks of different point values
Bouncing the ball off the bricks rather than just passing through them
Add a 'Game Over' and 'Victory' screens
Set start locations for the ball and paddle - attach a go to command for each to a 'When (flag) clicked' block
Set your own background - make sure the colour of the line is still unique
Add sound effects into the scripts
Make the ball bounce more realistically off the paddle and bricks.
In challenge 3 we made the ball 'bounce' of the paddle, the easiest way to do this was to change the direction by a set amount. This did not recreate a realistic bounce such as that seen when the ball hit the edges. So how can we correct this?
To do this we will need to replace the 'turn' motion with a 'point in direction' block. Then using an operator block set the direction to 180 - 'direction'.
The problem now is that the bounce will be realistic, but the ball will get stuck easily on a set route. To correct for this we need to change the block so it reads:
Point in direction 180 - direction + pick random -10 to 10
Now that you have completed this workshop to create a paddle ball game, you should be able to take what you have learnt and use it to create your own version of 'Pong'.
Share your game
If you are willing to share your final version with others, please upload your project to Scratch and send the link to email@example.com