❓How game works
How the Game Works (Behind the Scenes)
✅ Inputs
Everything in the game happens through inputs:
moveTo,join,startConversation, etc.Inputs are processed on the server and trigger game logic.
You can create custom inputs using
inputHandler.
🕹️ Game Loop
The simulation ticks 60 times/second for smooth movement but only saves data every second. This saves server resources while making motion look fluid.
tsCopyEdittick(now) => simulate movement, pathfinding, conversations, agent behavior🧠 AI Agents
Agents:
Run on a separate loop (
Agent.tick).Use LLMs to chat.
Save and recall memories (via embeddings).
Submit actions like
moveToorstartConversationjust like a human would.
🤖 Agents can't directly change the world — they always act through inputs.
Last updated