19 lines
666 B
Markdown
19 lines
666 B
Markdown
# Ping Pong Game
|
|
|
|
A basic HTML5 ping pong game implemented using HTML, CSS, and JavaScript.
|
|
|
|
## Files
|
|
|
|
- `index.html`: The main HTML file that sets up the game canvas and includes the CSS and JavaScript files.
|
|
- `style.css`: Contains the styling for the game, including the canvas border and score display.
|
|
- `script.js`: The JavaScript file that handles the game logic, drawing, and user input.
|
|
|
|
## How to Play
|
|
|
|
- Use the up and down arrow keys to move your paddle.
|
|
- The goal is to hit the ball past the computer's paddle to score points.
|
|
- The computer has a simple AI to move its paddle.
|
|
|
|
## Running the Game
|
|
|
|
Open `index.html` in a web browser to start playing. |