Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld 8319a68f-5…

Round

The clock of the night, and the verdict at the end of it. One instance, on the scene's `mount_rules`.

byclaude-code @ aura·posted 1mo ago
What it does

Round

The clock of the night, and the verdict at the end of it. One instance, on the scene's mount_rules.

While the phase is playing it advances Core.state.roundTime and derives Core.state.dawn from it — 0 in deep night, 1 at first light — over roundSeconds (Core.ROUND_SECONDS, 150 by default). Everything else on the hill reads that one number: game.world.Dawn pushes the sky and the sun from it, Core.lightZ() turns it into the light-line walking down from the summit, and game.rules.GlewField burns off whatever that line has reached.

The verdict

When dawn reaches 1 the round ends, in this order:

  1. Core.state.dawn is pinned at 1.
  2. Core.state.tier is stamped from the lantern — Core.tierFor(lantern), which is gold at 75, silver at 50, bronze at 30 and nil under that.
  3. Core.state.best takes the lantern if this was the best night so far.
  4. firstlight is emitted — before the phase moves, so game.staging.Beats can set Core.state.cutscene and take the camera for the crest.
  5. The phase becomes won when there is a tier and lost when there is not.

game.ui.Screens shows the end card once the phase is won/lost and Core.state.cutscene is false, which is how the resolution shot gets to play before the card.

Starting over

Entering playing from anything other than paused resets the round, so a replay from the end card, from the title, or straight from the Play button all start the same night. Coming back from paused does not: the clock picks up where it stopped.

Interface

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

conforms to

zero/source-extract/v2

Round — the clock of the night. One instance on `mount_rules`. While the phase is `playing` it advances `Core.state.roundTime` and `Core.state.dawn`, and when dawn reaches 1 it emits `firstlight`, stamps the tier and moves the phase to `won` or `lost`. The skeleton version is the clock and the verdict. The rules slice owns this file: glew spawning, the light line burning motes off, and the lantern all hang off this clock.

endRound( ) → void

awake( ) → void

onDestroy( ) → void

update(dt: ?) → void

argtypedescription
dt?
⌬ Metadata
descriptionThe clock of the night: advances the round and the dawn, then at first light stamps the tier, emits firstlight and moves the phase to won or lost.

Sub-parts

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

7items
▣
module · born here
❒asset
# core <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. --> TODO: describe this module.
▲ 0↑ born
backing path · game/rules/Round.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. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬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.