level resetting works

This commit is contained in:
Clevertop 2024-08-11 10:43:02 +10:00
parent a1f4eaa2c6
commit d2dfb65d59
4 changed files with 40 additions and 59 deletions

View file

@ -108,15 +108,16 @@ material = SubResource("StandardMaterial3D_itc1d")
[sub_resource type="BoxShape3D" id="BoxShape3D_y4l56"]
[node name="ChronoManager" type="Node3D" node_paths=PackedStringArray("gui", "pedestals", "chime_player", "world_env", "player")]
[node name="ChronoManager" type="Node3D" node_paths=PackedStringArray("gui", "pedstalContainer", "chime_player", "world_env", "player", "player_spawn")]
script = ExtResource("1_5b2rd")
pedestal_off_mat = ExtResource("2_0aj3l")
pedestal_on_mat = ExtResource("3_mnhg8")
gui = NodePath("Gui")
pedestals = [NodePath("Pedestals/CommandPedestal"), NodePath("Pedestals/CommandPedestal2"), NodePath("Pedestals/CommandPedestal3"), NodePath("Pedestals/CommandPedestal4"), NodePath("Pedestals/CommandPedestal5"), NodePath("Pedestals/CommandPedestal6"), NodePath("Pedestals/CommandPedestal7"), NodePath("Pedestals/CommandPedestal8"), NodePath("Pedestals/CommandPedestal9"), NodePath("Pedestals/CommandPedestal10")]
pedstalContainer = NodePath("Pedestals")
chime_player = NodePath("AudioStreamPlayer")
world_env = NodePath("WorldEnvironment")
player = NodePath("Player")
player_spawn = NodePath("PlayerStartPos")
[node name="Player" parent="." instance=ExtResource("2_hsi55")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.12895, 0)
@ -193,5 +194,8 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.5, 1, 1.5)
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("12_bm4h4")
[node name="PlayerStartPos" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
[connection signal="broadcast" from="." to="Player" method="_on_chrono_manager_broadcast"]
[connection signal="object_clicked" from="Player" to="." method="_on_player_object_clicked"]