This commit is contained in:
kevadesu 2025-05-12 23:15:30 +02:00
parent fcfbc32636
commit 22c3d58957
2 changed files with 12 additions and 2 deletions

View file

@ -1004,12 +1004,21 @@ label_settings = SubResource("LabelSettings_27422")
[node name="Label_Controls2" type="Label" parent="."]
offset_left = 100.0
offset_top = 300.0
offset_top = 290.0
offset_right = 625.0
offset_bottom = 390.0
offset_bottom = 318.0
text = "time/zeit: "
label_settings = SubResource("LabelSettings_27422")
[node name="Label_Controls3" type="Label" parent="."]
visible = false
offset_left = 100.0
offset_top = 318.0
offset_right = 625.0
offset_bottom = 346.0
text = "coordinates"
label_settings = SubResource("LabelSettings_27422")
[node name="PauseMenu" parent="." instance=ExtResource("3_i8tni")]
visible = false

View file

@ -41,6 +41,7 @@ func _process(delta: float):
player.teleport_to_checkpoint()
elif Input.is_action_just_pressed("proluz_ui_reset"):
get_tree().reload_current_scene()
var player = get_node("Player")
$Label_Controls2.text = get_formatted_time()
func get_formatted_time() -> String: