2026-08-13 21:39:05 +02:00
|
|
|
extends Node2D
|
|
|
|
|
|
2026-08-14 22:12:57 +02:00
|
|
|
const VESSEL_DEFINITIONS = preload("res://VesselDefinitions.gd")
|
|
|
|
|
|
2026-08-13 21:39:05 +02:00
|
|
|
# Visual-only craft-to-mothership flight. GameState owns position/progress;
|
|
|
|
|
# this node just renders a finished hull headed toward the hangar.
|
2026-08-14 22:12:57 +02:00
|
|
|
var vessel_type: String = "interceptor"
|
2026-08-13 21:39:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
|
z_index = -1
|
|
|
|
|
queue_redraw()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _draw() -> void:
|
2026-08-14 22:12:57 +02:00
|
|
|
var definition: Resource = VESSEL_DEFINITIONS.get_definition(vessel_type)
|
|
|
|
|
if definition != null:
|
|
|
|
|
NeonDraw.draw_glowing_polygon(self, definition.hull_points, definition.glow_color, 1.0)
|