15 lines
528 B
GDScript3
15 lines
528 B
GDScript3
|
|
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())
|