Log inGet started
Package

OrigoBoard.component

Newest version

README.md

OrigoBoard — the ring, the toys and the die

The board slice of Origo Party. It dresses the authored ring and brings it to life, and it never writes the scene:

  • Four toy characters (seats 1–4, pink / mint / lemon / tangerine) built from the CandyTile slab and primitives: slab body with a cream belly, wider slab head with a cream face, dark eyes and a coral smile, a party hat with a cream brim and bobble, mitten hands, cream boots, and the little die pinned to the chest.
  • Tile-by-tile walking with a hop, a forward lean and a landing squash. The walk is driven by the moveStep / arrive events, and catches up from Rules.state if the bus goes quiet for a seat.
  • The fat die (rounded box, black pips, one coral-marked face) tumbles over the middle of the board on roll and settles showing the rolled value to the camera, then bobs while it waits.
  • Tile glyphs — +3, -3, ?, SHOP, STAR — as cream Text3D lettering lying on each slab, re-read from Rules.spaceKindAt(i, round) every round so the Star Space's move is visible; the shop stall also gets a coral SHOP board.
  • Coin and Star pops off the tile that resolves, delayed until the toy has actually landed there.
  • PartyCamera is moved only by lerping its transform: a gentle lean toward whichever toy is walking, a centring on the die while it rolls, a slow drift on the title and the ceremony. It holds still while the showdown owns the camera (showdownStart / showdownEnd).

Attaches to

The Pawns anchor, mounted by scenes/main.scene/entrypoint.luau as game.board.OrigoBoard.

Needs

  • game.rules — state and bus (read only; the Match slice writes it).
  • game.materials.Candy* and game.meshes.CandyTile — the authored art.
  • juiceKit — reaction layer (coinPickup, levelUp, popIn, pulse, vfxConfetti).
  • The scene's named tiles (tile_1…tile_32) for the glyph height, and the PartyCamera entity.

Everything it spawns is a temporary child of one group entity under the anchor, so a scene rebuild never fights it and onDestroy removes the lot.