A simple Flappy Bird-style game built using HTML5 Canvas and JavaScript.
This project is a recreation of the classic Flappy Bird game. The player controls a bird, trying to fly between columns of green pipes without hitting them. The game features gravity, collision detection, and a score counter.
- Realistic gravity and jump mechanics.
- Dynamic pipe generation.
- Collision detection with pipes and ground.
- Score display.
- Start and Game Over screens.
- Clone the repository:
git clone https://github.com/yourusername/flappy-bird-game.git
- Navigate to the project directory:
cd flappy-bird-game
- Open
index.html
in your web browser to start the game.
- Start Game: Click on the canvas or press the Spacebar to start the game.
- Control Bird: Click on the canvas or press the Spacebar, Arrow Up, or 'X' key to make the bird jump.
- Restart Game: Refresh the browser to restart the game after a game over.
- When the game loads, a "Start Game" overlay will be displayed.
- Click on the canvas or press the Spacebar to start the game.
- Control the bird by clicking on the canvas or pressing the Spacebar, Arrow Up, or 'X' key.
- Navigate the bird through the gaps between the pipes to score points.
- If the bird hits a pipe or the ground, the game is over, and a "Game Over" screen will be displayed.
- Refresh the page to play again.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.