From d169161c9bc038fe47103e88d4a280fc88fcd027 Mon Sep 17 00:00:00 2001 From: BardicSoulkeeper <164677640+BardicSoulkeeper@users.noreply.github.com> Date: Wed, 30 Jul 2025 13:49:07 -0600 Subject: [PATCH] ConnectedEndScreenOnDeath Now when the player dies, it shows the end screen where they can return to the title screen or level 1. --- scenes/hero.gd | 2 +- scenes/weapons/projectile.tscn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenes/hero.gd b/scenes/hero.gd index 37913cd..f143194 100644 --- a/scenes/hero.gd +++ b/scenes/hero.gd @@ -60,7 +60,7 @@ func _on_collectable_collected(type: String): Globals.player_armor = Globals.player_max_armor func die(): - get_tree().change_scene_to_file("res://scenes/utility/title.tscn") + get_tree().change_scene_to_file("res://scenes/utility/end_screen.tscn") func hit(damage: int): if Globals.player_health<=damage: diff --git a/scenes/weapons/projectile.tscn b/scenes/weapons/projectile.tscn index 3c3ff55..47224ff 100644 --- a/scenes/weapons/projectile.tscn +++ b/scenes/weapons/projectile.tscn @@ -5,7 +5,7 @@ [node name="Projectile" type="Area2D"] z_index = 10 collision_layer = 8 -collision_mask = 7 +collision_mask = 6 script = ExtResource("1_q3m7n") [node name="CollisionShape" type="CollisionShape2D" parent="."]