Log inGet started
Package

platformer3dKit.package

README.md

timers

The course-timer looks of platformer3dKit: eight styles (digital, stopwatch, dial, splits, line, pixel, hologram, hourglass) behind one interface. The kit's HUD (and any game) calls Timers.render(id, data, opts) every frame with { elapsed, running, finished, par?, best?, splits = { {label, t, delta?} }, t } and places the returned node itself.

  • M.STYLES: { id, name, theme, tags, description } per style; theme names the ~.ui palette it draws with.
  • M.byId(id), M.sample(t) (moving demo data for galleries).
  • M.render(id, data, { scale?, narrow? }): pure function of the data; all motion is computed from data.t / data.elapsed.
  • M.pixelText(text, cell, color, shadow?): the 5x7 bitmap font as one SVG node (also used by coins' pixel style).

The line style draws its bar with barsKit's line look (barsKit.looks), and falls back to its own hairline if barsKit is absent.