Skip to content

A simple Flappy Bird clone built in Java featuring smooth animations, gravity-based physics, collision detection, and score tracking. Navigate the bird through randomly generated pipes and enjoy an arcade-style experience with keyboard controls.

Notifications You must be signed in to change notification settings

aljalo/FlappyBird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Flappy Bird in Java

A simple Flappy Bird clone built using Java.

๐Ÿ›  Features

  • Smooth game loop using Timers
  • Gravity and collision detection
  • Score tracking
  • Pipe generation with random heights
  • Keyboard controls
  • Game restart on game over

๐Ÿ“‚ Project Structure

FlappyBird/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ App.java        # Main entry point
โ”‚   โ”œโ”€โ”€ FlappyBird.java # Game logic
โ”‚   โ”œโ”€โ”€ assets/         # Images for bird, pipes, and background
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ FlappyBird.iml
โ””โ”€โ”€ README.md

๐Ÿš€ How to Run

  1. Clone the repository:
    git clone https://github.com/aljalo/FlappyBird.git
  2. Open the project in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse, VS Code).
  3. Make sure you have JDK 8+ installed.
  4. Compile and run App.java:
    javac src/App.java
    java src.App

๐ŸŽฎ Controls

  • SPACEBAR - Flap the bird
  • Restart - Press SPACEBAR after game over

๐Ÿ“œ License

This project is open-source and free to use.


Developed by Ali Al-Jalo ๐Ÿ› ๏ธ

About

A simple Flappy Bird clone built in Java featuring smooth animations, gravity-based physics, collision detection, and score tracking. Navigate the bird through randomly generated pipes and enjoy an arcade-style experience with keyboard controls.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages