gizgame/screens
The flow's panels: the title, the pause, the settings and the end.
import * as Screens from "gizgame/screens";Functions
panels
function panels(hud: Hud): void throws stringThe flow's screens over HUD: the title (the game's title, its help and the keys that start), the pause (the settings) and the end (Game.ends: its words, and the score unless it says a line).
Effects: fail, read, write, console, io, alloc.
glass
function glass(alpha: f64): Vec<f64>The dark glass of a panel, ALPHA thick.
Effects: fail, alloc.
button
function button(h: Hud, text: string, x: f64, y: f64, color: Vec<f64>, code: string): f64 throws stringA button: TEXT on a filled pill in COLOR, its left at X and its top at Y, a soft light behind that breathes; a pointer on it presses the key CODE; its width.
Effects: fail, read, write, console, io, alloc.
Constants
ACCENT
const ACCENT = [0.45, 0.9, 1, 1]The panels' accent color.
INK
const INK = [0.03, 0.05, 0.08, 1]The panels' ink.
BLEND
const BLEND = 1.0How long the eye takes to ease back from a conversation's shot, in seconds.
GAZING
const GAZING = 0.07The time constant, in seconds, of a head that turns to a new mark (figure).
OVER
const OVER: Vec<f64> = [1.0, 0.7, 0.05, 0.6]An over-the-shoulder shot (dialogue): the eye this far behind the listener's eyes, this far to its side, and this far above the middle of the two's eyes, in meters, and its field of view in radians (a medium close-up of the one who speaks, a short lens's 34 degrees).