1 / 17

Creating pong in scratch

O:ICTks3scratchscratch ExercisesCreating a Pong game. Creating pong in scratch. Learning objectives: To learn how to program Sensing via colour and sprite proximity. First Create the stage. Edit the background to create the out area. Now draw your two sprites.

gaura
Télécharger la présentation

Creating pong in scratch

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. O:\ICT\ks3\scratch\scratch Exercises\Creating a Pong game Creating pong in scratch Learning objectives: To learn how to program Sensing via colour and sprite proximity

  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.

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

  7. Change the direction by pulling point straight down Click the colour in touching colour and then click red band at bottom

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

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

  10. Now we set the ball to bounce off paddle

  11. These are commands that are needed

  12. This will get ball to bounce off the paddle

  13. Pick random will make ball move in random directions

  14. Make sure values on screen is same as mine

  15. PLAY PONG • Extension activity • 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

  16. 2nd activity • Try to use the same principle to develop pacman the game.

More Related