Log inGet started
World

Rogue Ice

Branchmain
Branchesmain
Commit9e9ef62cbb

README.md

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.