spaceship/tests/_cargo_readout_preview.gd

16 lines
489 B
GDScript3
Raw Normal View History

extends Node2D
# Preview, not a test. Both banked resources and both fleet-held resources
# are populated so the complete two-column HUD can be inspected.
#
# 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.gas = 46
GameState.fleet_cargo = 34
GameState.fleet_gas_cargo = 17
add_child(load("res://Main.tscn").instantiate())