2026-08-15 00:09:10 +02:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
|
|
# Visual-only phone preview for the combat-fleet hangar. Logistics
|
|
|
|
|
# transporters deliberately have no card here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
|
GameState.buildings.clear()
|
|
|
|
|
GameState.extractors.clear()
|
|
|
|
|
GameState.transporters.clear()
|
|
|
|
|
GameState.stored_vessels = [
|
|
|
|
|
GameState.VESSEL_INTERCEPTOR,
|
|
|
|
|
GameState.VESSEL_SHIELD, GameState.VESSEL_SHIELD,
|
2026-08-15 04:45:15 +02:00
|
|
|
GameState.VESSEL_GAS_BOMBER,
|
2026-08-15 00:09:10 +02:00
|
|
|
]
|
|
|
|
|
var main: Node = load("res://Main.tscn").instantiate()
|
|
|
|
|
add_child(main)
|
2026-08-15 04:45:15 +02:00
|
|
|
main.get_node("BackgroundLayer").visible = false
|
|
|
|
|
main.get_node("AsteroidField").visible = false
|
|
|
|
|
main.get_node("PlanetField").visible = false
|
|
|
|
|
main.get_node("BuildingField").visible = false
|
2026-08-15 00:09:10 +02:00
|
|
|
main.get_node("AsteroidField").set_process(false)
|
|
|
|
|
main.get_node("EnemySpawner").set_process(false)
|
|
|
|
|
main.get_node("Fleet").spawn_ships(3, Vector2.ZERO, PackedStringArray([
|
|
|
|
|
GameState.VESSEL_INTERCEPTOR, GameState.VESSEL_INTERCEPTOR,
|
|
|
|
|
GameState.VESSEL_SHIELD,
|
2026-08-15 04:45:15 +02:00
|
|
|
GameState.VESSEL_GAS_BOMBER,
|
2026-08-15 00:09:10 +02:00
|
|
|
]))
|
|
|
|
|
main.get_node("BuildController")._on_hangar_pressed()
|