A classic Pong game implemented in Java using Swing.
Pong Game is a simple implementation of the classic Pong game in Java using Swing. It features paddles, a ball, and a scoring system.
- Two-player gameplay with individual paddles.
- Scoring system to keep track of player scores.
- Realistic paddle movement using keyboard controls.
The Paddle class represents a player's paddle. It includes methods for handling keyboard input to move the paddle up and down.
The Score class manages the scoring system. It displays the scores for both players on the screen.
- Player 1 controls the blue paddle with the W and S keys.
- Player 2 controls the red paddle with the UP and DOWN arrow keys.
- The game continues until one player scores a point. The scores are displayed in the center of the screen.
Clone the repository and run the GameFrame class to start the game.
git clone https://github.com/your-username/Pong-Game.git
cd Pong-Game
javac GameFrame.java
java GameFrameFor questions or feedback, feel free to reach out:
Email: marian.s.stoikov@gmail.com
GitHub: Marinopolis
