GUI-based PingPong game written in Java (Swing).
Features both single-player (with difficulty levels) and two-player modes.
The game includes a special Critical Hit System for dynamic gameplay.
1 Player Mode
- Bot Difficulty levels: Easy, Medium, Hard
2 Player Mode - Play locally with a friend on the same keyboard
Each paddle hit has a 5% chance to trigger a Critical Hit
On Critical Hit:
Ball speed temporarily increasesSpeed reverts back after that specific hit
On the first paddle hit:
Ball speed increases by +8
Afterwards:
Increment by 1 every hit by paddleOnly increments > 1 again if a Critical Hit occurs
Paddle hits and scoring effectsMenu with play/exit options
critChance = .05critPowerBonus (critSpeedBoost) = 0width = 25height = 100paddleSpeed = 10
Default(defaultcritChance,defaultcritPowerBonus,defaultwidth,defaultheight,defaultpaddleSpeed)Lucky(30%critChance,defaultcritPowerBonus,defaultwidth,defaultheight,defaultpaddleSpeed)Power(3%critChance,12++critPowerBonus,defaultwidth,defaultheight,defaultpaddleSpeed)Swift(defaultcritChance,defaultcritPowerBonus,default x 3/4width,default x 3/4height,19paddleSpeed)Tank(defaultcritChance,defaultcritPowerBonus,default x 3/2width,default x 3/2height,4paddleSpeed)
You can either clone the repository or Download ZIP.
git clone https://github.com/kuwarte/pingpong.git
cd pingpong
Check the batch script for the process (if want to be done manually)
.\run_pingpong.bat