wreck.module
README.md
game.run.wreck
Tumblestep's part durability and break-off, on breakawayKit. The run director calls attach(handle, character, hooks) right after it spawns the tumbler (hooks: credit scores a snap, onWreck ends a wrecked run), detach() before it despawns it, and settle(bonks) at the end of a run to turn what is left (integrity 0..1, snaps) into the results bonus: "Not a scratch!", "Battered but rolling" or "Total wreck!".
- Each character has its own toughness profile (
PROFILES); the Hard Hat upgrade switches any of them toarmouredHead. - The Build upgrades become breakawayKit modifiers (
modifiers()): Reinforced Seams and Glass Bones scale durability, Padded Joints the soft-bump threshold, Break Bounty the points per snap; Big Snaps grows the payout with every part already gone. - The durability HUD is breakawayKit's:
applyDisplay(kind)with a kind fromDISPLAYS(paper doll, bars, chips, rings, line, pixel hearts); the game's look picks its style (storybook = cartoon, neonArcade = sciFi, pixelRetro = pixel, parchmentFantasy = fantasy). - Bus events:
snap { part, class, style, point, integrity, n }andwrecked { reason, integrity }.