Функционал кошмаров

This commit is contained in:
Евгений Титаренко 2024-08-25 14:39:39 +03:00
parent 4222af1896
commit a87871a704
5 changed files with 58 additions and 4 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=23 format=3 uid="uid://c1abgp6quvo3o"]
[gd_scene load_steps=26 format=3 uid="uid://c1abgp6quvo3o"]
[ext_resource type="Texture2D" uid="uid://b5baxx5o21qy1" path="res://resources/sprites/Sub/Sub.png" id="1_a6v5r"]
[ext_resource type="Script" path="res://scripts/Day.cs" id="1_cko08"]
@ -11,6 +11,7 @@
[ext_resource type="PackedScene" uid="uid://dfdsnwub212o6" path="res://prefabs/Player.tscn" id="8_csxln"]
[ext_resource type="AudioStream" uid="uid://be35iuapayv0u" path="res://resources/music/Day1.wav" id="9_43nb0"]
[ext_resource type="SpriteFrames" uid="uid://wu7pmuvjw5qm" path="res://resources/sprites/npcs/Empty.tres" id="10_medl6"]
[ext_resource type="AudioStream" uid="uid://cw6y35jglsn1" path="res://resources/sounds/nightmares/D1nm.wav" id="12_jjnbw"]
[ext_resource type="PackedScene" uid="uid://x6pqolxtgwvy" path="res://prefabs/Interactable.tscn" id="12_p32yk"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h0540"]
@ -256,13 +257,17 @@ stream = SubResource("AudioStreamPlaylist_7838k")
autoplay = true
bus = &"Music"
[node name="Nightmare" type="AudioStreamPlayer" parent="."]
stream = ExtResource("12_jjnbw")
bus = &"Nightmare"
[node name="EndDay" parent="." instance=ExtResource("12_p32yk")]
position = Vector2(985, 245)
SpriteOffset = Vector2(0, -30)
AreaRadius = 20.0
IsEnabled = false
[connection signal="DialogEnded" from="NPCs/Ivan" to="." method="EnableEndDay"]
[connection signal="finished" from="Nightmare" to="." method="ChangeScene"]
[connection signal="OnInteract" from="EndDay" to="." method="ChangeDay"]
[connection signal="PlayerLeft" from="EndDay" to="." method="RemoveEndDay"]
[connection signal="PlayerNearBy" from="EndDay" to="." method="AssignEndDay"]