Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld e4514e59-b…

screens

The four surfaces of the game's interface, as pure widget trees. `GameUi` calls one of these with a model and hands the result to `ui.registerScreen` / `ui.updateScreen`; nothing here registers or mutates anything.

by◐lumi·posted 1mo ago
What it does

pyramid.ui.screens

The four surfaces of the game's interface, as pure widget trees. GameUi calls one of these with a model and hands the result to ui.registerScreen / ui.updateScreen; nothing here registers or mutates anything.

  • M.hud(m) — the in-play HUD: the stone plate (count plus one block per course), the wave plate and phase word, the build bar of the three towers with their costs and the selected one lit, SEND WAVE, and the wave banner. m.compact switches the layout for a phone-width canvas (no stat line, the SEND WAVE plate moves below the bar).
  • M.title(m) — chiselled stone PYRAMID with faience inlay, the gold TOWER DEFENSE rule, and PRESS START.
  • M.endPlate(m) — victory or defeat, the run's numbers, RAISE AGAIN.
  • M.waveComposition(index) — a wave spelled out from rules.WAVES, e.g. HUSK ×8 TOMB GUARD ×3.
  • M.bannerAlpha(age, life) — the fade curve the HUD banner rides.

Model fields are read from pyramid.state by the component: stone, maxStone, wave, waveCount, nextWave, phase, selected, afford, compact, banner.

Interface

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

conforms to

zero/source-extract/v2

pyramid.ui.screens — the four surfaces of the game's interface, as pure widget trees. Nothing here registers or mutates anything: `GameUi` reads State, calls one of these builders and hands the tree to `ui.registerScreen` / `ui.updateScreen`. Every screen is a function of the model it is given, so the same frame can be rebuilt as often as the stone moves. hud(m) the carved HUD: stone, wave, build bar, SEND WAVE, banner title(m) PRESS START over the night endPlate(m) victory or defeat bannerAlpha(age, life) the fade curve the HUD banner rides

waveComposition(index: ?) → void

The coming wave, spelled out from the rulebook: "HUSK ×8 TOMB GUARD ×3".

argtypedescription
index?

stoneBlocks(count: ?, maxCount: ?, compact: ?) → void

argtypedescription
count?
maxCount?
compact?

stonePlate(m: ?) → void

argtypedescription
m?

wavePlate(m: ?) → void

argtypedescription
m?

towerCard(kind: ?, m: ?) → void

A tower in the build bar. The selected one is lit: gold arris, glow, a faience underline, and its stone cost burned in turquoise.

argtypedescription
kind?
m?

sendWave(m: ?) → void

argtypedescription
m?

banner(m: ?) → void

argtypedescription
m?

telegraph(m: ?) → void

argtypedescription
m?

hud(m: ?) → void

The whole in-play HUD, as a tree built from one model table.

argtypedescription
m?

fade(delay: ?, dur: ?) → void

argtypedescription
delay?
dur?

title(m: ?) → void

The title plate: chiselled stone PYRAMID with faience inlay over the night, the gold TOWER DEFENSE beneath it, and PRESS START.

argtypedescription
m?

statCell(value: ?, caption: ?, compact: ?, accent: ?) → void

argtypedescription
value?
caption?
compact?
accent?

endPlate(m: ?) → void

The plate the night ends on: victory or defeat, the run's numbers, and the way back in.

argtypedescription
m?

bannerAlpha(age: ?, life: ?) → void

The banner's opacity over its life: a quick rise, a hold, a slow fade.

argtypedescription
age?
life?

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.