massive work towards godot 4

This commit is contained in:
2023-02-01 04:43:50 -05:00
parent 42259a89ed
commit 5dac6ced93
484 changed files with 5935 additions and 5084 deletions

17
nodes/equipment/Line2D.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Line2D
var target
var point
@export var targetPath: NodePath
@export var trailLength = 0
func _ready():
target = get_node(targetPath)
func _process(_delta: float) -> void:
global_position = Vector2(0,0)
global_rotation = 0
point = target.global_position
add_point(point)
while get_point_count() > trailLength:
remove_point(0)