Pong
0. select play mode from Dropdown (default AI)
when AI
player controls the left paddle using using W/S/Up/Down, AI controls the right paddle
when 1 Player
player controls the left paddle and the right paddle using W/S/Up/Down
when 2 Player
player1 controls the left paddle using W/S , Player2 controls the right paddle using Up/Down
- Boll starts from a random direction : at the beginning We need to click the Start button to start
- when the ball hits a wall, it bounces back
- when the ball hits a paddle, it bounces back
- paddles move independently only up or down
- when lost, the ball resets to the centre, and starts moving in a random direction
- paddles cannot go past the top and bottom walls,
- scores shown for both players
- game play proceeds to end of match (first to 10 points), then displays winning message
- left play or right player and scores
- when clicked a “play again” , game restarts with scores, paddles, and ball reset
- ball increases in speed with each hit
Leave a comment
Log in with itch.io to leave a comment.