Giter Site home page Giter Site logo

floppybird-react's Introduction

Floppy Bird React

This project is written with React, it is a fork of https://github.com/nebez/floppybird, the original project is written with primitive HTML/CSS/JavaScript. My change focuses on index.html and index.jsx, the original css files and assets files keep unchanged.

Setup

  • Clone the repo: git clone https://github.com/yajiex/floppybird-react.git
  • Install the dependencies: npm install --save-dev
  • Install dev tools: npm install webpack-dev-server -g
  • Optional (Not sure why installed locally not work) Install ESLint: npm install -g --no-optional eslint-config-airbnb eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint

Build

  • Dev build: npm run dev-build
  • Production build: npm run product-build

Run

Architecture

├───dist
│       bundle.js
│       index.html
│
└───src
    ├───components
    │   ├───GameScreen
    │   │   │   GameScreen.css
    │   │   │   GameScreen.jsx
    │   │   │
    │   │   ├───assets
    │   │   │
    │   │   ├───FlyArea
    │   │   │   │   FlyArea.css
    │   │   │   │   FlyArea.jsx
    │   │   │   │
    │   │   │   ├───BigScore
    │   │   │   │   │   BigScore.css
    │   │   │   │   │   BigScore.jsx
    │   │   │   │   │
    │   │   │   │   └───assets
    │   │   │   │
    │   │   │   ├───Ceiling
    │   │   │   │   │   Ceiling.css
    │   │   │   │   │   Ceiling.jsx
    │   │   │   │   │
    │   │   │   │   └───assets
    │   │   │   │
    │   │   │   ├───Pipes
    │   │   │   │   │   Pipes.jsx
    │   │   │   │   │
    │   │   │   │   └───Pipe
    │   │   │   │       │   Pipe.css
    │   │   │   │       │   Pipe.jsx
    │   │   │   │       │
    │   │   │   │       └───assets
    │   │   │   │
    │   │   │   ├───Player
    │   │   │   │   │   Player.css
    │   │   │   │   │   Player.jsx
    │   │   │   │   │
    │   │   │   │   └───assets
    │   │   │   │
    │   │   │   ├───ScoreBoard
    │   │   │   │   │   ScoreBoard.css
    │   │   │   │   │   ScoreBoard.jsx
    │   │   │   │   │
    │   │   │   │   ├───assets
    │   │   │   │   │
    │   │   │   │   ├───CurrentScore
    │   │   │   │   │   │   CurrentScore.css
    │   │   │   │   │   │   CurrentScore.jsx
    │   │   │   │   │   │
    │   │   │   │   │   └───assets
    │   │   │   │   │
    │   │   │   │   ├───HighScore
    │   │   │   │   │   │   HighScore.css
    │   │   │   │   │   │   HighScore.jsx
    │   │   │   │   │   │
    │   │   │   │   │   └───assets
    │   │   │   │   │
    │   │   │   │   ├───Medal
    │   │   │   │   │   │   Medal.css
    │   │   │   │   │   │   Medal.jsx
    │   │   │   │   │   │
    │   │   │   │   │   └───assets
    │   │   │   │   │
    │   │   │   │   └───Replay
    │   │   │   │       │   Replay.css
    │   │   │   │       │   Replay.jsx
    │   │   │   │       │
    │   │   │   │       └───assets
    │   │   │   │
    │   │   │   └───Splash
    │   │   │       │   Splash.css
    │   │   │       │   Splash.jsx
    │   │   │       │
    │   │   │       └───assets
    │   │   │
    │   │   └───Land
    │   │       │   Land.css
    │   │       │   Land.jsx
    │   │       │
    │   │       └───assets
    │   │
    │   ├───Sound
    │   │   │   Sound.js
    │   │   │
    │   │   └───assets
    │   │
    │   └───Utils
    │           Utils.js
    │
    ├───index
    │   │   index.jsx
    │   │
    │   └───css
    │           index.css
    │           reset.css
    │
    └───shared
        └───css
                animations.css

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.