level now should end correctly every time
This commit is contained in:
parent
61b55ba30c
commit
394b07db60
7 changed files with 53 additions and 25 deletions
|
|
@ -91,18 +91,18 @@ texture = ExtResource("4_6k60q")
|
|||
[node name="LockedTexture" type="TextureRect" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 28.0
|
||||
offset_top = 38.0
|
||||
offset_right = -28.0
|
||||
offset_bottom = -38.0
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.341463
|
||||
anchor_top = 0.339286
|
||||
anchor_right = 0.658537
|
||||
anchor_bottom = 0.660714
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("5_tvxj3")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="CostVeil" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=55 format=3 uid="uid://dd3yegl1xo44m"]
|
||||
[gd_scene load_steps=57 format=3 uid="uid://dd3yegl1xo44m"]
|
||||
|
||||
[ext_resource type="AudioStream" uid="uid://b6xb6mjdecg6a" path="res://assets/audio/sfx/level/readysetplant.mp3" id="1_4gg2g"]
|
||||
[ext_resource type="Script" uid="uid://bndu1h5kgcde8" path="res://scripts/level/RuntimeLevelData.cs" id="1_31ltw"]
|
||||
|
|
@ -37,7 +37,6 @@
|
|||
[ext_resource type="AudioStream" uid="uid://cfybn7wn04frs" path="res://assets/audio/music/Grasswalk_Standard.mp3" id="34_tqd4v"]
|
||||
[ext_resource type="AudioStream" uid="uid://get7nh1goi1c" path="res://assets/audio/music/Grasswalk_cool.mp3" id="35_4gg2g"]
|
||||
[ext_resource type="Script" uid="uid://bnj5tlcpmep2o" path="res://scripts/MusicTransitioner.cs" id="36_wwgye"]
|
||||
[ext_resource type="AudioStream" uid="uid://b0tyhgrhofdes" path="res://assets/audio/music/Grasswalk_filler.mp3" id="37_wwgye"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_vbgdr"]
|
||||
resource_name = "CYS_Sequence"
|
||||
|
|
@ -553,26 +552,30 @@ distance = 135.0
|
|||
normal = Vector2(1, 0)
|
||||
distance = 139.0
|
||||
|
||||
[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_wwgye"]
|
||||
stream_count = 1
|
||||
stream_0 = ExtResource("34_tqd4v")
|
||||
|
||||
[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_4tlhg"]
|
||||
stream_count = 1
|
||||
stream_0 = ExtResource("35_4gg2g")
|
||||
|
||||
[sub_resource type="AudioStreamInteractive" id="AudioStreamInteractive_4tlhg"]
|
||||
clip_count = 3
|
||||
clip_0/name = &"Grasswalk Standard"
|
||||
clip_0/stream = ExtResource("34_tqd4v")
|
||||
clip_count = 2
|
||||
clip_0/name = &"Standard"
|
||||
clip_0/stream = SubResource("AudioStreamPlaylist_wwgye")
|
||||
clip_0/auto_advance = 0
|
||||
clip_1/name = &"Filler"
|
||||
clip_1/stream = ExtResource("37_wwgye")
|
||||
clip_1/auto_advance = 1
|
||||
clip_1/next_clip = 2
|
||||
clip_2/name = &"Grasswalk Cool"
|
||||
clip_2/stream = ExtResource("35_4gg2g")
|
||||
clip_2/auto_advance = 0
|
||||
clip_1/name = &"Cool"
|
||||
clip_1/stream = SubResource("AudioStreamPlaylist_4tlhg")
|
||||
clip_1/auto_advance = 0
|
||||
_transitions = {
|
||||
Vector2i(0, 1): {
|
||||
"fade_beats": 5.0,
|
||||
"fade_mode": 3,
|
||||
"from_time": 0,
|
||||
"to_time": 1
|
||||
"to_time": 0
|
||||
},
|
||||
Vector2i(2, 0): {
|
||||
Vector2i(1, 0): {
|
||||
"fade_beats": 5.0,
|
||||
"fade_mode": 4,
|
||||
"from_time": 0,
|
||||
|
|
@ -580,6 +583,15 @@ Vector2i(2, 0): {
|
|||
}
|
||||
}
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_4gg2g"]
|
||||
script/source = "extends Label
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
print(str($\"../LevelRunner\".waveHealth))
|
||||
"
|
||||
|
||||
[node name="StandardLevel" type="Node2D"]
|
||||
|
||||
[node name="MainAnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
|
|
@ -892,6 +904,13 @@ ignore_time_scale = true
|
|||
|
||||
[node name="ReadySetPlantPlayer" type="AudioStreamPlayer" parent="."]
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 308.0
|
||||
offset_top = 378.0
|
||||
offset_right = 348.0
|
||||
offset_bottom = 395.0
|
||||
script = SubResource("GDScript_4gg2g")
|
||||
|
||||
[connection signal="OnLevelStateChanged" from="Data" to="SunSpawner/Timer" method="OnLevelStateChanged"]
|
||||
[connection signal="OnLevelStateChanged" from="Data" to="ZombieLevelPrevewer" method="OnLevelStateChanged"]
|
||||
[connection signal="OnLevelStateChanged" from="Data" to="InitialSpawner" method="OnLevelStateChanged"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue