spaceship/VesselDelivery.gd
2026-08-14 22:12:57 +02:00

18 lines
533 B
GDScript

extends Node2D
const VESSEL_DEFINITIONS = preload("res://VesselDefinitions.gd")
# Visual-only craft-to-mothership flight. GameState owns position/progress;
# this node just renders a finished hull headed toward the hangar.
var vessel_type: String = "interceptor"
func _ready() -> void:
z_index = -1
queue_redraw()
func _draw() -> void:
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)