Difference between revisions of "Pong"
From WLCS
Line 8: | Line 8: | ||
'''Pong Directions:''' | '''Pong Directions:''' | ||
− | + | * Paddles | |
− | + | ** Paddle on the left that is controllable with S and W keys | |
− | + | ** Paddle on the right that is controllable with Up and Down keys | |
− | + | * Background has a “net” or a dashed line through the middle | |
− | + | * Ball moves across the screen and bounces: | |
+ | ** When it hits a paddle | ||
+ | ** Top and bottom of screen | ||
+ | * Resetting the ball’s placement | ||
+ | ** 1st time – randomize direction | ||
+ | ** Every other time, direct towards player who just scored | ||
+ | * Score board at the top | ||
+ | ** When ball passes the right edge of the screen, left player gets point | ||
+ | ** When ball passes the left edge of the screen, right player gets point | ||
+ | ** If either player hits 10 points, then they win | ||
+ | * Sound | ||
+ | ** When the ball hits a paddle | ||
+ | ** When the ball bounces off the wall | ||
+ | ** When the ball goes beyond the screen | ||
'''Grading Rubric:''' | '''Grading Rubric:''' |
Revision as of 09:29, 10 October 2012
Objectives:
- You will use Scratch to create Pong
- The Pong game will require that you use math, variables, conditionals, and loops!
Resources:
Pong Directions:
- Paddles
- Paddle on the left that is controllable with S and W keys
- Paddle on the right that is controllable with Up and Down keys
- Background has a “net” or a dashed line through the middle
- Ball moves across the screen and bounces:
- When it hits a paddle
- Top and bottom of screen
- Resetting the ball’s placement
- 1st time – randomize direction
- Every other time, direct towards player who just scored
- Score board at the top
- When ball passes the right edge of the screen, left player gets point
- When ball passes the left edge of the screen, right player gets point
- If either player hits 10 points, then they win
- Sound
- When the ball hits a paddle
- When the ball bounces off the wall
- When the ball goes beyond the screen
Grading Rubric:
- 2 pts - right paddle moves up and down with keyboard
- 2 pts - ball bounces properly off the right paddle
- 2 pts - left paddle moves up and down with keyboard
- 2 pts - ball bounces properly off the left paddle
- 2 pts - Player 1 and Player 2 points are tracked and displayed properly