PYRAMID — Tower Defense
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.compactswitches 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 fromrules.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.