fix elapsed timer on new round

This commit is contained in:
interfisch 2024-11-09 11:54:56 +01:00
parent 7889e71581
commit 0b86031505
2 changed files with 4 additions and 0 deletions

View file

@ -33,6 +33,7 @@ var game_ended=false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
Gamestate.resetTimeElapsed()
countdown.start()
countdown_label.visible=true

View file

@ -56,3 +56,6 @@ func addTimeElapsed(delta):
func getTimeElapsed():
return time_elapsed
func resetTimeElapsed():
time_elapsed=0