creating pong in scratch learning objectives: to learn how to program sensing via colour and sprite...

17
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

Upload: clyde-atkinson

Post on 24-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

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

First Create the stage

Edit the background to create the out area

Now draw your two sprites

On sprite to grab the instructions needed.Connect them up.

Begin start and stop command(make sure co-ordinates are right for top of your screen)

Click the colour in touching colour and

then click red band at bottom

Change the direction by pulling point straight down

To prevent ball going off side if screen set the if on edge bounce function

•At this point your ball should move from left to right and your paddle (sprite 2) should move with your mouse

Now we set the ball to bounce off paddle

These are commands that are needed

This will get ball to bounce off the paddle

Pick random will make ball move in random directions

Make sure values on screen is same as mine

PLAY PONG

• Extension activity1) 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

• 2nd activity

• Try to use the same principle to develop pacman the game.