Download presentation
Presentation is loading. Please wait.
1
The One Where You Scratch
One Player Pong
2
Create A Backdrop Create a backdrop
Bottom of stage should have a “kill” zone Rename backdrop, “Stage”
3
Draw Sprites Create a minimum of two Sprites (a ball and a paddle)
Rename Sprites, “Ball” and “Paddle” Sprite is a two dimensional graphic
4
Program Ball Events Script - Begins the script for the “Ball” sprite
Motion Script - Tells ball where it will begin and in which direction to travel Control Script - Forever loop - Actions within here will repeat forever Motion Script Tells ball to bounce when it hits edge Tells ball speed at which to move
5
Program Ball If/Then Script If ”Ball” touches ”Paddle” then:
Play a sound to identify Turn Clockwise between 160 and 200 degrees Maintain speed If/Then Script if ball touches the color, RED then: Play a sound to identify Stop game
6
Program Paddle When program begins: Forever Loop
Paddle to follow mouse on x-axis
7
Make it Your Own You have successfully made Pong
Add to your program and make it your own Make a different stage Make the ball speed up each time it hits paddle Add a counter and try to beat your high score HAVE FUN!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.