32 lines
1 KiB
GDScript3
32 lines
1 KiB
GDScript3
|
|
extends Node2D
|
||
|
|
|
||
|
|
# Preview, not a test - the research lab planet's own art, so the NeonPiece
|
||
|
|
# rebuild can be compared against what it replaced.
|
||
|
|
#
|
||
|
|
# bash tests/screenshot.sh res://tests/_lab_planet_visual_preview.tscn shots/lab_planet.png 20 720x720
|
||
|
|
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
# Both planet visuals that were rebuilt out of NeonPiece children, side by
|
||
|
|
# side, wound forward so their moving parts are off their rest positions -
|
||
|
|
# the dish turned, the lights mid-blink, the disc rings spun apart.
|
||
|
|
var lab: Node2D = load("res://planets/ResearchLabPlanetVisual.gd").new()
|
||
|
|
lab.position = Vector2(200.0, 360.0)
|
||
|
|
add_child(lab)
|
||
|
|
lab.configure(1)
|
||
|
|
lab.phase = 1.1
|
||
|
|
lab._process(0.0)
|
||
|
|
|
||
|
|
var hole: Node2D = load("res://planets/BlackHoleVisual.gd").new()
|
||
|
|
hole.position = Vector2(540.0, 360.0)
|
||
|
|
add_child(hole)
|
||
|
|
hole.configure(1)
|
||
|
|
hole.disc_phase = 6.0
|
||
|
|
hole._process(0.0)
|
||
|
|
|
||
|
|
var gas: Node2D = load("res://planets/GasGiantVisual.gd").new()
|
||
|
|
gas.position = Vector2(360.0, 620.0)
|
||
|
|
add_child(gas)
|
||
|
|
gas.configure(1)
|
||
|
|
gas.gas_phase = 2.0
|
||
|
|
gas._process(0.0)
|