diff options
Diffstat (limited to 'Stages/Paths/Spawn.gd')
-rw-r--r-- | Stages/Paths/Spawn.gd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Stages/Paths/Spawn.gd b/Stages/Paths/Spawn.gd new file mode 100644 index 0000000..5c62500 --- /dev/null +++ b/Stages/Paths/Spawn.gd @@ -0,0 +1,18 @@ +class_name Spawn +extends Node2D + +@export var next_node: Node2D + +var spawn_position: Vector2 + + +func _ready(): + spawn_position = $SpawnPosition.global_position + + +func get_rpc_properties(): + return { + "global_position": null, + "spawn_position": null, + "next_node": "res://Stages/Paths/PathNode.tscn", + } |