devsaurabhdubey / Ping-Pong-Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ping Pong Game

This is a simple Ping Pong game written in JavaScript using the HTML5 canvas element.

How to Play

Use the up and down arrow keys to move both the top and bottom rods together to hit the ball. If the ball goes past your rod, the other player scores a point. The game ends when one player scores 5 points. The player with the highest score is recorded in local storage for future games. If you beat the highest score, you can enter your name to record your score.

Demo

A live demo of the game is not available.

Installation

To run the game locally, clone the repository and open the index.html file in your web browser.

bash Copy code

cd ping-pong-game
open index.html
Contributions
Contributions to the project are welcome. To contribute, fork the repository and create a new branch for your changes.```

perl
Copy code
git fork https://github.com/yourusername/ping-pong-game.git
git checkout -b my-changes
After making your changes, push your branch to your fork and create a pull request to merge your changes into the main repository.

perl
###Copy code
git push origin my-changes
###License
This project is licensed under the MIT License.

About


Languages

Language:JavaScript 91.8%Language:HTML 8.2%