Compare commits
No commits in common. "4bec0ed5fc3af5ab4d3bb3473a16e7bf854d77e9" and "10535a675d6bc78ac1df43a89013db1755dc67f0" have entirely different histories.
4bec0ed5fc
...
10535a675d
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://snjgu4yp5swd" path="res://objects/player.tscn" id="1_6t4yh"]
|
[ext_resource type="PackedScene" uid="uid://snjgu4yp5swd" path="res://objects/player.tscn" id="1_6t4yh"]
|
||||||
[ext_resource type="Material" uid="uid://b075rlo1f0e4u" path="res://assets/materials/greenish_grid.tres" id="1_ng1ul"]
|
[ext_resource type="Material" uid="uid://b075rlo1f0e4u" path="res://assets/materials/greenish_grid.tres" id="1_ng1ul"]
|
||||||
[ext_resource type="PackedScene" uid="uid://5hg5eirw7v8n" path="res://objects/units/unit_4_wretched.tscn" id="3_7ng1a"]
|
[ext_resource type="PackedScene" uid="uid://5hg5eirw7v8n" path="res://objects/units/unit_5_wretched.tscn" id="3_7ng1a"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bt054d3ic71rf" path="res://menus/pause_menu.tscn" id="4_d7x8f"]
|
[ext_resource type="PackedScene" uid="uid://bt054d3ic71rf" path="res://menus/pause_menu.tscn" id="4_d7x8f"]
|
||||||
|
|
||||||
[sub_resource type="NavigationMesh" id="NavigationMesh_7ng1a"]
|
[sub_resource type="NavigationMesh" id="NavigationMesh_7ng1a"]
|
||||||
|
|
|
@ -5,15 +5,17 @@
|
||||||
[sub_resource type="GDScript" id="GDScript_eqqp1"]
|
[sub_resource type="GDScript" id="GDScript_eqqp1"]
|
||||||
script/source = "extends HealthStatus
|
script/source = "extends HealthStatus
|
||||||
|
|
||||||
|
func _on_health_changed(remaining: int, delta: int) -> void:
|
||||||
|
print(\"Player Health Changed:\", delta, \"remaining:\", remaining)
|
||||||
|
|
||||||
func _on_death() -> void:
|
func _on_death() -> void:
|
||||||
get_tree().change_scene_to_file.call_deferred(\"res://menus/main_menu.tscn\")
|
get_tree().change_scene_to_file.call_deferred(\"res://menus/main_menu.tscn\")
|
||||||
"
|
"
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_bxedw"]
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_bxedw"]
|
||||||
radius = 0.4350586
|
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_eqqp1"]
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_eqqp1"]
|
||||||
radius = 0.2866211
|
radius = 0.3173828
|
||||||
|
|
||||||
[node name="PlayerBody" type="PlayerBody"]
|
[node name="PlayerBody" type="PlayerBody"]
|
||||||
|
|
||||||
|
@ -49,3 +51,4 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||||
shape = SubResource("CapsuleShape3D_eqqp1")
|
shape = SubResource("CapsuleShape3D_eqqp1")
|
||||||
|
|
||||||
[connection signal="death" from="HealthStatus" to="HealthStatus" method="_on_death"]
|
[connection signal="death" from="HealthStatus" to="HealthStatus" method="_on_death"]
|
||||||
|
[connection signal="health_changed" from="HealthStatus" to="HealthStatus" method="_on_health_changed"]
|
||||||
|
|
|
@ -13,5 +13,8 @@ transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0.30
|
||||||
[node name="EnemyWretched6" parent="." instance=ExtResource("1_l77gx")]
|
[node name="EnemyWretched6" parent="." instance=ExtResource("1_l77gx")]
|
||||||
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0.05460906, 0.023195954, -1.4555124)
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0.05460906, 0.023195954, -1.4555124)
|
||||||
|
|
||||||
|
[node name="EnemyWretched7" parent="." instance=ExtResource("1_l77gx")]
|
||||||
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0.054681122, 0.023195954, -0.4100113)
|
||||||
|
|
||||||
[node name="EnemyWretched2" parent="." instance=ExtResource("1_l77gx")]
|
[node name="EnemyWretched2" parent="." instance=ExtResource("1_l77gx")]
|
||||||
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 1.3425274, 0.023196908, -0.9988682)
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 1.3425274, 0.023196908, -0.9988682)
|
Loading…
Reference in a new issue