Log inGet started
World

Tool Time: Hold a Tool and Work the Tile in Front Kit

Branchmain
Branchesmain
Commitc37d931243

README.md

toolUseKit test suite

Checks the parts of toolUseKit a game relies on, without entering play:

  • Area per tier: every one of the seven kinds (hoe, watering can, seed pouch, axe, pickaxe, scythe, hammer) hits the documented number of cells at each tier's full charge, a tap hits the first pattern, and patterns turn with the facing.
  • Energy: a use costs the tier's cost times the charge factor, a miss refunds it, too little energy refuses the use as tired.
  • The seed pouch and hammer: data, icon, costs, swing, particles and sound; models in every style and tier; all 175 variants (7 x 5 x 5) build; the seed pouch's ctx exposes the cells.
  • Controls: no binding uses KeyE, Q and F switch tools and the keys inventoryKit and friendshipKit own stay free, Digit keys live only in the numberKeys map that numberKeys = true turns on, no gamepad binding sits on the d-pad or the west face button, bumpers switch and the right trigger uses.
  • HUD: the layout (a pure function of screen size and safe area) keeps the strip, the meter and 44 point slots inside the safe area at 693x390 landscape and 390x844 portrait in every hudPosition, clear of the touch buttons, with the meter attached to the strip.

It leaves multiplayer sync, saving and the look of the models to playing the gallery scene.

Run it alone with asset.resolve("toolUseKit", "testSuite"):run() or tools.use("tests", "run", { suite = "toolUseKit" }) (shell: zero tests run --suite toolUseKit).