A simple Flappy Bird clone built using Java.
- Smooth game loop using Timers
- Gravity and collision detection
- Score tracking
- Pipe generation with random heights
- Keyboard controls
- Game restart on game over
FlappyBird/
├── src/
│ ├── App.java # Main entry point
│ ├── FlappyBird.java # Game logic
│ ├── assets/ # Images for bird, pipes, and background
├── .gitignore
├── FlappyBird.iml
└── README.md
- Clone the repository:
git clone https://github.com/aljalo/FlappyBird.git
- Open the project in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse, VS Code).
- Make sure you have JDK 8+ installed.
- Compile and run
App.java
:javac src/App.java java src.App
- SPACEBAR - Flap the bird
- Restart - Press SPACEBAR after game over
This project is open-source and free to use.
Developed by Ali Al-Jalo 🛠️