Изменена логика доспеха

This commit is contained in:
Евгений Титаренко 2023-08-19 11:51:46 +03:00
parent 429fe9b62f
commit 1fe08a596d
4 changed files with 133 additions and 43 deletions

View file

@ -15,7 +15,7 @@
[ext_resource type="PackedScene" uid="uid://bj1ixwjdpnooo" path="res://prefabs/entities/pressure_plate.tscn" id="12_ynt5e"]
[ext_resource type="PackedScene" uid="uid://dqx43vr727ft8" path="res://prefabs/entities/spikes.tscn" id="13_w1hk1"]
[ext_resource type="Script" path="res://scripts/DeathScreen.cs" id="15_12mhe"]
[ext_resource type="PackedScene" uid="uid://bmyjqerhno5vi" path="res://prefabs/enemies/wretched.tscn" id="16_wjfbi"]
[ext_resource type="PackedScene" uid="uid://bmyjqerhno5vi" path="res://prefabs/enemies/wretched.tscn" id="16_ejflu"]
[sub_resource type="Curve" id="Curve_o5byr"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
@ -27,7 +27,7 @@ light_mode = 2
[sub_resource type="ShaderMaterial" id="ShaderMaterial_m680d"]
shader = ExtResource("5_64d71")
[sub_resource type="ViewportTexture" id="ViewportTexture_pqovb"]
[sub_resource type="ViewportTexture" id="ViewportTexture_1dtfl"]
viewport_path = NodePath("FlashlightViewport")
[sub_resource type="CircleShape2D" id="CircleShape2D_prnh4"]
@ -123,7 +123,7 @@ CameraBounds = Vector2(30, 20)
[node name="PointLight2D" type="PointLight2D" parent="PlayerCamera" node_paths=PackedStringArray("LightViewport")]
blend_mode = 2
range_item_cull_mask = 2
texture = SubResource("ViewportTexture_pqovb")
texture = SubResource("ViewportTexture_1dtfl")
script = ExtResource("6_slohe")
LightViewport = NodePath("../../FlashlightViewport")
@ -196,18 +196,6 @@ position = Vector2(116, -76)
[node name="LivingArmor" parent="." instance=ExtResource("11_x3ep3")]
position = Vector2(-70, -67)
[node name="LivingArmor2" parent="." instance=ExtResource("11_x3ep3")]
position = Vector2(-86, -51)
Facing = 2
[node name="LivingArmor3" parent="." instance=ExtResource("11_x3ep3")]
position = Vector2(-54, -50)
Facing = 0
[node name="LivingArmor4" parent="." instance=ExtResource("11_x3ep3")]
position = Vector2(-70, -36)
Facing = 1
[node name="pressure_plate" parent="." instance=ExtResource("12_ynt5e")]
position = Vector2(31, 51)
@ -228,19 +216,10 @@ Enabled = true
SpikesTimeout = 0.5
StartOffset = 0.5
[node name="Wretched" parent="." instance=ExtResource("16_wjfbi")]
position = Vector2(-84, 12)
[node name="Wretched" parent="." instance=ExtResource("16_ejflu")]
position = Vector2(-120, 42)
[node name="Wretched2" parent="." instance=ExtResource("16_wjfbi")]
position = Vector2(-108, 30)
Facing = 2
[node name="Wretched3" parent="." instance=ExtResource("16_wjfbi")]
position = Vector2(-64, 29)
Facing = 0
[node name="Wretched4" parent="." instance=ExtResource("16_wjfbi")]
position = Vector2(-85, 51)
Facing = 1
[node name="Wretched2" parent="." instance=ExtResource("16_ejflu")]
position = Vector2(-139, -39)
[connection signal="timeout" from="CanvasLayer/DeathScreen/Timer" to="CanvasLayer/DeathScreen" method="Timeout"]