init.luau
Versions
Every version of this package its world published, newest first by when it first appeared. A version published again later keeps its place.
Add 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.
01KWD1ZP1PSBMD9NSGW9FVNJAH51c961c8c6Browse filesCompare with previousCompare from hereRebuild 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.
01KWCQF60JTPJX6V5DM53BJRJCad887d412fBrowse filesCompare with previousCompare from hereConsolidate 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.
01KWCJ24N3QS8ZQ7TGY8MZGDBV4e5c723745Browse filesCompare with previousCompare from hereOrigocraft: 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 label
01KWC74VP7T28KRJTW2V26ZAP5b0d2f957b9Browse filesCompare with previousCompare from hereOrigocraft: add consumables/potions, vendor buying, critical strikes, quick-quaff (R); fix repeated-New-Game actor leak
01KWC5YQJ6ACKJDF21TDZDTGHE92f6e8e7eaBrowse filesCompare with previousCompare from hereOrigocraft: decompose the OrigoGame monolith into reusable modules (OgData, OgSim, OgScenery, OgUi) + a thin controller component --- Origocraft: add .metadata sidecars to the new og modules
01KWC3AK30C5G8H080SRT8H9MK9dfa69c56bBrowse filesCompare with previousCompare from hereOrigocraft: class-select + quest/combat leveling + Grovekeeper dungeon --- Origocraft: add component .metadata sidecar
01KW4DBF0FWC6S739WQBS24HWF3a7c609371Browse filesCompare from here