Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld 377f8142-9…

Rink

The on-ice presentation of ROGUE ICE, on the scene's `Rink` anchor. Owned by the skaters slice (see `/zero/source/design/spec.md`).

byclaude-code @ aura·posted 24d ago
What it does

Rink

The on-ice presentation of ROGUE ICE, on the scene's Rink anchor. Owned by the skaters slice (see /zero/source/design/spec.md).

  • Cast. Builds a temporary, per-peer stage: 3 home + 3 away skaters, a home spare (the player going off in a line change), both goalies, the puck (rubber disc, gold halo, point light, shot trail), a gold possession ring, a crimson opponent-intent ring, a gold buff ring, red goal lamps and the captain's title spotlight. Characters come from game.characters.Kits (rigged mesh_gen kits per team) through game.match3d.Actors. A kit that has not landed is drawn as a team-coloured stand-in and swapped for the real model as soon as it lands.
  • Acting out the bus. Queues every match event (match.started, faceoff, puck.moved, shot, save, goal, hit, block, intent, line.changed, equip, buff, period.ended, match.ended) and plays them in order as motion at the puck zone in Core.ZONE_X. Passes travel stick to stick, carries skate the puck in, steals poke it loose, shooters skate into a lane and fire with a glowing trail, goalies butterfly on saves, goals ripple the net, light the lamp, throw frost spray and gold sparks and bring the scorers together to celebrate, and checks drive the hitter into the nearest opponent with a spray and a camera shake. A backlog plays faster; goal and final-whistle beats always play in full.
  • Life between events. A formation built around the puck keeps everyone skating: the carrier loops with the puck, support skaters find lanes, defenders press and cover, and goalies shade toward the puck. A reconcile pass keeps the ice in step with Core.state().match (puck zone and possession, score changes, the line's player cards) when events were missed.
  • Core.live. Writes puck, skaters[key], focus, carrier, possession and zone every frame.
  • Camera. Directs MainCamera per Core.state().phase. title is a slow orbit of the captain at centre ice under a spotlight. match is a broadcast follow of Core.live.focus on the Core.SHOTS.match rake that pans and zooms, tightening on shots and goals. hub/shop/reward is the office shot, with the home line running drills and shots on the goalie beyond the window. event is the broadcast shot. Everything else gets the arena establishing shot.

Fields: orbitSpeed, followRate, matchFov, and previewPhase (stage a phase without touching game state; empty follows the game). rink:debug() returns a snapshot of the queue, mode, puck and every actor.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

game.match3d.Rink — the on-ice presentation of ROGUE ICE. Spawns the two lines (3 skaters a side), both goalies and the puck; plays the Director's bus events in order as motion (faceoffs, line changes, passes and carries between Core.ZONE_X zones, shots with a glowing trail, saves, goals with net ripple / lamp / frost spray / celebration, hits, blocks, telegraphed intents); keeps everyone skating between events; publishes Core.live; and directs MainCamera per Core.state().phase. Everything spawned here is temporary and local to this peer: every peer stages its own rink from the same replicated state.

ModelLightTrailRendererSpotLight

clamp(v: number, a: number, b: number) → number

small helpers

argtypedescription
vnumber
anumber
bnumber

lerp(a: number, b: number, t: number) → number

argtypedescription
anumber
bnumber
tnumber

rnd(a: number, b: number) → number

argtypedescription
anumber
bnumber

dirOf(team: string) → number

argtypedescription
teamstring

other(team: string) → string

argtypedescription
teamstring

zoneX(z: number?) → number

argtypedescription
znumber?

cardIdForUid(uid: any) → string

argtypedescription
uidany

actorList( ) → void

stage

skaters(team: string) → void

argtypedescription
teamstring

goalie(team: string) → any

argtypedescription
teamstring

buildPuck(parent: any) → void

argtypedescription
parentany

setTrail(on: boolean) → void

argtypedescription
onboolean

buildRings(parent: any) → void

argtypedescription
parentany

buildLamps(parent: any) → void

argtypedescription
parentany

spotAt(name: string, p: { number }, color: { number }, angle: number) → any

a warm key from the camera side and a cold rim from behind: the title_screen reference's spotlit captain, without any shadow map

argtypedescription
namestring
p{ number }
color{ number }
anglenumber

qmul(a: { number }, b: { number }) → void

argtypedescription
a{ number }
b{ number }

buildTitleCards(parent: any) → void

argtypedescription
parentany

card(i: number, big: boolean, face: any) → void

argtypedescription
inumber
bigboolean
faceany

setTitleCards(on: boolean) → void

argtypedescription
onboolean

updateTitleCards(T: number) → void

Cards ride a tilted ellipse in the camera's plane around the captain, clear of his body, turning toward the lens with a slow roll.

argtypedescription
Tnumber

buildStage(anchor: any) → void

argtypedescription
anchorany

destroyStage( ) → void

resetPlay( ) → void

the match model the rink plays out

pickCarrier(team: string, exclude: string?) → string

Who carries for `team`: keep the current carrier when it is theirs.

argtypedescription
teamstring
excludestring?

formation(T: number) → void

Formation targets for the run of play around the puck.

argtypedescription
Tnumber

put(a: any, x: number, z: number) → void

argtypedescription
aany
xnumber
znumber

faceoffSpots( ) → void

puckTravel(to: { number }, dur: number, arc: number?, onArrive: (() → void

puck

argtypedescription
to{ number }
durnumber
arcnumber?
onArrive((

holdBy(key: string) → void

argtypedescription
keystring

updatePuck(dt: number) → void

argtypedescription
dtnumber

plate(a: any, secs: number?) → void

event playback: every bus event is queued and played in order

argtypedescription
aany
secsnumber?

netRipple(side: string) → void

argtypedescription
sidestring

updateRipple(dt: number) → void

argtypedescription
dtnumber

lineChange(slot: number, id: string?) → void

argtypedescription
slotnumber
idstring?

goalMouth(team: string) → number

argtypedescription
teamstring

updateShot( ) → void

fn( ) → void

fn( ) → void

enqueue(name: string, payload: any) → void

argtypedescription
namestring
payloadany

fastForward(item: any) → void

Apply an event's end state without acting it out: how a long backlog is caught up so the ice never trails the rules by more than a few beats.

argtypedescription
itemany

runQueue( ) → void

reconcile( ) → void

keeping the ice in step with the state when events were missed

enterPhase(phase: string) → void

staging per phase

argtypedescription
phasestring

stagePhase(T: number) → void

argtypedescription
Tnumber

fn( ) → void

v3(t: { number }) → void

camera director

argtypedescription
t{ number }

shotPose(name: string) → void

argtypedescription
namestring

cameraTarget(T: number) → void

argtypedescription
Tnumber

updateCamera(dt: number, T: number) → void

argtypedescription
dtnumber
Tnumber

publishLive(dt: number) → void

live

argtypedescription
dtnumber

awake( ) → void

lifecycle

tick(dt: number) → void

argtypedescription
dtnumber

update(dt: number) → void

argtypedescription
dtnumber

onDestroy( ) → void

debug( ) → any

Read-only snapshot of what the rink is playing, for verification.

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

Showing up to 3 levels deep. Open a part to see what it holds further down.

82+items
◐
material · born here
❒asset
# tc_playmaker material Lacquered card-face illustration (playmaker) for the 3D foil cards that swirl around the captain on the Rogue Ice title screen; slightly self-lit so it reads under the arena spotlights.
▲ 0↑ born
◐
material · born here
❒asset
# title_pool material The warm spotlight pool on the ice under the captain on the Rogue Ice title screen: a soft gold-white disc on `game.match3d.shaders.blob_shadow` (premultiplied), so the spot reads on the ice without a shadow-casting light.
▲ 0↑ born
◐
material · born here
❒asset
# tc_breakaway material Lacquered card-face illustration (breakaway) for the 3D foil cards that swirl around the captain on the Rogue Ice title screen; slightly self-lit so it reads under the arena spotlights.
▲ 0↑ born
▣
module · born here
❒asset
# Fx The Rink's small effects, drawn from pools so a burst costs no spawn: frost-spray ice chips (hard stops, hits, goals, blocks), glacier-cyan sparkles (equipment), championship-gold sparkles (buffs, celebrations), and glowing rings laid flat on the ice (the gold possession ring under the puck carrier, the crimson opponent-intent marker). `Fx.init(parent)` builds the pools under the Rink's stage, `Fx.burst(kind, pos, count, speed)` throws chips, `Fx.ring(...)` builds a ring, `Fx.update(dt)` runs them.
▲ 0↑ born
◐
material · born here
❒asset
# tc_big_hit material Lacquered card-face illustration (big_hit) for the 3D foil cards that swirl around the captain on the Rogue Ice title screen; slightly self-lit so it reads under the arena spotlights.
▲ 0↑ born
◐
material · born here
❒asset
# tc_tape_to_tape material Lacquered card-face illustration (tape_to_tape) for the 3D foil cards that swirl around the captain on the Rogue Ice title screen; slightly self-lit so it reads under the arena spotlights.
▲ 0↑ born
▣
module · born here
❒asset
# 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`.
▲ 0↑ born
◐
material · born here
❒asset
▲ 0↑ born
◐
material · born here
❒asset
# tc_crest_frostbite material Lacquered card-face illustration (crest_frostbite) for the 3D foil cards that swirl around the captain on the Rogue Ice title screen; slightly self-lit so it reads under the arena spotlights.
▲ 0↑ born
◐
material · born here
❒asset
# tc_goalie_zone material Lacquered card-face illustration (goalie_zone) for the 3D foil cards that swirl around the captain on the Rogue Ice title screen; slightly self-lit so it reads under the arena spotlights.
▲ 0↑ born
▣
module · born here
❒asset
# Kits Where every ROGUE ICE character lives on disk: the rigged skater and goalie model for the home side (Frostbite HC, crimson/gold with the ice-shard crest) and for each opponent in `Core.TEAMS`, the shared motion clips (stride, glide, ready stance, slapshot, pass, body check, hit reaction, celebration, goalie ready, goalie save), the sticks, and the jersey name + number each player card wears on the ice. `game.match3d.Rink` reads it to dress the two lines for a match.
▲ 0↑ born
◐
material · born here
❒asset
# tc_superstar material Lacquered card-face illustration (superstar) for the 3D foil cards that swirl around the captain on the Rogue Ice title screen; slightly self-lit so it reads under the arena spotlights.
▲ 0↑ born
△
mesh · born here
❒asset
▲ 0↑ born
◐
material · born here
❒asset
# tc_foil material Championship-gold foil frame of the 3D cards that swirl around the captain on the Rogue Ice title screen: polished metal with a warm glow so the frames catch the spotlights.
▲ 0↑ born
▣
module · born here
❒asset
# Actors One skater or goalie on the ROGUE ICE rink: the rigged character model for its team kit (from `game.characters.Kits`), a taped stick in its hands, a jersey nameplate, and a motion layer that crossfades the generated clips — stride / glide / ready stance under locomotion, and one-shots (slapshot, pass, body check, hit reaction, celebration, goalie save) on top. `Actors.new` builds one, `Actors.update` steers it toward its target with skating physics and picks the clip from its speed, `Actors.play` fires a one-shot, `Actors.setKit` re-dresses it for another team. A kit whose model has not landed is drawn as a team-coloured stand-in so the game always runs.
▲ 0↑ born
◐
material · born here
❒asset
# puck_glow material The soft championship-gold light pool that always sits under the Rogue Ice puck, so the puck reads at a glance from the broadcast camera. A gold-tinted disc on `game.match3d.shaders.blob_shadow` (premultiplied, so it brightens the ice toward gold).
▲ 0↑ born
◐
material · born here
❒asset
# tc_slapshot material Lacquered card-face illustration (slapshot) for the 3D foil cards that swirl around the captain on the Rogue Ice title screen; slightly self-lit so it reads under the arena spotlights.
▲ 0↑ born
❒
bundle · born here
❒asset
▲ 0↑ born
backing path · game/match3d/Rink.component

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.