Why Teams call analytics are critical to your entire business
Instructions for Scratch Pong Game Adaptation to use with MaKey MaKey
1. Create Your Own Video Game: Scratch & MaKey MaKey
1. http://scratch.mit.edu/ , sign up create a login and password
2. The basics of Scratch
a. What’s a Sprite?
b. What’s a background?
c. What are scripts? What are buttons/blocks?
3. Create Your Own Game: PONG
a. Sprites Backgrounds and Sound
1. Delete the cat sprite (right click, delete)
2. Click “sprite from library”, click on things folder, select what you want to use as your ball for the game
then click “ok”. Click on information “I” button for your sprite and change the name of it to ball.
3. Click on “paint new sprite.” Click on the rectangle tool, pick a color and then make a tall thin rectangle.
Name it “left paddle.” (or you can pick any sprite you’d like out of the sprites folder)
4. Right click on left paddle and click duplicate. Name this paddle “right paddle.” Drag both paddles to the
correct sides of the screen.
5. Click on stage, then on “choose backdrop from library.” Pick out the background you would like ex: if you
double click on the space folder and then on stars, hit “ok” to select the backdrop.
6. Click on the “ball” icon and then on the sounds tab. You can either use the pop sound that’s already there
or click on “choose sound from library” and pick out which sound you would like to use. Click “ok” to select
sound.
b. SCRIPTS
1. Click the “ball” and make sure the “scripts” TAB is open
2. Drag out “when green flag clicked” from “Events”.
3. From “Control” drag out a “forever” loop and connect it to the first button.
4. From “Motion,” drag out “if on edge bounce”, put inside “Forever” loop
5. Pull “move 10 steps” from “Motion” and place it under “if on edge” and inside the “Forever” loop.
Change number of steps to 4.
2. 6. From “Events” drag out another “When Green Flag Clicked”
7. From “Control” drag a “Forever” and an the drag an “If then” button a put it inside of it
8. From “Sensing” find “Touching ___?” and plug it into the “< >” of the “Then” block. Select “left paddle”
from the dropdown of the “Touching ___?” block
9. From “Sound”, drag out “Play sound <pop>” Or whatever sound you added. Put block below “Then”
block
10. From “Motion” drag out “point in direction 90” place it under “Play sound < >”
11. From “Operators” drag out “( )-( )” ( 2nd one down) and put it on top of the “90” in the “Point direction
90”
12. From “Motion” drag out “Direction” (at the bottom) and plug it into the first blank of “( )- ( )”. In the
second blank type “180”. It will end up saying “point direction (direction) –(180)”
13. Drag out a “Move 10 Steps” block and put it underneath the direction block. Change it to 5 steps.
14. From “Motion” pull out “turn 15 degrees” put under the “Move 5 Steps” block
15. From “Operators” drag out “pick random 1 to 10” put it on top of the “15” of “Turn 15 Degrees”
Change “1 to 10 to -40 to 40 it should look like this: “Turn (pick random (-40) to (40)) degrees”
16. Right click on the set of scripts you just created and hit duplicate. Drag the duplicated scripts down a bit
so there in a clear spot of the scripts window. Then in the “touching Left Paddle” block, change Left Paddle to
Right Paddle using the drop down men. These scripts you just put together will cause your ball to make a
sound and also bounce in random direction when it touches either paddle.
3. c. Paddle Scripts
1. Now click on the “Left Paddle” sprite, and make sure the Scripts tab is selected.
2. From “Events’ drag out 2 “When space key pressed” blocks.
3. From “Motion” drag out 2 “change Y by 10” blocks, put one under each “When space key pressed” blocks
4. In the first set of blocks, select W from the drop down instead of “space,” pressing W will make this
paddle go up.
5. In the second set of blocks select A from the drop down and change 10 to -10, this will make the paddle
go down when you click A.
6. Now click on the Right Paddle sprite and make sure the Scripts tab is exposed and repeat steps 1-5. But
select up arrow with “change Y by 10” and down arrow with “change Y by -10”
d. MAKEY MAKEY as a game controller makeymakey.com/howto