World of Origocraft
Commits
Every published commit of this world, on every branch, newest first.
51c961c8c6Add combat VFX: ability particles, spell projectiles, target ring
OgFx is a new view module the controller drives: a per-element additive
particle pool (frost/fire/arcane/nature/physical), emissive projectiles that
fly caster->target for ranged spells and shots (bursting on impact), melee
impact bursts, and a glowing selection ring under the targeted enemy.
OgSim records intent without touching geometry: a new state.fx queue + M.fx
helper, emitted from resolveAbility (so both instant abilities and completed
casts fire). OrigoGame requires OgFx, calls Fx.init() once actors are built,
binds it alongside the UI, and each combat frame drains S.fx into Fx.cast and
steps Fx.update.
The world's deferred pipeline does not render per-mesh outlines, so the
selected-target highlight is an emissive ground ring (which renders) rather
than a mesh outline. Projectile materials are regenerated at runtime.
---
Add floating target marker above the selected enemy
The ground selection ring can be hidden by the target's own body or nearby
props at low camera angles. Add a downward-pointing emissive marker that bobs
above the target's head — never ground-occluded — so the selection always
reads clearly. Also enlarge + brighten the ground ring.9313ee7beeFix Origocraft HUD layout: action bar to the bottom, tidy panels
The action bar (hotbar + gold/quaff/bags/menu + XP) floated in the middle of
the screen: a bare vbox as an anchor's direct child is sized to the full screen
and, with align=center, its content ends up vertically centered. Wrapping it in
a panel makes it shrink-wrap so BottomCenter pins it to the bottom edge, and the
subtle background reads as a proper HUD bar.
Also: inset the top-left frames + top-right minimap 34px so they clear the
editor menu bar in-preview (a comfortable HUD margin at runtime), move the quest
tracker below the repositioned minimap, and give the minimap + action-bar panels
explicit widths so they hug their content instead of stretching into wide empty
boxes.3f05d4cc2eFix voxel ground/patch burying every prop and actor
Ground tiles and overlay patches were placed with pivot="bottom" at y=0, so a
1-voxel slab at blockSize 2.5 put its walkable SURFACE at world y=2.5 while
every structure (place(x,0,z)) and actor (setPos(...,0,...)) sat at y=0 — the
bottom of the slab. Result: the whole world rendered ~2.5 units sunk inside
the opaque ground; actors showed as heads, cottage doors were buried.
The voxel engine transform (pivot/blockSize/scale/rotation) was verified
correct; this was content misuse of the placed-y semantics. placeIn/place now
take an optional pivot (default "bottom", unchanged for props/actors), and
groundTile + patch pass pivot="top" so the authored y is the slab TOP surface
(grass top at 0, snow at 0.02, patches at 0.06-0.07) with the body hanging
downward. Props and actors at y=0 now rest on the surface.ad887d412fRebuild Dawnvale + Frostmere scenery entirely from voxels
OgVoxel grows from 3 decorations into a full voxel asset library: cottage,
tower, hall, curtain wall (with gate), fountain, gravestone, banner, archway,
signpost, auto-tiled ground field, and overlay patches — all built additively
(openings are left unfilled, never carved) and parented under temporary props
so they share the scenery lifecycle. Shapes are named by their container's
entity id so names never collide across a hot-reload.
OgScenery drops every cube/cylinder/cone/sphere/plane primitive and the PBR
material set, composing the whole world — terrain, town, woods, glade,
graveyard, and the frozen keep — from these voxel builders. LAYOUT, the
collider rig, and the lighting toolbox call are unchanged. 83 shapes,
~17ms steady-state.
---
Build Origocraft's mobs, NPCs, crates, and pet from voxels
OgVoxel gains actor builders — wolfActor (quadruped), humanoidActor
(kobolds/bandits/NPCs), bossActor (horned), petActor, crateActor (wooden +
frozen) — each spawning a temporary og_actor root with a voxel body and
returning the root id the simulation positions and despawns.
OrigoGame drops spawnBody and the cube/capsule/sphere/cone actor primitives:
spawnMobEntity, the NPC/crate/pet spawns now call the voxel builders with each
unit's design colour. ensureActorMaterials shrinks to just the two ground
telegraphs (attack ring + boss slam), the only primitive visuals left — those
scale a flat emissive disc to the live attack radius and stay as VFX.
Validated via a real New Game: 52 actors, healthy HUD, ~17ms.6354a8323dDrive Origocraft sun/ambient via the lighting toolbox
Light-component entities carry direction/intensity but do not feed the
deferred lighting pass, so the world rendered dark regardless of the rig.
buildLighting now calls editorTools('lighting').setSun/setAmbient, which
drives the renderer's directional sun + ambient directly.4e5c723745Consolidate Origocraft daylight into the scenery builder
The daylight rig lived in OrigoGame.setupWorld before its gated buildScenery
call, so clearAll despawned it on first build and re-entry duplicated the sun
(two directional lights render dark). Move the single sun + ambient into
OgScenery.buildLighting (after clearAll) and brighten it, and reposition the
voxel pines/crystals to open, visible ground.30b17188baAdd voxel decorations + daylight to Origocraft
OgVoxel module builds blocky voxel models (pine, mossy boulder, ice-shard
crystal) parented under temporary scenery props. OgScenery places them across
Dawnvale (entrance pines, kobold boulders) and Frostmere Reach (frosted pines,
ice crystals), and adds a directional sun + ambient fill so the world reads in
full colour.b0d2f957b9Origocraft: bigger world — add Frostmere Reach zone (snowfield, Frostmere Hold hub + 2 NPCs), 4 frost mobs incl. the Frost-Jarl boss, a 4-quest chain, level cap 5->8 with per-class capstones, quest level-gating, dynamic zone label92f6e8e7eaOrigocraft: add consumables/potions, vendor buying, critical strikes, quick-quaff (R); fix repeated-New-Game actor leak9dfa69c56bOrigocraft: decompose the OrigoGame monolith into reusable modules (OgData, OgSim, OgScenery, OgUi) + a thin controller component
---
Origocraft: add .metadata sidecars to the new og modulesed19aa2884Origocraft: procedural FLAC audio wired to the cue system (swing/cast/levelup/quest/loot/heartbeat/boss + forest ambient loop)3a7c609371Origocraft: class-select + quest/combat leveling + Grovekeeper dungeon
---
Origocraft: add component .metadata sidecar