Code cleanup and minor fixes to Level 3
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
extends Label
|
||||
|
||||
signal timer_end
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
var time_seconds: int = int($Timer.get_time_left())
|
||||
set_text('%02d:%02d' % [time_seconds, int(($Timer.get_time_left() - time_seconds) * 100)])
|
||||
|
||||
|
||||
if $Timer.get_time_left() == 0:
|
||||
get_tree().change_scene('res://Levels/Hub World.tscn')
|
||||
return
|
||||
|
Reference in New Issue
Block a user