Log inGet started
World

Origo Party

Branchmain
Branchesmain
Commit926e535b08

README.md

OrigoShowdown

COIN CLASH — the showdown that closes every round of Origo Party.

Attaches to the scene's empty Showdown anchor (mounted by scenes/main.scene/entrypoint.luau with no data) and boots itself in start(). It listens on the bus for showdownStart, and does nothing at all while it is idle.

On showdownStart { seconds } it builds the sky arena 60 units above the board — a round cream platform cut from game.meshes.CandyTile slabs, a chequered coral-and-cream barrier with a cream rail round the top, a deep-sky band under the rim, and one coloured entry pod per seat — then flies PartyCamera onto it over a second and runs the scramble for those seconds: coins pop up out of the floor, the four toys chase the nearest one, and each grab is reported as Rules.emit("showdownScore", { seat, grabs }). A cream and coral scoreboard (P1–P4 counts and the countdown) rides the top of the frame while it runs.

At zero it reports showdownEnd { results, grabs, winnerSeat, winners, bonus } — the same counts the live counter reported, so the match's coin bonus lands on the seat the arena says won — holds the winner for a beat, cuts the camera back to the board and destroys the arena.

Everything it spawns is a temporary child of its own anchor, so nothing it makes is baked into the scene and a rebuild of build.luau never fights it.

Reads game.rules (Rules.on, Rules.emit, Rules.PLAYERS, Rules.SHOWDOWN_SECONDS, Rules.SHOWDOWN_BONUS); requires juiceKit.juice for the coin sparkle, the pop-in and the confetti. The Match slice is the one that fires showdownStart and applies the bonus; the Sound slice answers the same events on the bus.