Difference between revisions of "Pong"
From WLCS
Line 9: | Line 9: | ||
'''Requirements:''' | '''Requirements:''' | ||
* Background with dashed line through the middle | * Background with dashed line through the middle | ||
− | |||
− | |||
− | |||
− | |||
* Two paddles parallel to each other | * Two paddles parallel to each other | ||
** Left paddle goes up and down using S and W keys | ** Left paddle goes up and down using S and W keys | ||
Line 21: | Line 17: | ||
** Bounces when it hits a paddle | ** Bounces when it hits a paddle | ||
** Bounces when it hits the top and bottom | ** Bounces when it hits the top and bottom | ||
+ | * Scoreboard | ||
+ | ** If the ball goes beyond the left side, then the right player gets a point | ||
+ | ** If the ball goes beyond the right side, then the left player gets a point | ||
+ | ** When either player reaches 10, then they win | ||
* Sounds | * Sounds | ||
** Played when it hits the paddles | ** Played when it hits the paddles |
Revision as of 07:17, 21 October 2013
Objectives:
- You will create Pong using your programming language of choice (e.g. Scratch, Python)
- The Pong game will require that you use math, variables, conditionals, and loops!
Resources:
Requirements:
- Background with dashed line through the middle
- Two paddles parallel to each other
- Left paddle goes up and down using S and W keys
- Right paddle goes up and down using Up and Down keys
- Ball movement and placement
- Ball starts from the middle
- Moves around at angles
- Bounces when it hits a paddle
- Bounces when it hits the top and bottom
- Scoreboard
- If the ball goes beyond the left side, then the right player gets a point
- If the ball goes beyond the right side, then the left player gets a point
- When either player reaches 10, then they win
- Sounds
- Played when it hits the paddles
- Played when it hits the bottom or top
- Played when a player scores
Bonus Requirements:
- Allow the paddles to move left and right using the A, D, Left, and Right arrow keys
- Gradually change the speed of the ball as the points get higher
- Difficulty selection screen (e.g. Beginner, Intermediate, Expert)
- Change the speed of the ball depending on where the ball hits the paddle
Grading Rubric:
- 1 pt - background and graphics
- 1 pt - sounds play when hitting paddles and edges
- 2 pts - paddles move up and down with keyboard
- 2 pts - ball bounces properly off the paddles
- 2 pts - Player 1 and Player 2 scores work and display properly