Show what the fleet is carrying separately from banked resources #15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part 2 of #12. Depends on the fleet-cargo ticket.
ResourceCounter.gdcurrently showsGameState.rocksand nothing else. Once ore is carried before it is banked, the player needs to see both numbers and understand that one of them is at risk until it is delivered.Scope
Acceptance
tests/screenshot.sh, not just a headless test - headless draws no pixels).Done in
d1b82f4.A second readout under the banked total, showing what the fleet is carrying. Three things separate it from the banked figure, because colour alone is a weak signal on a phone in a game that is mostly teal:
0parked next to the real total.It reads
GameStatedirectly, for the same reasonResourceCounterdoes - it stays correct across the space <-> planet-surface scene swap without anyone pushing updates into it.Test
tests/test_cargo_readout.gdchecks that the banked readout keeps showing the BANK rather than the total (the obvious wrong implementation is to just add them together), that the cargo readout appears only while carrying, that delivering moves the number from one to the other, and that the two are genuinely distinguishable - different colour AND different position, so "the same number twice" cannot pass.Looked at it
Rendered at the real phone resolution via
tests/_cargo_readout_preview.tscn+tests/screenshot.sh: teal128banked, amber34carried beneath it. Legible as two separate quantities at a glance. Headless draws no pixels, so no headless test could have told me that.Full suite: 42/42.
Next: #16.