21 lines
870 B
GDScript3
21 lines
870 B
GDScript3
|
|
extends Node2D
|
||
|
|
|
||
|
|
# Preview, not a test - #207's destination marker during the prologue. The
|
||
|
|
# convoy is flying north toward a World Ship 16000 units away that is never
|
||
|
|
# on screen, so this renders the RUN beat, where the player is flying and
|
||
|
|
# the marker is the only thing saying where.
|
||
|
|
#
|
||
|
|
# bash tests/screenshot.sh res://tests/_intro_marker_preview.tscn shots/intro_marker.png 3 720x1280
|
||
|
|
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
GameState.reset_new_game()
|
||
|
|
var main: Node = load("res://world/Main.tscn").instantiate()
|
||
|
|
add_child(main)
|
||
|
|
main.get_node("AsteroidField").set_process(false)
|
||
|
|
main.get_node("EnemySpawner").set_process(false)
|
||
|
|
# BRIEF has already run inside Main's _ready(), which is what spawns the
|
||
|
|
# convoy and names the destination; step on to the beat where the convoy
|
||
|
|
# is actually under way.
|
||
|
|
var director: Node = main.get_node("IntroDirector")
|
||
|
|
director._begin(1)
|