A classic Pong game written in Java, with two-player compatibility, pause/resume functionality, score tracking, and restart options.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have Java installed on your local machine.
- Clone this repository:
git clone https://github.com/hamidurrk/Pong_Game.git
- Open the project in your favorite IDE.
- Run the game from the main class
Game.java
.
- Use the
W
andS
keys for player 1 to move the paddle up and down respectively. - Use the
UP
andDOWN
arrow keys for player 2 to move the paddle up and down respectively. - Press
ENTER
to pause and resume the game. - Press
R
to reset or restart the game.
The game never ends.
- Java