Making pong in scratch

24,238 views
23,730 views

Published on

This powerpoint takes you through how to build a simple version of the game pong using scratch. It is designed to be a memory aid for a presenter or teacher, using it to prompt the stages as they present on a large screen.

Published in: Education, Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
24,238
On SlideShare
0
From Embeds
0
Number of Embeds
1,179
Actions
Shares
0
Downloads
103
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Making pong in scratch

  1. 1. Making Pong in Scratch by Joy Suliman
  2. 2. Create the dead zone <ul><li>Delete the cat </li></ul><ul><li>New sprite </li></ul><ul><li>Use rectangle tool to draw the sprite </li></ul><ul><li>Position it on stage </li></ul><ul><li>Rename it dead zone </li></ul>
  3. 3. Create the ball <ul><li>New sprite </li></ul><ul><li>Select circle, hold shift and draw </li></ul><ul><li>Place on stage </li></ul><ul><li>Rename ball </li></ul>
  4. 4. Resetting and basic ball <ul><li>When flag clicked </li></ul><ul><li>Got to x,y </li></ul><ul><li>When flag clicked </li></ul><ul><li>Forever </li></ul><ul><li>If on edge bounce </li></ul><ul><li>Move 4 steps </li></ul><ul><li>Change ball direction </li></ul>
  5. 5. Create the paddle <ul><li>New sprite </li></ul><ul><li>Use rectangle tool to draw the sprite </li></ul><ul><li>Position it on stage </li></ul><ul><li>Rename it paddle </li></ul><ul><li>When flag clicked </li></ul><ul><li>Forever </li></ul><ul><li>Set x to </li></ul><ul><li>Mouse x </li></ul>
  6. 6. Ball bounce off paddle <ul><li>On ball </li></ul><ul><li>When flag clicked </li></ul><ul><li>Forever </li></ul><ul><li>If </li></ul><ul><li>Touching paddle </li></ul><ul><li>Point in direction </li></ul><ul><li>180 - </li></ul><ul><li>direction </li></ul>
  7. 7. Add sound effect <ul><li>Sound tab, import </li></ul><ul><li>Effects </li></ul><ul><li>Pop </li></ul><ul><li>Scripts </li></ul><ul><li>Sound </li></ul><ul><li>Play sound Pop </li></ul>
  8. 8. Add variety to bounce <ul><li>Turn (clockwise) degrees </li></ul><ul><li>Pick random -20 to 20 </li></ul>
  9. 9. Ball going dead <ul><li>When flag clicked </li></ul><ul><li>Forever </li></ul><ul><li>If </li></ul><ul><li>Touching dead zone </li></ul><ul><li>Stop all </li></ul>
  10. 10. I learnt to make Pong in scratch from adobenicnacs on youtube http:// www.youtube.com/watch?v = EzROnRfLwbk <ul><li>Download scratch and join the scratch community </li></ul><ul><li>www.scratch.mit.edu </li></ul>

×