Skip to content

Commit

Permalink
fix: played time
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Dec 1, 2024
1 parent 9443151 commit 137b97a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/scenario.gd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ func _on_Scenario_animation_finished(anim_name: StringName):

var outro_ui = $"../UI/Outro"
var scores = outro_ui.get_node("CenterContainer/VBoxContainer/HBoxContainer/VBoxContainer2")
scores.get_node("PlayingTimeScore").set_text("%fm" % playing_time)
scores.get_node("PlayingTimeScore").set_text(
"%02d:%02d" % [playing_time / 60, fmod(playing_time, 60)]
)
scores.get_node("CollectableFoundedScore").set_text(
"%s / 5" % GameState.collectable_founded
)
Expand Down

0 comments on commit 137b97a

Please sign in to comment.