Deliver one JavaScript module whose default export is a function tumbleweedRules(field, a, b). In a 2D top-down western survivor game a tumbleweed now and then rolls across the player's screen from the left edge to the right edge, at a steady speed in screen pixels (it crosses the screen whatever the player does), and once it has rolled off the right edge it is gone for good. The player can ride into it: then it bursts and the canteen hidden inside heals the player. This module holds those rules.
| field | value | meaning |
|---|---|---|
"firstS" |
60 | seconds of run time before the first tumbleweed |
"minGapS" |
40 | fewest seconds from one tumbleweed to the next |