Flappy Bird is a popular mobile game where the player controls a bird, navigating it through a series of pipes by tapping the screen to make the bird flap its wings.
This is a simple implementation of the popular Flappy Bird game using Java and the Swing graphics library. The game allows players to control a bird by pressing the space bar to make it flap its wings and navigate through a series of pipes.
-
Simple and addictive gameplay inspired by the popular Flappy Bird game.
-
Controls: Control the bird's flight by pressing the space bar.
-
Randomly generated pipes: Each game session features a unique arrangement of pipes, providing a fresh challenge.
-
Scoring system: Earn one point for successfully passing each pipe, and strive to achieve a high score.
-
Game menu: Start the game, listen to the wonderful music, or quit the game.
-
Game over screen: Displays the final score, a high score and offers an option to restart the game.
-
Sound effects: Enjoy immersive sound effects for bird flapping, collisions, and scoring points.
-
Customizable gameplay parameters: Modify window size, bird appearance, pipe appearance, gravity, and flap force to suit your preferences.
-
Responsive and fluid graphics: The game utilizes the Swing graphics library to provide smooth and visually appealing animations.
-
Compatible with Java 17: Developed using Java 17, ensuring compatibility with the latest Java version.
- Java Development Kit (JDK) 17
- Clone the repository to your local machine using the following command:
git clone https://github.com/rudransh-shrivastava/flappy-bird-game.git
-
Open your preferred Java IDE (Integrated Development Environment) such as IntelliJ IDEA, Eclipse, or NetBeans.
-
Run the
Main
class to start the game.
-
Open a terminal or command prompt.
-
Navigate to the project directory:
cd flappy-bird-game
- Go to the
build/libs
folder:
cd build/libs
- Run the game using the following command:
java -jar Flappy-Bird-1.0-SNAPSHOT.jar
Use the space bar to control the bird. The objective is to navigate the bird through the gaps between the pipes without colliding with them. Each successful passage through a pipe earns one point. The game ends if the bird collides with a pipe or hits the ground.
Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.
The implementation of this Flappy Bird game was inspired by the original Flappy Bird game created by Dong Nguyen.