coins.module
README.md
coins
The coin-counter looks of platformer3dKit: six styles (cartoon, gem, pixel, minimal, scifi, fantasy) that show the level's coins as "12 / 30". The kit's HUD calls Coins.render(id, { count, total, bump, t }, opts) every frame and places the node itself; bump is seconds since the last coin (99 when none) and drives the pickup pop, and count == total switches each style to its celebratory state.
M.STYLES:{ id, name, theme, tags, description }per style;themenames the~.uipalette.M.byId(id),M.sample(t)(counts up to 30/30 and celebrates, looping every 28 s).M.render(id, data, { scale?, narrow? }): pure function of the data.