Log inGet started
Package

wreck.module

Newest version

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 to armouredHead.
  • 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 from DISPLAYS (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 } and wrecked { reason, integrity }.