Professional Documents
Culture Documents
Pong v1 Design
Pong v1 Design
and stay at the same location. The goal of the game is to hit the dot back with the
paddle to the opposite direction and to not let the dot touche the edge of the
window we are on. Everytime the dote touches the inside of one the paddles, it
bounces back to the opposite side. Everytime the ball touches one of the side it
also bounce to the opposite side.However, if the dot touches either the right or
left side of the window, a point is added to the scoreboard. The score of each
user is shown on the top right and left corner of the window with the size of 20pi
and a white colour. If the right user scores, it adds one point on the left
scoreboard vise-versa. The game end either when one of the player scored 11
points or if the exit key is pressed.
Version 1 description:
When the game starts, a 500 pi x 400 pi window appears. The window has
for title “Pong”. The window has a black background. On the background,
there is a white dot approximately of 10pi radius in the middle of the
screen. When the game start, the white dot moves at a constant velocity
diagonally forward to right and left edges from middle of the screen, there
are two white paddles that are approximately 10pi by 40pi. The paddles do
not move and the dot goes through the paddles. It does not bounce back.
The dot is moving either straight lines or diagonal lines and the dot is
moving faster horizontal. When the dot hit one of the side of the window it
wraps on the opposite side. The game end when the user press the exit
key.
Functional Tests: