+
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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载