Катсцена первого дня финальная версия

This commit is contained in:
Евгений Титаренко 2024-08-25 17:35:36 +03:00
parent 32f09f08f3
commit d92d6f629b
8 changed files with 110 additions and 42 deletions

View file

@ -1,12 +1,20 @@
[gd_scene load_steps=6 format=3 uid="uid://ca2cali2s1y6x"]
[gd_scene load_steps=9 format=3 uid="uid://ca2cali2s1y6x"]
[ext_resource type="SpriteFrames" uid="uid://bwssm27bm14s7" path="res://resources/sprites/npcs/captain.tres" id="1_pra77"]
[ext_resource type="Script" path="res://scripts/Day1Cutscene.cs" id="1_ryay5"]
[ext_resource type="PackedScene" uid="uid://c5ndo6b0unkst" path="res://prefabs/NPC.tscn" id="3_c46dh"]
[ext_resource type="AudioStream" uid="uid://dtbu8f2sp1lql" path="res://resources/sounds/spook8.wav" id="4_dfp4a"]
[ext_resource type="AudioStream" uid="uid://cb0344er3onkq" path="res://resources/sounds/door/doorOpen_1.ogg" id="5_2n8ga"]
[ext_resource type="AudioStream" uid="uid://87caolv1uksk" path="res://resources/sounds/door/doorClose_3.ogg" id="6_6tavv"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yoe65"]
size = Vector2(53, 20)
size = Vector2(23, 20)
[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_ruuga"]
loop = false
stream_count = 2
stream_0 = ExtResource("5_2n8ga")
stream_1 = ExtResource("6_6tavv")
[node name="Day1Cutscene" type="Node2D"]
script = ExtResource("1_ryay5")
@ -17,7 +25,7 @@ sprite_frames = ExtResource("1_pra77")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(-16.5, 0)
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_yoe65")
[node name="NPC1" parent="." instance=ExtResource("3_c46dh")]
@ -34,4 +42,13 @@ DialogLines = ["...", "Quite intresting", "Process this signal on main computer"
stream = ExtResource("4_dfp4a")
bus = &"Spook"
[node name="DoorSounds" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamPlaylist_ruuga")
volume_db = -10.0
bus = &"Sound"
[connection signal="body_entered" from="Area2D" to="." method="Stage1"]
[connection signal="DialogEnded" from="NPC1" to="." method="Stage2"]
[connection signal="DialogEnded" from="NPC2" to="." method="Stage4"]
[connection signal="finished" from="Spook" to="." method="Stage3"]
[connection signal="finished" from="DoorSounds" to="." method="Final"]

View file

@ -8,7 +8,7 @@ script = ExtResource("1_nwv7e")
[node name="Interactable" parent="." instance=ExtResource("1_yb42q")]
SpriteOffset = Vector2(0, -40)
AreaRadius = 20.0
AreaRadius = 5.0
[connection signal="PlayerLeft" from="Interactable" to="." method="_on_interactable_player_left"]
[connection signal="PlayerNearBy" from="Interactable" to="." method="_on_interactable_player_near_by"]

View file

@ -3,19 +3,19 @@
[ext_resource type="Script" path="res://scripts/Interactable.cs" id="1_4ni08"]
[ext_resource type="SpriteFrames" uid="uid://bvnfvjn7am8tc" path="res://resources/sprites/key.tres" id="2_0s1fq"]
[sub_resource type="CircleShape2D" id="CircleShape2D_w4p6k"]
[sub_resource type="CircleShape2D" id="CircleShape2D_t3l22"]
radius = 0.0
[node name="Interactable" type="Node2D"]
script = ExtResource("1_4ni08")
IsEnabled = true
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_w4p6k")
shape = SubResource("CircleShape2D_t3l22")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
visible = false
scale = Vector2(0.5, 0.5)
sprite_frames = ExtResource("2_0s1fq")
autoplay = "default"