A classic Pong game implemented in Rust using the awesome bracket-lib
!
This version features smooth ball physics, paddle collisions, basic AI, and scorekeeping.
- 🏓 Two players: Human (keyboard) vs AI (auto-tracking)
- 🎯 Ball mechanics with wall and paddle collisions
- 💥 Scorekeeping and win detection
- 🕹️ Simple main menu
- 🔁 Game resets after each score
bracket-lib
(Roguelike and retro game engine)
You can add it to your project by including this in your Cargo.toml
:
[dependencies]
bracket-lib = "0.8"
- Clone this repo:
git clone https://github.com/hmousavin/rust-pong.git
cd rust-pong
- Build and run the game:
cargo run