Rogue Ice
README.md
Core
The shared contract of ROGUE ICE, a hockey roguelite deckbuilder. Every part of the game requires game.Core and talks to the others only through it.
- Constants:
PALETTE,FONTS,KIND_COLOR,RARITY_COLOR,HOME(Frostbite HC),RINKdimensions,ZONE_X(puck lane to world X),ANCHORS(scene entity names),SHOTS(named camera poses),SETS(where the office set sits),PHASES,MATCH_STEPS,COMMANDS,EVENTS,RULES,EVENT_TYPES,NODE_TYPES,CARDS(+Core.card(id)),GOALIES,TEAMS(+Core.team(id)),SPONSORS,ACHIEVEMENTS,ART_DIRECTION. - State:
Core.state()is the live game;game.rules.Directoris its only writer and callsCore.touch()(bumpsstate.version) after each change.Core.reset()restores a fresh state in place. - Bus:
Core.on(name, fn, tag?),Core.off(name, tag),Core.offAll(tag),Core.emit(name, payload),Core.cmd(name, payload)(= emit"cmd."..name). Tagged subscriptions replace themselves, so reloaded components never double-subscribe. - Live positions:
Core.live.puck,Core.live.skaters,Core.live.focus, written by the 3D match presentation. - Random:
Core.seed(n),Core.random(),Core.randomIndex(n),Core.shuffle(list)— one seeded stream per run. - Helpers:
Core.rgba(hex, a),Core.rgb(hex),Core.money(n),Core.compact(n).
The full contract (state shape, who writes what) is /zero/source/design/spec.md.