Add gas bomber skill-shot vessel

This commit is contained in:
Loïc Wisniewski 2026-08-15 04:45:15 +02:00
commit 1d9afcbc2e
28 changed files with 882 additions and 85 deletions

View file

@ -26,6 +26,16 @@ static func draw_glowing_line(item: CanvasItem, from: Vector2, to: Vector2, glow
_draw_layers(item, PackedVector2Array([from, to]), glow_color, pulse, width_scale, core_color)
static func draw_glowing_circle(item: CanvasItem, center: Vector2, radius: float,
glow_color: Color, pulse: float = 1.0,
core_color: Color = DEFAULT_CORE) -> void:
var points := PackedVector2Array()
for i in range(24):
var angle := TAU * float(i) / 24.0
points.append(center + Vector2(cos(angle), sin(angle)) * radius)
draw_glowing_polygon(item, points, glow_color, pulse, core_color)
# An open run of points - unlike draw_glowing_polygon, the ends are NOT
# joined. For arcs, cradle ribs and other shapes that are deliberately open.
static func draw_glowing_path(item: CanvasItem, points: PackedVector2Array, glow_color: Color, pulse: float = 1.0, width_scale: float = 1.0, core_color: Color = DEFAULT_CORE) -> void: