Package-level declarations
Canvas drawing: marks, the board, heat effects, medals, arcade art, glyph icons and the animated backdrop.
Types
Where everything sits on the board, in pixels, for a square of side side centred in the canvas. Shared by drawing and tap handling so they always agree.
Marks are described as polylines in unit space (centred on 0, roughly ±0.3) so that every style can be "drawn in" the same way: by walking a fraction of the total stroke length.
Properties
Functions
Little animated emblem for an arcade game (home tiles and unlock celebration).
The whole game board, drawn on one Canvas. roundKey resets every animation when a new round starts, so the grid re-draws itself and marks animate in from scratch.
Draws the static board (frame, parchment, track, lanes, rosettes). Cached — it only redraws on resize.
A golden palace at dusk, painted procedurally: sky, dunes, walls with arches, domes, minarets and palms. The scene is cached; only the drifting dust sparkles animate.