How team-greencamp/roly-poly works
Roly-Poly is a Unity multiplayer party game centered on wobbly physics-based characters, obstacle interaction, and cooperative stage progression, with an Express/MySQL lobby service. The documented player flow is input and movement, world interaction, cooperation toward a goal, then progression to another round; room discovery and joining form a separate lobby flow. The tree does not contain the documented Unity gameplay scripts, scenes, or UI, so those capabilities are represented at the existing Assets directory level. Unity subsystem links rely on README statements; backend links are supported by the sampled source.
Main entry points: Assets Player · app.js Room REST API · db.js MySQL Pool · server.js HTTP Server
Components 14
Unity Gameplay
- Player
Assets - Character Physics
Assets - Player Actions
Assets - World Interactables
Assets - Stage Progression
Assets
Networking
- Netcode Sync
Assets - Unity Relay
Lobby Service
- Room API Client
Assets - Room REST API
backend/src/app.js - HTTP Server
backend/src/server.js - MySQL Pool
backend/src/db.js - MySQL Rooms
Client Presentation
- Game UI
Assets
Other components
- Player
Connections 15
- Player → Player: controls
README.md - Player → Character Physics: drives movement
README.md - Character Physics → Player Actions: enables actions
README.md - Player → World Interactables: interacts with
README.md - World Interactables → Stage Progression: supports goals
README.md - Stage Progression → Player: advances round
README.md - Netcode Sync → Character Physics: syncs state
README.md - Netcode Sync → World Interactables: syncs gimmicks
README.md - Player → Netcode Sync: submits input
README.md - Game UI → Room API Client: uses room API
- Room API Client → Room REST API: calls REST
README.md - Room REST API → MySQL Pool: queries rooms
backend/src/app.js - MySQL Pool → MySQL Rooms: reads and writes
backend/src/db.js - HTTP Server → Room REST API: serves app
backend/src/server.js - Netcode Sync → Unity Relay: may use Relay
README.md