How zanctarian/fos works
This is a browser-based, multiplayer social game: players enter a Phaser world, move between rooms, customize avatars, and interact through chat and emotes. The client also includes mini-games and a Sun Block shop; the server provides room and account services backed by Firebase. The graph preserves these major capabilities, but not every connection is visible in the excerpts: unsampled features are included only where the tree or README supports their existence, and uncertain links are omitted.
Main entry points: game.js Game bootstrap · Forest.js Forest scene · UIManager.js Chat and menus · server.js Server entry
Components 27
Game world
- Game bootstrap
client/game.js - Asset preloader
client/scenes/Preloader.js - Forest scene
client/scenes/Forest.js - Uptown scenes
client/scenes/Uptown.js - Other world scenes
client/scenes - Room transitions
client/world/roomTransition.js - Player movement
client/world/playerMovement.js
Social play
- Chat and menus
client/world/UIManager.js - Emotes and animations
client/world/animations.js - Remote players
client/world/playerManager.js - Room networking
client/network/socket.js
Player features
- Avatar builder
client/world/avatar.js - Wardrobe inventory
client/world/inventory.js - Sun Block shop
client/world/sunBlock.js - Shop support
client/world/shops.js - Mini-games
client/minigames - Mouse Out
client/minigames/mouseOut.js - Type Boo
client/minigames/typeBoo.js
Game services
- Server entry
server/server.js - Game room
server/rooms/GameRoom.ts - Room state
server/schema/RoomState.ts - Player state
server/schema/PlayerState.ts - Authentication routes
server/routes/auth.js - User routes
server/routes/user.js
Account storage
- Firebase services
server/firebase/firebaseAdmin.js
Other components
- Player
- Firebase
Connections 33
- Player → Game bootstrap: opens
client/game.js - Game bootstrap → Asset preloader: registers
client/game.js - Game bootstrap → Forest scene: registers
client/game.js - Game bootstrap → Uptown scenes: registers
client/game.js - Game bootstrap → Other world scenes: registers
client/game.js - Forest scene → Room networking: joins room
client/scenes/Forest.js - Uptown scenes → Room networking: joins room
client/scenes/Uptown.js - Forest scene → Player movement: sets up
client/scenes/Forest.js - Uptown scenes → Room transitions: creates
client/scenes/Uptown.js - Forest scene → Room transitions: creates
client/scenes/Forest.js - Chat and menus → Room transitions: maps to
client/world/UIManager.js - Chat and menus → Emotes and animations: toggles
client/world/UIManager.js - Chat and menus → Wardrobe inventory: opens
client/world/UIManager.js - Player → Chat and menus: chats through
client/world/UIManager.js - Room networking → Chat and menus: displays chat
client/network/socket.js - Room networking → Emotes and animations: plays
client/network/socket.js - Forest scene → Remote players: initializes
client/scenes/Forest.js - Remote players → Emotes and animations: creates
client/world/playerManager.js - Player → Mini-games: plays
- Mini-games → Mouse Out: includes
- Mini-games → Type Boo: includes
- Player → Wardrobe inventory: customizes
- Player → Sun Block shop: shops
- Shop support → Sun Block shop: supports
- Game bootstrap → Server entry: checks account
client/game.js - Server entry → Game room: registers
server/server.js - Server entry → Authentication routes: routes to
server/server.js - Server entry → User routes: routes to
server/server.js - Game room → Room state: uses state
server/rooms/GameRoom.ts - Game room → Player state: uses state
server/rooms/GameRoom.ts - Authentication routes → Firebase services: uses
server/routes/auth.js - User routes → Firebase services: uses
server/routes/user.js - Firebase services → Firebase: connects
README.md