Fixed Speed not resetting
This commit is contained in:
parent
9f6750b08a
commit
85669af4dc
2 changed files with 5 additions and 4 deletions
|
|
@ -52,6 +52,7 @@ func getNewID() -> int:
|
||||||
return currentID
|
return currentID
|
||||||
|
|
||||||
func resetGame():
|
func resetGame():
|
||||||
|
currentSpeed = SPEED.MIN
|
||||||
rowRemoved = false
|
rowRemoved = false
|
||||||
blockStopped = false
|
blockStopped = false
|
||||||
testingPhase = false
|
testingPhase = false
|
||||||
|
|
|
||||||
|
|
@ -63,24 +63,24 @@ texture = ExtResource("4_yg0r6")
|
||||||
|
|
||||||
[node name="RayTop" type="RayCast2D" parent="Raycasts"]
|
[node name="RayTop" type="RayCast2D" parent="Raycasts"]
|
||||||
position = Vector2(0, -32)
|
position = Vector2(0, -32)
|
||||||
target_position = Vector2(0, -16)
|
target_position = Vector2(0, 0)
|
||||||
collision_mask = 3
|
collision_mask = 3
|
||||||
hit_from_inside = true
|
hit_from_inside = true
|
||||||
|
|
||||||
[node name="RayRight" type="RayCast2D" parent="Raycasts"]
|
[node name="RayRight" type="RayCast2D" parent="Raycasts"]
|
||||||
position = Vector2(32, 0)
|
position = Vector2(32, 0)
|
||||||
target_position = Vector2(16, 0)
|
target_position = Vector2(0, 0)
|
||||||
collision_mask = 3
|
collision_mask = 3
|
||||||
hit_from_inside = true
|
hit_from_inside = true
|
||||||
|
|
||||||
[node name="RayBottom" type="RayCast2D" parent="Raycasts"]
|
[node name="RayBottom" type="RayCast2D" parent="Raycasts"]
|
||||||
position = Vector2(0, 32)
|
position = Vector2(0, 32)
|
||||||
target_position = Vector2(0, 16)
|
target_position = Vector2(0, 0)
|
||||||
collision_mask = 3
|
collision_mask = 3
|
||||||
hit_from_inside = true
|
hit_from_inside = true
|
||||||
|
|
||||||
[node name="RayLeft" type="RayCast2D" parent="Raycasts"]
|
[node name="RayLeft" type="RayCast2D" parent="Raycasts"]
|
||||||
position = Vector2(-32, 0)
|
position = Vector2(-32, 0)
|
||||||
target_position = Vector2(-16, 0)
|
target_position = Vector2(0, 0)
|
||||||
collision_mask = 3
|
collision_mask = 3
|
||||||
hit_from_inside = true
|
hit_from_inside = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue