summaryrefslogtreecommitdiff
path: root/Stages/Paths
diff options
context:
space:
mode:
Diffstat (limited to 'Stages/Paths')
-rw-r--r--Stages/Paths/Goal.gd7
-rw-r--r--Stages/Paths/Goal.tscn28
-rw-r--r--Stages/Paths/PathNode.gd18
-rw-r--r--Stages/Paths/PathNode.tscn27
-rw-r--r--Stages/Paths/Spawn.gd18
-rw-r--r--Stages/Paths/Spawn.tscn18
6 files changed, 116 insertions, 0 deletions
diff --git a/Stages/Paths/Goal.gd b/Stages/Paths/Goal.gd
new file mode 100644
index 0000000..534ef3c
--- /dev/null
+++ b/Stages/Paths/Goal.gd
@@ -0,0 +1,7 @@
+class_name Goal
+extends Node2D
+
+
+var path_position: Vector2:
+ get():
+ return $PathPosition.global_position
diff --git a/Stages/Paths/Goal.tscn b/Stages/Paths/Goal.tscn
new file mode 100644
index 0000000..6e194fd
--- /dev/null
+++ b/Stages/Paths/Goal.tscn
@@ -0,0 +1,28 @@
+[gd_scene load_steps=4 format=3 uid="uid://2lt8m7df0e2u"]
+
+[ext_resource type="Script" path="res://Stages/Paths/Goal.gd" id="1_04oso"]
+[ext_resource type="Texture2D" uid="uid://b1b18rd0tqbar" path="res://core_outdoor.png" id="2_0qdti"]
+
+[sub_resource type="CircleShape2D" id="CircleShape2D_m11hr"]
+radius = 4.0
+
+[node name="Goal" type="Node2D"]
+script = ExtResource("1_04oso")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+texture_filter = 1
+scale = Vector2(0.25, 0.333333)
+texture = ExtResource("2_0qdti")
+centered = false
+region_enabled = true
+region_rect = Rect2(192, 816, 64, 48)
+
+[node name="Area2D" type="Area2D" parent="." groups=["goal"]]
+collision_layer = 2
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
+position = Vector2(8, 8)
+shape = SubResource("CircleShape2D_m11hr")
+
+[node name="PathPosition" type="Node2D" parent="."]
+position = Vector2(8, 8)
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,
+ }
diff --git a/Stages/Paths/PathNode.tscn b/Stages/Paths/PathNode.tscn
new file mode 100644
index 0000000..41e46c1
--- /dev/null
+++ b/Stages/Paths/PathNode.tscn
@@ -0,0 +1,27 @@
+[gd_scene load_steps=4 format=3 uid="uid://d0ukgoppkh1fn"]
+
+[ext_resource type="Script" path="res://Stages/Paths/PathNode.gd" id="1_ge3jf"]
+[ext_resource type="Texture2D" uid="uid://b1b18rd0tqbar" path="res://core_outdoor.png" id="2_wcpbq"]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_7mk1q"]
+size = Vector2(4, 4)
+
+[node name="PathNode" type="Node2D"]
+script = ExtResource("1_ge3jf")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+texture_filter = 1
+texture = ExtResource("2_wcpbq")
+centered = false
+region_enabled = true
+region_rect = Rect2(384, 496, 16, 16)
+
+[node name="Area2D" type="Area2D" parent="." groups=["path"]]
+collision_layer = 2
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
+position = Vector2(8, 8)
+shape = SubResource("RectangleShape2D_7mk1q")
+
+[node name="PathPosition" type="Node2D" parent="."]
+position = Vector2(8, 8)
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",
+ }
diff --git a/Stages/Paths/Spawn.tscn b/Stages/Paths/Spawn.tscn
new file mode 100644
index 0000000..5c04de1
--- /dev/null
+++ b/Stages/Paths/Spawn.tscn
@@ -0,0 +1,18 @@
+[gd_scene load_steps=3 format=3 uid="uid://of5ggu6lifwy"]
+
+[ext_resource type="Script" path="res://Stages/Paths/Spawn.gd" id="1_ge8q7"]
+[ext_resource type="Texture2D" uid="uid://b1b18rd0tqbar" path="res://core_outdoor.png" id="2_y5h4t"]
+
+[node name="Spawn" type="Node2D"]
+script = ExtResource("1_ge8q7")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+texture_filter = 1
+scale = Vector2(0.5, 0.5)
+texture = ExtResource("2_y5h4t")
+centered = false
+region_enabled = true
+region_rect = Rect2(216, 488, 32, 32)
+
+[node name="SpawnPosition" type="Node2D" parent="."]
+position = Vector2(8, 8)