# 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), `RINK` dimensions, `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.Director` is its only writer and calls `Core.touch()` (bumps `state.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`.
# Refs
The literal asset references behind `game.characters.Kits`: one `asset.tryResolve` per rigged character model (home + every `Core.TEAMS` kit, skater and goalie), per unrigged fallback mesh, per motion clip and per stick prop. Written as literals so every dependency is recorded and the world publishes; each answers nil until its asset has landed.