15 lines
538 B
GDScript3
15 lines
538 B
GDScript3
|
|
extends Node2D
|
||
|
|
|
||
|
|
# Preview, not a test - a black hole's landed "void" surface: no craters, no
|
||
|
|
# resource pickups, nothing but the empty field itself.
|
||
|
|
#
|
||
|
|
# bash tests/screenshot.sh res://tests/_void_surface_preview.tscn /tmp/void.png 15 720x1280
|
||
|
|
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
GameState.planet_name = "Event Zero"
|
||
|
|
GameState.planet_definition_id = "black_hole"
|
||
|
|
GameState.surviving_ship_count = 3
|
||
|
|
var surface: Node = load("res://PlanetSurface.tscn").instantiate()
|
||
|
|
surface.get_node("SurfaceController").fade_duration = 0.0
|
||
|
|
add_child(surface)
|