change score reporting
This commit is contained in:
parent
57e3151019
commit
100572749a
5 changed files with 16 additions and 17 deletions
|
@ -2,12 +2,16 @@ extends Label
|
|||
class_name Stopwatch
|
||||
|
||||
var time_elapsed: float = 0.0
|
||||
var time_since_wave: float = 0.0
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not get_tree().paused:
|
||||
time_elapsed += delta
|
||||
text = seconds2hhmmss(time_elapsed)
|
||||
|
||||
func wave_finished():
|
||||
time_since_wave = time_elapsed
|
||||
|
||||
func seconds2hhmmss(total_seconds: float) -> String:
|
||||
#total_seconds = 12345
|
||||
var seconds: float = fmod(total_seconds , 60.0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue