World of Origocraft
README.md
OgScenery
The scenery builder for Origocraft. Spawns the static stage — Dawnvale town, the Whispering Wood, the mire, the Sunken Glade, the graveyard, and Frostmere Reach (the northern frontier: a snowfield, Frostmere Hold keep, frozen pines, and the Frost-Jarl's hall) — plus the PBR materials they use.
ensureMaterials()— idempotently creates theow_*material set.buildScenery()— clears prior scenery (ow_prop/ground) and rebuilds the whole zone. Safe to call repeatedly.clearAll()— despawn scenery only.LAYOUT— the data the controller reads to place actors:playerSpawn,graveyard,townCenter,dungeonCenter,packs,crates.
local Scenery = require("@root::og.OgScenery")
Scenery.buildScenery()
local spawn = Scenery.LAYOUT.playerSpawn
No data dependency. Spawns only from its functions — never at module load — so requiring it is side-effect free.