This project is a simple Flappy Bird clone made with Java Swing.
It was inspired by someone else's project—I was interested in how a game was made and wanted to try building one myself. At the time, Swing was the only GUI technology I knew, so that's what I used. Through this little project, I learned a lot about the basics of game development, including animation, collision detection, and handling user input.
Fun fact:
When I finished this, I thought making games was always this straightforward. But when I tried to make a 2D platformer, I quickly realized it's a lot more complex than it seems! I'll leave game development to the experts, but I really enjoyed the learning experience with this project.
-
Clone or download this repository to your computer.
-
Make sure you have Java installed (JDK 8 or higher recommended).
-
Ensure you have the images in the correct folders:
Place all required images inresources/images/:background.jpgflappybird.pngtoppipe.pngbottompipe.png
-
Compile the project: javac -d bin -sourcepath src FlappyBird.ja
-
Run the project: java -cp bin FlappyBird
Thanks for visiting! Feel free to modify anything.