Кошмары
This commit is contained in:
parent
a87871a704
commit
47df3f9165
12 changed files with 105 additions and 11 deletions
|
@ -37,7 +37,7 @@ bus/3/name = &"Nightmare"
|
|||
bus/3/solo = false
|
||||
bus/3/mute = false
|
||||
bus/3/bypass_fx = false
|
||||
bus/3/volume_db = -10.0741
|
||||
bus/3/volume_db = 0.0
|
||||
bus/3/send = &"Master"
|
||||
bus/3/effect/0/effect = SubResource("AudioEffectReverb_y6xta")
|
||||
bus/3/effect/0/enabled = true
|
||||
|
|
BIN
resources/sounds/nightmares/D2nm.wav
Normal file
BIN
resources/sounds/nightmares/D2nm.wav
Normal file
Binary file not shown.
24
resources/sounds/nightmares/D2nm.wav.import
Normal file
24
resources/sounds/nightmares/D2nm.wav.import
Normal file
|
@ -0,0 +1,24 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://djbidtsatly0u"
|
||||
path="res://.godot/imported/D2nm.wav-c35f2b635dadf79bf9cd09ea4b0ea311.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resources/sounds/nightmares/D2nm.wav"
|
||||
dest_files=["res://.godot/imported/D2nm.wav-c35f2b635dadf79bf9cd09ea4b0ea311.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
BIN
resources/sounds/nightmares/D3nm.wav
Normal file
BIN
resources/sounds/nightmares/D3nm.wav
Normal file
Binary file not shown.
24
resources/sounds/nightmares/D3nm.wav.import
Normal file
24
resources/sounds/nightmares/D3nm.wav.import
Normal file
|
@ -0,0 +1,24 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://cthbe23g2r01q"
|
||||
path="res://.godot/imported/D3nm.wav-6eb2d6754cd72a2fd4988a3a93e10f09.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resources/sounds/nightmares/D3nm.wav"
|
||||
dest_files=["res://.godot/imported/D3nm.wav-6eb2d6754cd72a2fd4988a3a93e10f09.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
BIN
resources/sounds/nightmares/D4nm.wav
Normal file
BIN
resources/sounds/nightmares/D4nm.wav
Normal file
Binary file not shown.
24
resources/sounds/nightmares/D4nm.wav.import
Normal file
24
resources/sounds/nightmares/D4nm.wav.import
Normal file
|
@ -0,0 +1,24 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://71paty3fjbq8"
|
||||
path="res://.godot/imported/D4nm.wav-93e8bec9a896c771c11f8fe9e38e6360.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resources/sounds/nightmares/D4nm.wav"
|
||||
dest_files=["res://.godot/imported/D4nm.wav-93e8bec9a896c771c11f8fe9e38e6360.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=25 format=3 uid="uid://bpnc0noa6do5m"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://bpnc0noa6do5m"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Day.cs" id="1_6vltc"]
|
||||
[ext_resource type="Texture2D" uid="uid://b5baxx5o21qy1" path="res://resources/sprites/Sub/Sub.png" id="1_j1x6m"]
|
||||
|
@ -11,6 +11,7 @@
|
|||
[ext_resource type="SpriteFrames" uid="uid://wu7pmuvjw5qm" path="res://resources/sprites/npcs/Empty.tres" id="8_1sqr2"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfdsnwub212o6" path="res://prefabs/Player.tscn" id="9_7dj1v"]
|
||||
[ext_resource type="AudioStream" uid="uid://bask8dw8kd56j" path="res://resources/music/Day2.wav" id="10_x821k"]
|
||||
[ext_resource type="AudioStream" uid="uid://djbidtsatly0u" path="res://resources/sounds/nightmares/D2nm.wav" id="12_c16wp"]
|
||||
[ext_resource type="PackedScene" uid="uid://x6pqolxtgwvy" path="res://prefabs/Interactable.tscn" id="12_f7yho"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h0540"]
|
||||
|
@ -255,6 +256,10 @@ stream = SubResource("AudioStreamPlaylist_7838k")
|
|||
autoplay = true
|
||||
bus = &"Music"
|
||||
|
||||
[node name="Nightmare" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("12_c16wp")
|
||||
bus = &"Nightmare"
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
z_index = 11
|
||||
offset_left = 894.0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=25 format=3 uid="uid://dydhxm41f4kqu"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://dydhxm41f4kqu"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Day.cs" id="1_6ouk8"]
|
||||
[ext_resource type="Texture2D" uid="uid://b5baxx5o21qy1" path="res://resources/sprites/Sub/Sub.png" id="1_m7xoy"]
|
||||
|
@ -11,6 +11,7 @@
|
|||
[ext_resource type="SpriteFrames" uid="uid://wu7pmuvjw5qm" path="res://resources/sprites/npcs/Empty.tres" id="8_k42bg"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfdsnwub212o6" path="res://prefabs/Player.tscn" id="9_pvv3u"]
|
||||
[ext_resource type="AudioStream" uid="uid://c0mheqx5d738m" path="res://resources/music/Day3.wav" id="10_ouee8"]
|
||||
[ext_resource type="AudioStream" uid="uid://cthbe23g2r01q" path="res://resources/sounds/nightmares/D3nm.wav" id="12_jru5s"]
|
||||
[ext_resource type="PackedScene" uid="uid://x6pqolxtgwvy" path="res://prefabs/Interactable.tscn" id="12_yeat3"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h0540"]
|
||||
|
@ -255,6 +256,10 @@ stream = SubResource("AudioStreamPlaylist_7838k")
|
|||
autoplay = true
|
||||
bus = &"Music"
|
||||
|
||||
[node name="Nightmare" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("12_jru5s")
|
||||
bus = &"Nightmare"
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
z_index = 11
|
||||
offset_left = 894.0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=25 format=3 uid="uid://cxvsyen213g1o"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://cxvsyen213g1o"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Day.cs" id="1_gb313"]
|
||||
[ext_resource type="Texture2D" uid="uid://b5baxx5o21qy1" path="res://resources/sprites/Sub/Sub.png" id="1_ngvqc"]
|
||||
|
@ -12,6 +12,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://dfdsnwub212o6" path="res://prefabs/Player.tscn" id="9_qlkfx"]
|
||||
[ext_resource type="AudioStream" uid="uid://dyj3161xr78j8" path="res://resources/music/Day4.wav" id="10_vlywc"]
|
||||
[ext_resource type="PackedScene" uid="uid://x6pqolxtgwvy" path="res://prefabs/Interactable.tscn" id="12_dvtmm"]
|
||||
[ext_resource type="AudioStream" uid="uid://71paty3fjbq8" path="res://resources/sounds/nightmares/D4nm.wav" id="12_lqcqa"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h0540"]
|
||||
size = Vector2(640, 24)
|
||||
|
@ -255,6 +256,10 @@ stream = SubResource("AudioStreamPlaylist_7838k")
|
|||
autoplay = true
|
||||
bus = &"Music"
|
||||
|
||||
[node name="Nightmare" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("12_lqcqa")
|
||||
bus = &"Nightmare"
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
z_index = 11
|
||||
offset_left = 894.0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=25 format=3 uid="uid://10ew1xa1pxm2"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://10ew1xa1pxm2"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Day.cs" id="1_ii8yu"]
|
||||
[ext_resource type="Texture2D" uid="uid://b5baxx5o21qy1" path="res://resources/sprites/Sub/Sub.png" id="1_p4jcj"]
|
||||
|
@ -12,6 +12,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://dfdsnwub212o6" path="res://prefabs/Player.tscn" id="9_mxxxl"]
|
||||
[ext_resource type="AudioStream" uid="uid://3poadcg4f8mj" path="res://resources/music/Day5.wav" id="10_bwdem"]
|
||||
[ext_resource type="PackedScene" uid="uid://x6pqolxtgwvy" path="res://prefabs/Interactable.tscn" id="12_bvb3u"]
|
||||
[ext_resource type="AudioStream" uid="uid://cw6y35jglsn1" path="res://resources/sounds/nightmares/D1nm.wav" id="12_thjn8"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h0540"]
|
||||
size = Vector2(640, 24)
|
||||
|
@ -250,6 +251,10 @@ stream = SubResource("AudioStreamPlaylist_7838k")
|
|||
autoplay = true
|
||||
bus = &"Music"
|
||||
|
||||
[node name="Nightmare" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("12_thjn8")
|
||||
bus = &"Nightmare"
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
z_index = 11
|
||||
offset_left = 894.0
|
||||
|
|
|
@ -65,11 +65,11 @@ public partial class Day : Node2D
|
|||
{
|
||||
if (_state == State.TransitionIn)
|
||||
{
|
||||
if (_transitionTimeout <= 2)
|
||||
if (_transitionTimeout <= 1)
|
||||
{
|
||||
_transitionTimeout += delta;
|
||||
_music.VolumeDb = Mathf.Lerp(-40, 0, (float)_transitionTimeout/2);
|
||||
_colorRect.Color = new Color(0, 0, 0, Mathf.Lerp(1, 0, (float)_transitionTimeout/2));
|
||||
_music.VolumeDb = Mathf.Lerp(-40, 0, (float)_transitionTimeout);
|
||||
_colorRect.Color = new Color(0, 0, 0, Mathf.Lerp(1, 0, (float)_transitionTimeout));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -81,14 +81,16 @@ public partial class Day : Node2D
|
|||
if (_state == State.TransitionOut)
|
||||
{
|
||||
_player.CurrentState = Player.State.Wait;
|
||||
if (_transitionTimeout <= 2)
|
||||
if (_transitionTimeout <= 1)
|
||||
{
|
||||
_transitionTimeout += delta;
|
||||
_music.VolumeDb = Mathf.Lerp(0, -40, (float)_transitionTimeout/2);
|
||||
_colorRect.Color = new Color(0, 0, 0, Mathf.Lerp(0, 1, (float)_transitionTimeout/2));
|
||||
_music.VolumeDb = Mathf.Lerp(0, -40, (float)_transitionTimeout);
|
||||
_colorRect.Color = new Color(0, 0, 0, Mathf.Lerp(0, 1, (float)_transitionTimeout));
|
||||
}
|
||||
else
|
||||
{
|
||||
_state = State.Default;
|
||||
_music.Stop();
|
||||
_nightmare.Play();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue