Download presentation
Presentation is loading. Please wait.
Published byClyde Atkinson Modified over 9 years ago
1
Creating pong in scratch Learning objectives: To learn how to program Sensing via colour and sprite proximity O:\ICT\ks3\scratch\scratch Exercises\Creating a Pong game
2
First Create the stage
3
Edit the background to create the out area
4
Now draw your two sprites
5
On sprite to grab the instructions needed. Connect them up.
7
Begin start and stop command (make sure co-ordinates are right for top of your screen)
8
Click the colour in touching colour and then click red band at bottom Change the direction by pulling point straight down
9
To prevent ball going off side if screen set the if on edge bounce function
10
At this point your ball should move from left to right and your paddle (sprite 2) should move with your mouse
11
Now we set the ball to bounce off paddle
12
These are commands that are needed
13
This will get ball to bounce off the paddle
14
Pick random will make ball move in random directions
15
Make sure values on screen is same as mine
16
PLAY PONG Extension activity 1)Try to make it a two player game by: – Editing background (red stripe at top) – Adding third sprit that moves using arrow buttons – Make sure ball sprite responds to paddle two
17
2 nd activity Try to use the same principle to develop pacman the game.
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.