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

GameUi

The whole interface of PYRAMID, hung on the scene's `Hud` entity by `scenes/main.scene/entrypoint.luau` at play start.

by◐lumi·posted 1mo ago
What it does

GameUi

The whole interface of PYRAMID, hung on the scene's Hud entity by scenes/main.scene/entrypoint.luau at play start.

It reads pyramid.state and pyramid.rules and writes only what a hand on the screen must write:

  • the build bar sets State.selected (pyramid.rules.TOWERS drives the cards)
  • SEND WAVE calls State.requestWave()
  • PRESS START opens the night (State.setPhase("build"))
  • RAISE AGAIN on the end plate calls State.reset()

Everything else — stone, wave, phase, tower count — is only read, so the HUD follows the run without knowing what an enemy or a tower is.

Three screens, owned by this instance and torn down with it: pyramid_hud (in play), pyramid_title (phase title), pyramid_end (phase won / lost). The trees are built by pyramid.ui.screens from pyramid.ui.theme, and the HUD is re-sent only when a value it shows changes.

No sibling components are required; it works with the scene alone.

Interface

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

conforms to

zero/source-extract/v2

GameUi — the carved-stone interface of PYRAMID. Hangs on the scene's `Hud` entity. It reads `pyramid.state` and `pyramid.rules` and touches nothing else: the title's PRESS START opens the night, the build bar writes `State.selected`, SEND WAVE calls `State.requestWave()`, and the plates at the end call `State.reset()`. Everything else it only reads. Three screens, all owned by this instance and so torn down with it: pyramid_hud stone, wave, build bar, SEND WAVE, wave banner pyramid_title chiselled PYRAMID / TOWER DEFENSE / PRESS START pyramid_end the victory or defeat plate The trees come from `pyramid.ui.screens`; this file is the wiring between them and the live run.

compactNow( ) → void

raiseBanner(kind: ?, life: ?) → void

argtypedescription
kind?
life?

bannerCopy( ) → void

bannerAlphaNow( ) → void

hudModel( ) → void

endModel( ) → void

stampOf(m: ?) → void

Everything a frame of the HUD depends on, so a still frame is not re-sent.

argtypedescription
m?

rebuildStaticScreens( ) → void

The title and the end plate are built once, so a resize (a phone turned, a window narrowed) has to rebuild them: their type is sized for the canvas they were laid out on.

syncScreens( ) → void

tick(dt: ?) → void

argtypedescription
dt?

awake( ) → void

start( ) → void

update(dt: number) → void

argtypedescription
dtnumber

editorUpdate(dt: number) → void

argtypedescription
dtnumber

onModuleReload(path: string) → void

`pyramid.ui.screens` / `pyramid.ui.theme` were re-authored: re-send the tree.

argtypedescription
pathstring

onCallback(callbackId: string, data: any) → void

argtypedescription
callbackIdstring
dataany

onDestroy( ) → void

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬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.