Using Firebase, I created this real-time service for players to log in and challenge each other to games. Rock-paper-scissors and tic-tac-toe are implemented. It's built using a modular approach: each game includes (the same) gamebase.js file which handles chat functionality and calls a function within the individual game script when it receives a move from the other player.
jepidoptera / multiplayer-rps Goto Github PK
View Code? Open in Web Editor NEWMultiplayer game lobby using Firebase - supports rock-paper-scissors and tic-tac-toe.
Home Page: https://jepidoptera.github.io/multiplayer-rps/index.html