World of Origocraft
README.md
OrigoGame
The Origocraft world-controller. It owns the view + orchestration layer and pulls the reusable halves from sibling world modules:
| Module | Responsibility |
|---|---|
OgData | static design data (classes, mobs, items, quests) |
OgSim | the simulation kernel (combat, quests, progression) |
OgScenery | the Dawnvale scenery builder |
OgUi | every zui screen (pure view builders) |
What stays in the controller: the gameplay actors (mob/pet/NPC/crate
entities, floating combat text), screen registration + the per-frame
refresh that binds live state into OgUi and pushes its trees, input
handling, audio cues, and the per-frame tick that advances OgSim and
reflects its state into the 3D world. It holds the live state
returned by OgSim.newState(), owns the actor entities and geometry
helpers (readPos/worldToScreen), and drains the sim's
floaters/cues queues each frame.
Baked into scenes.main as the GameController entity, so it
auto-instantiates on load (edit + play) and boots from awake().
entity.spawn("og_controller").component.add("OrigoGame", {})
Modules are required by their canonical path
(require("@root::og.<Name>")) — the root-relative form that keeps
resolving when the world is published as a library.