Code cleanup and minor fixes to Level 3

This commit is contained in:
VoidTwo
2021-12-09 04:08:28 -06:00
parent 9dce1e02cf
commit 2147d38874
27 changed files with 418 additions and 437 deletions

View File

@@ -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

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://GUI/Countdown Timer.gd" type="Script" id=1]
[ext_resource path="res://Fonts/AtariClassic.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://Fonts/AtariClassicSmooth.ttf" type="DynamicFontData" id=2]
[sub_resource type="DynamicFont" id=1]
size = 40
@@ -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_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 1 )
align = 1
script = ExtResource( 1 )
__meta__ = {