Skip to content

Commit 137b97a

Browse files
fix: played time
1 parent 9443151 commit 137b97a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/scenario.gd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ func _on_Scenario_animation_finished(anim_name: StringName):
4747

4848
var outro_ui = $"../UI/Outro"
4949
var scores = outro_ui.get_node("CenterContainer/VBoxContainer/HBoxContainer/VBoxContainer2")
50-
scores.get_node("PlayingTimeScore").set_text("%fm" % playing_time)
50+
scores.get_node("PlayingTimeScore").set_text(
51+
"%02d:%02d" % [playing_time / 60, fmod(playing_time, 60)]
52+
)
5153
scores.get_node("CollectableFoundedScore").set_text(
5254
"%s / 5" % GameState.collectable_founded
5355
)

0 commit comments

Comments
 (0)