Multiplayer clone of flappy bird powered by node.js !
-
Install Node.js
-
Download the project and go into the project directory with your console
-
Install Dependencies by typing
npm install
in your console -
[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 -
Launch the server with
node server.js
-
Open your browser and navigate to
http://yourserver:port/birds
(by defaulthttp://localhost:4242/birds
) -
Play ! 😄
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.
- Install the database by importing birds.sql
- Update
scoreSystem
class to add your DB credentials. Open games_files/scoreSystem.js and set your parameters toDB_HOST
,DB_USER
,DB_PASS
andDB_DATA
- Restart server. If the DB is available, the server will print the message
[ScoreSystem] Database available and connected !
Birds.js uses express, jade, socket.io and mysql modules.
-
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 !