extends Node2D # Preview, not a test. Two planets side by side in SPACE - the left one has # an extractor built on it, the right one does not - so the issue #9 derrick # can be compared against a plain planet and judged as actually visible. # # bash tests/screenshot.sh res://tests/_planet_derrick_preview.tscn /tmp/derrick.png 15 1280x720 func _ready() -> void: GameState.extractors.clear() GameState.buildings.clear() GameState.add_extractor("Mined World", Vector2.ZERO) _spawn("Mined World", Vector2(380.0, 380.0), 12345) _spawn("Untouched World", Vector2(900.0, 380.0), 4242) func _spawn(planet_name: String, at: Vector2, shape_seed: int) -> void: var planet: Node2D = load("res://planets/Planet.tscn").instantiate() planet.planet_name = planet_name planet.shape_seed = shape_seed planet.position = at add_child(planet) print("%s: derrick=%s" % [planet_name, planet.shows_extractor])