Chest + Door Functionality

This commit is contained in:
tiffanyfrias10
2021-12-06 16:08:29 -06:00
parent 51365d9f74
commit f774ea1741
19 changed files with 391 additions and 30 deletions

View File

@@ -1,7 +1,10 @@
extends Label
signal timer_end
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

View File

@@ -14,8 +14,8 @@ margin_right = 335.0
margin_bottom = 41.0
rect_min_size = Vector2( 200, 0 )
rect_scale = Vector2( 0.25, 0.25 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
align = 1
script = ExtResource( 1 )
__meta__ = {