This is a simple implementation of the classic Pong game in JavaScript. The game is played on an HTML5 canvas where a player can control a paddle to compete against a computer AI.
- Player paddle controlled by the keyboard.
- Computer-controlled AI paddle.
- Ball that bounces off the paddles and walls.
- Simple collision detection and response.
- Use the "Arrow Up" and "Arrow Down" keys to move the player's paddle.
- The AI paddle will automatically move to follow the ball.
- The objective is to prevent the ball from passing your paddle.
- Clone the repository or download the source code.
- Open
index.html
in your web browser.