PLAY A GAME OF PONG
Press enter or tap screen to start!
Notes:
- Using both types of controls will break the game.
- Controls:
- Touch:
- Tap the screen to start playing
- 3 buttons will appear: UP, DOWN, and LAUNCH
- Use UP to move the paddle upwards
- Use DOWN to move the paddle downwards
- Use LAUNCH to launch the ball if its your turn to serve
- Tap the screen again to continue the game when someone scores
- Keyboard:
- Press ENTER to launch the ball if its your turn to serve.
- Press the UP key to move the paddle upwards
- Press the DOWN key to move the paddle downwards
- Press ENTER to continue the game when someone scores
- Touch:
- The game has no end goal. Play as long as you like.
- The Computer Player is very basic. It just follows the ball, and launches from a random position.
- Changing the canvas size:
- The game should still work if you change the screen size or orientation.
- If the canvas becomes too small, the Computer Player (Player 2) might bug out when it tries to serve the ball, effectually freezing the game.