Supply Tank adds water, fuel and food meters to survival, camping and management games. It is three small, typed and documented classes plus a playable example game, written in plain GDScript with no plugin to enable.
What is included
- SupplyTank (Node) is a finite supply with a capacity, an amount and a unit. It emits
amount_changed,ran_low,depleted,refilledandconsume_failed. Draw from it all-or-nothing withconsume()or as much as is left withtake(), top it up withadd()orrefill(), or let it drain continuously withdrain_per_second. Save and load it withto_dict()andfrom_dict(). - SupplyBar (ProgressBar) follows a tank through
tank_pathand keeps its range, value, label and fill color in sync. The label format accepts{name},{amount},{capacity},{unit}and{percent}, and the bar switches to a warning color when the tank runs low. - SupplyPlan (static helpers) estimates how much water a trip needs, split into drinking, cooking, dishes and hand washing, with a safety margin, unit conversions and tank-fill counts. Every rule of thumb can be overridden with your own values.
Example game: Three Bins
The addon ships with a one-minute arcade game in addons/supply_tank/examples/three_bins/. You wash camp dishes in the right order (scrape, wash, rinse, sanitize) before the time or the water runs out. A falling camp-kitchen crate gives you a faucet that makes rinsing cheaper. The game uses a SupplyTank as its water budget and a SupplyBar as its HUD, so it doubles as a usage reference.
Usage
@onready var water: SupplyTank = $Water
func wash_dishes() -> void:
if not water.consume(4.0): # refused: not enough left, nothing changes
$Hint.text = "Not enough water to wash up"
The planning defaults are common car-camping rules of thumb, not measurements: 3 L of drinking water per person per day (x1.5 in hot weather), 0.5 L per person per hot meal for cooking, 4 L per hot meal for dishes, 0.5 L per person per day for hand washing, plus a 20% margin. They come from the camp kitchen planning guides at Camp Kitchen US.
Quality
Requires Godot 4.4 or later and was tested on Godot 4.4.1 and 4.7.2. A headless test suite with 47 checks covers the tank, the bar, the planner and the example game; it is included in the source repository. The screenshots are rendered from the real example game.
This addon was made with AI assistance (code and documentation) and then tested as described above. MIT licensed; the license file is included in addons/supply_tank/.
Changelog for version 1.0.0
2026-11-16 21:00:54
No changelog provided for this version.