summaryrefslogtreecommitdiff
path: root/Stages/Paths/PathNode.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-09-08 22:35:06 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-09-08 22:35:06 +0200
commit4597189f157834c80f56b12b701fd2b2a15c2798 (patch)
treef522e9a58ec756dc27306781da99e828b195c549 /Stages/Paths/PathNode.gd
parent7d7d845e76f78a87cf87c9464d700e52cd88ce6f (diff)
next commit
Diffstat (limited to 'Stages/Paths/PathNode.gd')
-rw-r--r--Stages/Paths/PathNode.gd18
1 files changed, 18 insertions, 0 deletions
diff --git a/Stages/Paths/PathNode.gd b/Stages/Paths/PathNode.gd
new file mode 100644
index 0000000..6bc7853
--- /dev/null
+++ b/Stages/Paths/PathNode.gd
@@ -0,0 +1,18 @@
+class_name PathNode
+extends Node2D
+
+
+@export var next_node: Node2D
+
+var path_position: Vector2
+
+
+func _ready():
+ path_position = $PathPosition.global_position
+
+
+func get_rpc_properties():
+ return {
+ "global_position": null,
+ "path_position": null,
+ }