GithubHelp home page GithubHelp logo

flappy-bird's Introduction

Flappy Bird Game

A simple Flappy Bird-style game built using HTML5 Canvas and JavaScript.

Table of Contents

Description

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.

Features

  • Realistic gravity and jump mechanics.
  • Dynamic pipe generation.
  • Collision detection with pipes and ground.
  • Score display.
  • Start and Game Over screens.

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/flappy-bird-game.git
  2. Navigate to the project directory:
    cd flappy-bird-game
  3. Open index.html in your web browser to start the game.

Usage

  • 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.

Gameplay

  1. When the game loads, a "Start Game" overlay will be displayed.
  2. Click on the canvas or press the Spacebar to start the game.
  3. Control the bird by clicking on the canvas or pressing the Spacebar, Arrow Up, or 'X' key.
  4. Navigate the bird through the gaps between the pipes to score points.
  5. If the bird hits a pipe or the ground, the game is over, and a "Game Over" screen will be displayed.
  6. Refresh the page to play again.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

flappy-bird's People

Contributors

sxxaq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.