Difference between revisions of "Pong"

From WLCS
Line 8: Line 8:
  
 
'''Pong Directions:'''
 
'''Pong Directions:'''
<!--
+
* Background with dashed line through the middle
* Paddles
+
* Scoreboard
** Paddle on the left that is controllable with S and W keys
+
** If the ball goes beyond the left side, then the right player gets a point
** Paddle on the right that is controllable with Up and Down keys
+
** If the ball goes beyond the right side, then the left player gets a point
* Background has a “net” or a dashed line through the middle
+
** When either player reaches 10, then they win
* Ball moves across the screen and bounces:
+
* Two paddles a parallel to each other
** When it hits a paddle
+
** Left paddle goes up and down using S and W keys
** Top and bottom of screen
+
** Right paddle goes up and down using Up and Down keys
* Resetting the ball’s placement
+
* Ball movement and placement
** 1st time – randomize direction
+
** Ball starts from the middle
** Every other time, direct towards player who just scored
+
** Moves around at angles
* Score board at the top
+
** Bounces when it hits a paddle
** When ball passes the right edge of the screen, left player gets point
+
** Bounces when it hits the top and bottom
** When ball passes the left edge of the screen, right player gets point
+
* Sounds
** If either player hits 10 points, then they win
+
** Played when it hits the paddles
* Sound
+
** Played when it hits the bottom or top
** When the ball hits a paddle
+
** Played when a player scores
** When the ball bounces off the wall
 
** When the ball goes beyond the screen
 
-->
 
  
 
'''Grading Rubric:'''
 
'''Grading Rubric:'''

Revision as of 12:51, 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:

  • Background with dashed line through the middle
  • 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
  • Two paddles a 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
  • Sounds
    • Played when it hits the paddles
    • Played when it hits the bottom or top
    • Played when a player scores

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