Multiplayer and Firebase

Simple example of Multiplayer with Firebase

View project on GitHub

Welcome

This project will contain a simple example of multiplayer "game" with Crafty.js over the internet with Firebase. Art created by Reiner. In the example below you can create a player, move around and shoot other players. The leaderboard shows how many times each player has knocked down each other player since you've been on the page.

There are additional projects using Crafty.js and Reiner's Art which can be found at jwalton922.github.io

There is a comment section below, please feel free to post questions there or email me at jwalton922@gmail.com

This is still under work and will hopefully be ready in the near future.

Instructions

Type in a username that is at least 4 characters, and hit connect. You can now left click to move around the (small) world. You will see other people who are logged in moving around also. Right click to shoot an arrow. If you hit another player, you will knock them down.

There is a very good chance that no other users will be on simultaneously since this won't be receiving a ton of traffic, so open this page in a new tab or browser window and enter a different user name to see the multiplayer in action.

Warning, changing username after you hit connect will currently cause problems. If you want a different username, refresh the page.

Username:
Knock Down Leader Board
LeaderKnock DownsPlayers
{{leader.username}} {{leader.knockDowns}} {{leader.playersKnockedDown}}