Log inGet started
World

First Light: Betocsin

Branchmain
Branchesmain
Commit065ea629bf

README.md

hud

The instruments the player reads while the tower goes up, and the caption strip the Warden's spoken lines print on.

local Hud = require("game.screens.hud")
ui.registerScreen("flb_hud", Hud.tree(T.metrics(), view), 20)
ui.registerScreen("flb_hud_touch", Hud.controls(T.metrics()), 300)
ui.registerScreen("flb_caption", Hud.caption(T.metrics(), text, alpha), 40)
BuilderWhat it draws
Hud.tree(m, view)Two gradient scrims, the dawn meter down the left edge with the four watches marked, the course readout and true-seat streak in the top-left, the crane's prompt near the bottom, and the two beats that flash — a true seat and a watch.
Hud.controls(m)The HUD's own tap targets. Its own screen, because they have to ride above the engine's on-screen touch-control overlay.
Hud.caption(m, text, alpha)The written form of whatever the Warden just said.
Hud.skyAt(t)The colour the sky wears at a reading of dawn, so the meter's head and the sky agree.

Portrait first, and still right when wide

Nothing here spans the frame. The meter runs DOWN the left edge, the readout stacks in a corner, the prompt is one centred line. Every position is a fraction of the live ui.screenSize(), so on a wide screen the meter is simply shorter and the column narrower — no number in this file was chosen for one shape.