Please enable JavaScript.
Coggle requires JavaScript to display documents.
Pong (Functions (Button functions (Medium difficulty button, Hard…
Pong
Functions
Level function
Ball speed increases every level
Scoreboard
When the ball hits the sides of the canvas add point to the opponent
Button functions
Medium difficulty button
Hard difficulty button
Easy difficulty button
Ball function
Ball collision with paddles and move ball back to middle if ball hits sides of canvas
Paddle function
Paddle movement
Paddle collision with ball
Stop paddle from going past canvas top and bottom
Colour change function
Ask usernames function
GUI
Title displayed w/instructions
Difficulty buttons are displayed then goes away
once one of the buttons is clicked
Game pops up and users start playing. Scoreboard paddles and ball is created.
Ask for player 1&2 usernames