From 85669af4dcd5dfd3fbb1c14323385ce1540b87e7 Mon Sep 17 00:00:00 2001 From: Exobyt Date: Tue, 27 Aug 2024 23:57:29 +0200 Subject: [PATCH] Fixed Speed not resetting --- scenes/Globals/global.gd | 1 + scenes/NewBlocks/part.tscn | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scenes/Globals/global.gd b/scenes/Globals/global.gd index 4e0f121..455a9cc 100644 --- a/scenes/Globals/global.gd +++ b/scenes/Globals/global.gd @@ -52,6 +52,7 @@ func getNewID() -> int: return currentID func resetGame(): + currentSpeed = SPEED.MIN rowRemoved = false blockStopped = false testingPhase = false diff --git a/scenes/NewBlocks/part.tscn b/scenes/NewBlocks/part.tscn index 8c38e46..8928829 100644 --- a/scenes/NewBlocks/part.tscn +++ b/scenes/NewBlocks/part.tscn @@ -63,24 +63,24 @@ texture = ExtResource("4_yg0r6") [node name="RayTop" type="RayCast2D" parent="Raycasts"] position = Vector2(0, -32) -target_position = Vector2(0, -16) +target_position = Vector2(0, 0) collision_mask = 3 hit_from_inside = true [node name="RayRight" type="RayCast2D" parent="Raycasts"] position = Vector2(32, 0) -target_position = Vector2(16, 0) +target_position = Vector2(0, 0) collision_mask = 3 hit_from_inside = true [node name="RayBottom" type="RayCast2D" parent="Raycasts"] position = Vector2(0, 32) -target_position = Vector2(0, 16) +target_position = Vector2(0, 0) collision_mask = 3 hit_from_inside = true [node name="RayLeft" type="RayCast2D" parent="Raycasts"] position = Vector2(-32, 0) -target_position = Vector2(-16, 0) +target_position = Vector2(0, 0) collision_mask = 3 hit_from_inside = true