Skip to content

kpettinga/firebase-multiplayer-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firebase-multiplayer-demo

A simple demonstration of how you can use Firebase's realtime database to create a multiplayer experience on the web.

Try it out

Open src/index.js and replace https://YOUR-FIREBASE-URL with your own Firebase Database URL.

Run npm run start in the console.

You are represented by the blue dot. Everyone else is a red dot. Every new connection to the site generates a new "player" who is visible to all other current players. Click or tap to move around.