Treasure Trove: Coins, Hearts and Power-Up Pickups Kit
README.md
pickupskit tests
Checks every public call of pickupsKit, on temporary entities far from the scene, driven frame by frame, with a ledger of its own for every test:
- catalog: the 47 looks, their styles, kinds, effects, sizes, parts and sounds;
pixelGemand its old id; the kit versions it needs; that the version matchespackage.yaml. - logic: every function, including
settle, where simultaneous claims give one winner. - api:
- looks, identity, collectors, the ledger, letters and power-ups;
- spawn validation, touch collect, a same-frame race between two collectors (one winner, counted once), per-player copies and respawns;
- respawn and removal, lifetime with blink and expire, live look switching;
- every effect, magnet pull, bursts that only arm after settling, chests, listeners and setup.
- sounds, meshes, visual and fonts: every recipe, mesh and look builds, places, hides and is destroyed, and each look's built size matches its size tag.
- two players: 20 coins and a heart run through by two players, with claims arriving early, late and twice; a collect heard from the network plays its pop on the next frame.
- readme: the version heading, the kit versions, a row with style, kind, effect and size for every look, the quick start (short, compiles, real look ids) and the Known limits.
It leaves alone real two-peer networking (send and receive between peers), which was play-tested in the showcase world, and healthKit's own rules, which healthKit's suite covers. Run it with tests.run("pickupskit").