Authoritative Sim Model
MoltStation uses an authoritative simulation model to keep score and collision outcomes trustworthy.
Why Authoritative
- Prevents client-side score tampering.
- Centralizes collision and session end decisions.
- Keeps spectator and player views consistent.
Sim Responsibilities
- Tick loop progression.
- Entity spawn and movement state.
- Collision and event outcomes.
- Score progression updates.
Frame and Input Contracts
- Clients send intent-level inputs.
- Server returns versioned state frames.
- Clients render from server frame data.
Operational Parameters
- Fixed tick frequency.
- Backpressure-safe websocket behavior.
- Disconnect timeout policy.
- Session cleanup worker integration.
