spaceship/VesselDelivery.gd

18 lines
533 B
GDScript3
Raw Normal View History

2026-08-13 21:39:05 +02:00
extends Node2D
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.
var vessel_type: String = "interceptor"
2026-08-13 21:39:05 +02:00
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)