Treasure Trove: Coins, Hearts and Power-Up Pickups Kit
README.md
logic
The kit's rules as pure functions, with no entities and no networking, so every peer agrees and the rules can be tested on their own:
- Claims:
keyOfPeer,keyOfEntity,resolveEffect,rollMystery,canClaim,applyClaim, andsettle(who wins when several claim at once). - Records:
addCount,addLetter,spelled,missing. - Motion:
blinkVisible,bobOffset,popScale,magnetStep,magnetSpeed,burstVelocity,stepCoin(the coin physics). - Time:
powerupLeft,extendPowerup,formatTime.
The api and components call these; your own code can too.