Skip to content

LugolBis/FlappyBird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Flappy Bird

A simple Flappy Bird clone built using Java and FXGL, a game development framework for JavaFX.

๐Ÿ“ฆ Features

  • Player-controlled bird with gravity and flap mechanics
  • Randomly spawning obstacles (pipes)
  • Collision detection between player and obstacles
  • Score tracking
  • Game over state when the player hits an obstacle or falls off screen
  • Clean and modular code structure (Entities, Components, Factory)

๐Ÿš€ Getting Started

Prerequisites

  • Java 11+ (or any version supported by FXGL)
  • Maven (optional, but recommended)

Running the Game

  1. Clone the repository:

    git clone https://github.com/LugolBis/FlappyBird.git
    cd FlappyBird
  2. Build and run the project:

    • Using Maven:
      mvn clean javafx:run
    • Or directly from your IDE by running App.java.

Controls

Key Action
SPACE Flap upward
UP ARROW Flap upward

๐ŸŽฎ Gameplay

The player controls a bird that automatically falls due to gravity. Pressing SPACE or the UP ARROW makes the bird flap upward. Avoid hitting the pipes and try to achieve the highest score possible.

About

Flappy Bird clone written in Java ๐ŸŽฎโ€‹

Topics

Resources

Stars

Watchers

Forks

Languages