Forgejo #15, part 2 of #12. Since #14 ore is cargo until the fleet delivers it to the mothership, so the banked readout does not move on pickup - mining looked broken, because gathering ore changed no number on screen until the fleet happened to fly home. Three things separate the carried readout from the banked one, since colour alone is a weak signal on a phone in a game that is mostly teal: amber rather than ore-teal (the same amber already used for ore in transit - the extractor derrick, the hauler route), smaller and sitting under the banked figure so it reads as subordinate, and present only while actually carrying, so an empty hold is not a permanent 0 parked beside the real total. Rendered via tests/screenshot.sh and looked at, not only asserted on: headless draws no pixels and cannot say whether two numbers read as two different things. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
15 lines
528 B
GDScript
15 lines
528 B
GDScript
extends Node2D
|
|
|
|
# Preview, not a test. The resource readouts with the fleet carrying ore, so
|
|
# the #15 banked-vs-carried split can actually be looked at - headless draws
|
|
# no pixels and cannot say whether two numbers read as two different things.
|
|
#
|
|
# bash tests/screenshot.sh res://tests/_cargo_readout_preview.tscn /tmp/hud.png 20 720x1280
|
|
|
|
|
|
func _ready() -> void:
|
|
GameState.buildings.clear()
|
|
GameState.extractors.clear()
|
|
GameState.rocks = 128
|
|
GameState.fleet_cargo = 34
|
|
add_child(load("res://Main.tscn").instantiate())
|