Castle
Wars
A multiplayer strategy game inspired by Tribal Wars 2. The prototype covers authentication, lobby, worlds, realtime, and the first resource-and-construction loop.
- React
- Node.js
- Socket.IO
- Firebase Auth
Can synchronization and an initial economy sustain a fun multiplayer match?
Open technical case file
- React + Node / Express + Socket.IO
- Firebase Auth
- Resources + first construction queue
- In-memory state; persistence on the roadmap
- Independent project, unaffiliated with the reference game
- ARCHITECTURE
- React client → Socket.IO gateway → Node.js world loop → Firebase authentication.
- CHALLENGE
- Synchronize lobby, resources, and construction at low latency before investing in the complete game economy.
- DECISION
- Validate the realtime loop in memory and declare persistence as a gap instead of pretending the infrastructure is ready.
- NEXT SIGNAL
- Persist world state, add reconciliation, and test simultaneous command conflicts.
- FLOW
- LOBBY → MATCH
- LOOP
- RESOURCES + BUILD



