-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Pong Game | ||
|
||
![Pong Game Screenshot](image.png) | ||
|
||
## Description | ||
|
||
Pong is a classic two-player arcade game where the objective is to prevent the ball from passing your paddle while trying to make the ball pass your opponent's paddle. This simple yet entertaining game is created using HTML, CSS, and JavaScript. | ||
|
||
## Features | ||
|
||
- Two-player gameplay | ||
- Paddle control using keyboard input | ||
- Bouncing ball that moves back and forth | ||
- Continuous play until one player misses the ball | ||
- Game over and round restart functionality | ||
|
||
## How to Play | ||
|
||
1. Clone or download this repository to your local machine. | ||
|
||
2. Open `index.html` in your web browser. | ||
|
||
3. Player 1 (left paddle) uses the "W" key to move up and the "S" key to move down. | ||
|
||
4. Player 2 (right paddle) uses the arrow keys: Up arrow to move up and Down arrow to move down. | ||
|
||
5. The game starts with one player serving the ball. Use your paddle to hit the ball and prevent it from passing your side of the screen. | ||
|
||
6. The game continues until one player fails to return the ball. The opposing player is declared the winner of that round. | ||
|
||
7. You can restart the game by refreshing the web page. | ||
|
||
## Screenshots | ||
|
||
![Pong Game Screenshot](image.png) | ||
|
||
## License | ||
|
||
This project is licensed under the [MIT License](LICENSE). | ||
|
||
## Acknowledgments | ||
|
||
- The Pong game was inspired by the classic arcade game created by Atari, one of the pioneers of video game development. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.