Log inGet started
World

PYRAMID — Tower Defense

Branchmain
Branchesmain
Commit82c25f40b2

README.md

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.