Giter VIP home page Giter VIP logo

birds's Introduction

Birds.js

Multiplayer clone of flappy bird powered by node.js !

Birds.js

How to install

  1. Install Node.js

  2. Download the project and go into the project directory with your console

  3. Install Dependencies by typing npm install in your console

  4. [Optional] To play on different PC, you must change the websocket address for your local IP. To do it, update SOCKET_ADDR in the file sharedConstants.js

  5. Launch the server with node server.js

  6. Open your browser and navigate to http://yourserver:port/birds (by default http://localhost:4242/birds)

  7. Play ! ๐Ÿ˜„

Optional

If you play as it, player scores are stored into an array. If you want to save scores in a persistent way, you can install the birds database on a MySQL server.

  1. Install the database by importing birds.sql
  2. Update scoreSystem class to add your DB credentials. Open games_files/scoreSystem.js and set your parameters to DB_HOST, DB_USER, DB_PASS and DB_DATA
  3. Restart server. If the DB is available, the server will print the message [ScoreSystem] Database available and connected !

Node Dependencies

Birds.js uses express, jade, socket.io and mysql modules.

Features

  • Multiplayer game !

  • Parallax background

  • Persistent scores

  • Sunset effect if you're good enough ๐Ÿ˜‰

  • Easy customization - Simply edit constants to change number of pipes, space between them, bird physic, etc...

  • Mass fun !

Notes

birds's People

Contributors

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