Skip to content

Ganeshhhhh/Flappy_bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Bird Game

This is a simple Flappy Bird game built using Java and Swing. The player controls the bird to fly between sets of pipes by pressing the spacebar.

Features

  • Classic Flappy Bird gameplay mechanics.
  • Smooth bird movement and pipe generation.
  • Real-time score display.
  • Game over and restart functionality.

Game Mechanics

  1. Bird Movement:

    • The bird's movement is controlled by the spacebar. Pressing the spacebar makes the bird jump.
    • Gravity constantly pulls the bird down, so you need to keep pressing the spacebar to stay in the air.
  2. Pipes:

    • Pipes randomly appear from the right side of the screen and move leftwards.
    • You score points by passing through the pipes without colliding.
  3. Score:

    • The score is displayed in the top-left corner.
    • When the bird passes a pair of pipes, the score increases by 1.
  4. Game Over:

    • The game ends when the bird hits a pipe or falls off the screen.
    • Pressing the spacebar after a game over will reset the game.

How to Run

Prerequisites

  • Java Development Kit (JDK) installed on your machine.

Steps

  1. Clone the Repository:

    git clone https://github.com/Ganeshhhhh/Flappy_bird.git
  2. Navigate to the Project Directory:

    cd Flappy_bird
  3. Compile the Java Files:

    javac App.java
  4. Run the Game:

    java App

Controls

  • Press the Spacebar to make the bird jump.

Gameplay

Flappyy_bird

Contributing

Feel free to submit issues or pull requests if you want to contribute to improving the game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages