4.6, new attack, enemy spawning, shaders, bunch of stuff

This commit is contained in:
Daniel Kauss Serna 2026-02-17 01:24:05 +01:00
parent e08e3ebb13
commit 19517a3176
84 changed files with 13348 additions and 91399 deletions

20
scripts/trail.gd Normal file
View file

@ -0,0 +1,20 @@
@tool
class_name Trail extends Line2D
@export var max_points = 10
var trail_points : PackedVector2Array = []
func _ready():
points = []
func _physics_process(_delta):
trail_points.append(global_position)
if trail_points.size() > max_points:
trail_points.remove_at(0)
var local_points : PackedVector2Array = []
for p in trail_points:
local_points.append(to_local(p))
points = local_points