Ping Pong Game

Client

Open Source

Duration

3 days

Category

Java

Client

Open Source

Duration

3 days

Category

Java

Client

Open Source

Duration

3 days

Category

Java

๐Ÿ“ Ping Pong Game ๐ŸŽฎ

Welcome to the ultimate Ping Pong game built in Java! Get ready for fast-paced, addictive gameplay with smooth controls and exciting sound effects! ๐ŸŽ‰

๐Ÿš€ About the Game

This classic Ping Pong game brings the retro arcade feel straight to your desktop!
Control your racket ๐Ÿ“, bounce the ball ๐ŸŽพ, and compete against a friend or the CPU ๐Ÿค–.
The game speeds up as you play, making every rally more thrilling! โšก

โœจ Features

  • ๐Ÿ•น๏ธ Smooth & responsive controls โ€” Player 1 uses W/S, Player 2 uses โฌ†๏ธ/โฌ‡๏ธ.

  • ๐Ÿค– CPU Mode โ€” Press C to challenge a smart AI opponent for solo matches.

  • โšก Dynamic ball speed โ€” The ball accelerates with each paddle hit, pushing your reflexes to the limit!

  • ๐Ÿ”Š Retro sound effects โ€” Classic bounce and score sounds bring that nostalgic arcade feeling.

  • ๐ŸŒˆ Neon arcade-style UI โ€” Glowing center line, paddle-displayed scores, and a vibrant, retro look.

  • ๐Ÿ Game Over & Restart โ€” First to 5 points wins! Press R to restart anytime.

๐ŸŽฎ How to Play

  1. Launch the game by running Main.java

  2. Press ENTER to start from the menu

  3. Use your controls to move your racket up and down

  4. Bounce the ball past your opponentโ€™s racket to score!

  5. First player to reach 5 points wins the match ๐Ÿ†

  6. Press R to restart after the game ends

  7. Toggle CPU mode anytime by pressing C

๐Ÿ“– How it Works

  • The Ball class manages position, movement, and speed increase.

  • The Racket class handles player or CPU paddle movement and scoring.

  • The main game loop uses a Timer for smooth animations and updates.

  • Key listeners track continuous paddle movement for fluid control.

  • Sound playback is threaded to prevent lag and keep gameplay buttery smooth.

๐Ÿ“ License

This project is open-source and free to use. Enjoy! ๐Ÿš€

Made with โค๏ธ by andredisa

LETโ€™S PING, LETโ€™S PONG! ๐Ÿ“๐Ÿ”ฅ

Client

Open Source

Duration

3 days

Category

Java

ยฉ Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in

ยฉ Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in

ยฉ Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in