forked from team-sg/hero-mark-2
Nothing personnel, milliseconds...
This commit is contained in:
parent
b8d9a9e935
commit
314b365f7f
6 changed files with 23 additions and 10 deletions
|
@ -85,12 +85,12 @@ func change_current_level(amount):
|
|||
# set any% scores
|
||||
high_score_any.text = "Any%%\n%05d\n%s" % [
|
||||
save_data.score_any,
|
||||
Game.timeify(save_data.time_any)
|
||||
Game.format_time(save_data.time_any)
|
||||
]
|
||||
# set 100% scores
|
||||
high_score_100.text = "100%%\n%05d\n%s" % [
|
||||
save_data.score_100,
|
||||
Game.timeify(save_data.time_100)
|
||||
Game.format_time(save_data.time_100)
|
||||
]
|
||||
# set collected shards
|
||||
for i in 8:
|
||||
|
|
|
@ -20,9 +20,11 @@ func _ready():
|
|||
Fade.connect("fade_finished", Game, "set", ["can_pause", true], CONNECT_ONESHOT)
|
||||
Audio.play_music(music)
|
||||
Game.time = 0.0
|
||||
Game.still_playing = true
|
||||
|
||||
func _physics_process(delta):
|
||||
Game.time += delta
|
||||
if Game.still_playing:
|
||||
Game.time += delta
|
||||
if Debug.entry == false && Game.can_pause:
|
||||
#Pause
|
||||
if Input.is_action_just_pressed("pause") && !get_tree().paused:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue