Skip to content

Commit

Permalink
Change the way the mobs are cleared from screen
Browse files Browse the repository at this point in the history
  • Loading branch information
fsantos98 authored Feb 9, 2025
1 parent 0d46333 commit 7fef9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2d/dodge_the_creeps/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extends Node
var score

func game_over():
get_tree().call_group(&"mobs", &"queue_free")
$ScoreTimer.stop()
$MobTimer.stop()
$HUD.show_game_over()
Expand All @@ -12,7 +13,6 @@ func game_over():


func new_game():
get_tree().call_group(&"mobs", &"queue_free")
score = 0
$Player.start($StartPosition.position)
$StartTimer.start()
Expand Down

0 comments on commit 7fef9cb

Please sign in to comment.