<<

CREATE A

Pong is one of the first ever created. It is a classic arcade game that was originally developed in 1972 by corporation.

The original game was a lot like tennis. There were two paddles and a ball. The goal was to keep the ball in play by moving the paddle to hit the ball.

In our version of the game, the ball will be launched from the top of the stage (screen). The paddle will be at the bottom of the stage. The goal is to keep the ball off the bottom of the stage.

Play the game before you start building it yourself!

3/26/17 NEW CONCEPTS

LEARN HOW TO: KEY NEW BLOCKS INTRODUCED:

DRAW AND NAME SPRITES Moves sprite to specified x and y position on Stage. In this game, you USE THE X-Y GRID TO will use this block to position the paddle to a specific location on the CONTROL MOVEMENT stage. AND POSITION ON THE STAGE

Tells the sprite that its next movement will be in a certain direction. MAKE SPRITES GO IN RANDOM DIRECTIONS

KEEP SCORE Chooses a direction between the two values you set. TEST YOUR CODE

3/26/17 ADD GAME SPRITES

TOOLS YOU WILL NEED You need a Ball and a Paddle and an additional sprite to be placed at the bottom of the screen for this game. Use the buttons on the New Sprite toolbar to create all three of these sprites.

Click the Choose Sprite From Library button. Click the Sports category. Double-click the Tennis Ball Sprite. The Tennis Ball sprite will appear on the game stage.

3/26/17 3/26/17 3/26/17 3/26/17 3/26/17 3/26/17 3/26/17 3/26/17 PLAY THE GAME

Try it! •Click the green flag above the stage to start the ball moving. •Use the left and right arrow keys to move the paddle. •If you hit the ball with the paddle, you score a point. If you miss the ball and it hits the bottom of the stage, the game is over.

3/26/17 REFLECTIVE

WHAT DID YOU LEARN: END OF CLASS ACTIVITIES:

DRAW AND NAME SPRITES

USE THE X-Y GRID TO CONTROL MOVEMENT AND POSITION ON THE STAGE

MAKE SPRITES GO IN RANDOM DIRECTIONS

KEEP SCORE

TEST YOUR CODE

3/26/17