kotomino / flappy-bernie-backend

Flappy Bernie is a JavaScript web game with a Rails API backend that is based off of the popular game Flappy Bird.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flappy Bernie JavaScript App

Flappy Bernie is a JavaScript web game that is based off of the popular game Flappy Bird.

You can find the corresponding backend project at URL(https://github.com/kotomino/flappy-bernie-frontend)

Game Rules

Press the spacebar to flap Bernie up and navigate him through the pipes. The pair of pipes have equally sized gaps placed at random heights. Bernie will descend automatically and the pipes' horizontal speed will remain constant. Each successful pass through a pair of pipes gains you one point. Colliding with a pipe or the ground ends the game. Happy flapping!

Preview

Screen Shot 2021-04-23 at 11 42 56 AM

Installation

Frontend Directory

  1. Clone the project's frontend GitHub Repository in desired directory.
$ git clone git@github.com:kotomino/flappy-bernie-frontend.git

Backend Directory

  1. Clone the backend GitHub Repository in the same parent directory as the frontend.
$ git clone git@github.com:kotomino/flappy-bernie-backend.git
  1. Run bundle install inside the project directory.
$ bundle install
  1. Run db:create and db:migrate with rails.
$ rails db:create
$ rails db:migrate

Usage

  1. Run rails s in terminal inside the backend project folder.
$ rails s
  1. Open the index.html file in your project folder onto your browser.

About

Flappy Bernie is a JavaScript web game with a Rails API backend that is based off of the popular game Flappy Bird.


Languages

Language:Ruby 99.2%Language:HTML 0.8%