This commit is contained in:
Rendo 2025-07-12 07:46:21 +05:00
commit ab5c35fca1
4 changed files with 27 additions and 3 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=33 format=3 uid="uid://c1335fke4thpm"]
[gd_scene load_steps=34 format=3 uid="uid://c1335fke4thpm"]
[ext_resource type="Script" uid="uid://bndu1h5kgcde8" path="res://scripts/level/RuntimeLevelData.cs" id="1_tnxdx"]
[ext_resource type="Texture2D" uid="uid://b0tb2hjum40aw" path="res://assets/sprites/background_summer.png" id="1_vafkg"]
@ -24,6 +24,18 @@
[ext_resource type="Script" uid="uid://812ldoyxd5n5" path="res://scripts/level/LoseCheckbox.cs" id="17_pb02i"]
[ext_resource type="AudioStream" uid="uid://bxshjvvtv3fmp" path="res://assets/audio/music/playlist.tres" id="23_tsy2s"]
[sub_resource type="GDScript" id="GDScript_tsy2s"]
resource_name = "time_label"
script/source = "extends Label
var time : float = 0
func _process(delta: float) -> void:
time += delta
var itime = int(time)
text = \"%02d:%02d:%02d\" % [itime / 3600 ,itime / 60 % 60,itime % 60]
"
[sub_resource type="Animation" id="Animation_r81g1"]
length = 0.001
tracks/0/type = "value"
@ -244,6 +256,18 @@ metadata/_edit_lock_ = true
[node name="PauseMenu" parent="GUI" instance=ExtResource("7_3ghv7")]
visible = false
[node name="TimeLabel" type="Label" parent="GUI"]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -40.0
offset_top = -17.0
grow_horizontal = 0
grow_vertical = 0
script = SubResource("GDScript_tsy2s")
[node name="GameOverScreen" type="CanvasLayer" parent="."]
process_mode = 3
layer = 11