生死簿、鬼差出场与浮现、盒子猫音效铺设
This commit is contained in:
parent
cc3147ed08
commit
eeaaef7c0d
BIN
asset/audio/sfx/game/序章/sfx_生死簿演出.wav
Normal file
BIN
asset/audio/sfx/game/序章/sfx_生死簿演出.wav
Normal file
Binary file not shown.
24
asset/audio/sfx/game/序章/sfx_生死簿演出.wav.import
Normal file
24
asset/audio/sfx/game/序章/sfx_生死簿演出.wav.import
Normal file
@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://htiqqwwf5j6k"
|
||||
path="res://.godot/imported/sfx_生死簿演出.wav-d047d98d339f631ce6f54001dc297bdb.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/audio/sfx/game/序章/sfx_生死簿演出.wav"
|
||||
dest_files=["res://.godot/imported/sfx_生死簿演出.wav-d047d98d339f631ce6f54001dc297bdb.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=2
|
BIN
asset/audio/sfx/交互/序章/sfx_鬼差出场.wav
Normal file
BIN
asset/audio/sfx/交互/序章/sfx_鬼差出场.wav
Normal file
Binary file not shown.
24
asset/audio/sfx/交互/序章/sfx_鬼差出场.wav.import
Normal file
24
asset/audio/sfx/交互/序章/sfx_鬼差出场.wav.import
Normal file
@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://c68e38rel4xrs"
|
||||
path="res://.godot/imported/sfx_鬼差出场.wav-d823a9435a21877a6c1618ad8731f9d4.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/audio/sfx/交互/序章/sfx_鬼差出场.wav"
|
||||
dest_files=["res://.godot/imported/sfx_鬼差出场.wav-d823a9435a21877a6c1618ad8731f9d4.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=2
|
@ -3,12 +3,12 @@
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://c5rgfl6ub4chw"
|
||||
path="res://.godot/imported/sfx_擦肩而过.wav-cfd1f548b5ddd7fceb3cf8cc02dc4bd7.sample"
|
||||
path="res://.godot/imported/sfx_鬼差擦肩而过.wav-a5da74ac7316af91e878eae9f5700bf9.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/audio/sfx/交互/第一章/sfx_擦肩而过.wav"
|
||||
dest_files=["res://.godot/imported/sfx_擦肩而过.wav-cfd1f548b5ddd7fceb3cf8cc02dc4bd7.sample"]
|
||||
source_file="res://asset/audio/sfx/交互/序章/sfx_鬼差擦肩而过.wav"
|
||||
dest_files=["res://.godot/imported/sfx_鬼差擦肩而过.wav-a5da74ac7316af91e878eae9f5700bf9.sample"]
|
||||
|
||||
[params]
|
||||
|
BIN
asset/audio/sfx/交互/第一章/sfx_猫结尾演出.wav
Normal file
BIN
asset/audio/sfx/交互/第一章/sfx_猫结尾演出.wav
Normal file
Binary file not shown.
24
asset/audio/sfx/交互/第一章/sfx_猫结尾演出.wav.import
Normal file
24
asset/audio/sfx/交互/第一章/sfx_猫结尾演出.wav.import
Normal file
@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://ddii8wvvsifa7"
|
||||
path="res://.godot/imported/sfx_猫结尾演出.wav-bb473ca2cfff001346bbec9716fec131.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/audio/sfx/交互/第一章/sfx_猫结尾演出.wav"
|
||||
dest_files=["res://.godot/imported/sfx_猫结尾演出.wav-bb473ca2cfff001346bbec9716fec131.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=2
|
BIN
asset/audio/sfx/交互/第一章/sfx_猫被抓住.wav
Normal file
BIN
asset/audio/sfx/交互/第一章/sfx_猫被抓住.wav
Normal file
Binary file not shown.
24
asset/audio/sfx/交互/第一章/sfx_猫被抓住.wav.import
Normal file
24
asset/audio/sfx/交互/第一章/sfx_猫被抓住.wav.import
Normal file
@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://br4a2mjkj8odm"
|
||||
path="res://.godot/imported/sfx_猫被抓住.wav-75c2b8ec24c340e64d30782cb7f6a80f.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/audio/sfx/交互/第一章/sfx_猫被抓住.wav"
|
||||
dest_files=["res://.godot/imported/sfx_猫被抓住.wav-75c2b8ec24c340e64d30782cb7f6a80f.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=2
|
BIN
asset/audio/sfx/交互/第一章/sfx_猫躲起来.wav
Normal file
BIN
asset/audio/sfx/交互/第一章/sfx_猫躲起来.wav
Normal file
Binary file not shown.
24
asset/audio/sfx/交互/第一章/sfx_猫躲起来.wav.import
Normal file
24
asset/audio/sfx/交互/第一章/sfx_猫躲起来.wav.import
Normal file
@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://11ob0heie327"
|
||||
path="res://.godot/imported/sfx_猫躲起来.wav-c205c528106937febcf20d811a1a8331.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/audio/sfx/交互/第一章/sfx_猫躲起来.wav"
|
||||
dest_files=["res://.godot/imported/sfx_猫躲起来.wav-c205c528106937febcf20d811a1a8331.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=2
|
BIN
asset/audio/sfx/交互/第一章/sfx_猫退出躲藏.wav
Normal file
BIN
asset/audio/sfx/交互/第一章/sfx_猫退出躲藏.wav
Normal file
Binary file not shown.
24
asset/audio/sfx/交互/第一章/sfx_猫退出躲藏.wav.import
Normal file
24
asset/audio/sfx/交互/第一章/sfx_猫退出躲藏.wav.import
Normal file
@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://7sjwgob6tsu4"
|
||||
path="res://.godot/imported/sfx_猫退出躲藏.wav-5f7c731bad4eafbcab2c2329d2394712.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/audio/sfx/交互/第一章/sfx_猫退出躲藏.wav"
|
||||
dest_files=["res://.godot/imported/sfx_猫退出躲藏.wav-5f7c731bad4eafbcab2c2329d2394712.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=2
|
@ -147,7 +147,8 @@ func _on_shelf_game_success() -> void:
|
||||
fall_off.visible = true
|
||||
fall_off.play()
|
||||
fall_off.animation_finished.connect(_on_fall_off_finished)
|
||||
$"摔倒音效".play()
|
||||
# 从 sfx_生死簿演出 中播放
|
||||
# $"摔倒音效".play()
|
||||
_check_portal()
|
||||
|
||||
func _on_fall_off_finished() -> void:
|
||||
|
@ -1,10 +1,9 @@
|
||||
[gd_scene load_steps=22 format=3 uid="uid://cwu4dhayra8pg"]
|
||||
[gd_scene load_steps=21 format=3 uid="uid://cwu4dhayra8pg"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_b3cca"]
|
||||
[ext_resource type="Script" uid="uid://6q2pfbqsw10t" path="res://scene/ground/scene/c01/s08_animation.gd" id="2_0lque"]
|
||||
[ext_resource type="AudioStream" uid="uid://d31pxjnnvqdpn" path="res://asset/audio/sfx/环境音/序章/04_书店内.wav" id="3_0x288"]
|
||||
[ext_resource type="Texture2D" uid="uid://coo8sw8yigii6" path="res://asset/art/scene/c01/s08_书店/bg_书店.png" id="3_322m4"]
|
||||
[ext_resource type="AudioStream" uid="uid://bnjyw5v85s6qe" path="res://asset/audio/sfx/交互/序章/04_书店内_主角摔倒.wav" id="3_b6wsl"]
|
||||
[ext_resource type="AudioStream" uid="uid://vygcjwgo1j4a" path="res://asset/audio/sfx/环境音/序章/04_书店内_奶奶写字.wav" id="4_5j1ov"]
|
||||
[ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="4_c4lg5"]
|
||||
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_p6k3c"]
|
||||
@ -89,14 +88,7 @@ bus = &"game_sfx"
|
||||
script = ExtResource("4_p6k3c")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
|
||||
[node name="摔倒音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"]
|
||||
stream = ExtResource("3_b6wsl")
|
||||
volume_db = -20.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("4_p6k3c")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
|
||||
[node name="放报纸音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="4"]
|
||||
[node name="放报纸音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="3"]
|
||||
stream = ExtResource("9_lfr41")
|
||||
volume_db = -5.0
|
||||
bus = &"game_sfx"
|
||||
@ -205,7 +197,7 @@ offset = Vector2(0, 40)
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(30, 150, 545, 150)
|
||||
|
||||
[node name="DirectionalLight2D" parent="Ground" index="8"]
|
||||
[node name="DirectionalLight2D" parent="Ground" index="7"]
|
||||
energy = 0.0
|
||||
blend_mode = 1
|
||||
|
||||
|
@ -36,6 +36,7 @@ func _ghost_move() -> void:
|
||||
ghost.get_node("脚步声2D").start_loop()
|
||||
|
||||
|
||||
func player_been_catched() -> void:
|
||||
func player_been_passed() -> void:
|
||||
# 玩家被抓: 公寓楼前玩家不被抓,擦肩而过,可以有擦肩而过的音效
|
||||
SceneManager.pop_debug_dialog_info("音效", "鬼差擦肩而过")
|
||||
ghost.get_node("Sfx鬼差擦肩而过").play()
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=25 format=3 uid="uid://c777lv8mjojcw"]
|
||||
[gd_scene load_steps=30 format=3 uid="uid://c777lv8mjojcw"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_mrwu5"]
|
||||
[ext_resource type="Script" uid="uid://c7rvvsuf18ykn" path="res://scene/ground/scene/c01/s09_animation.gd" id="2_u053j"]
|
||||
@ -11,14 +11,18 @@
|
||||
[ext_resource type="Script" uid="uid://bbg4vopj4apl6" path="res://scene/entity/audio/bgm_control.gd" id="5_hy0mc"]
|
||||
[ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="5_pssh2"]
|
||||
[ext_resource type="AudioStream" uid="uid://c1orqd7uxh8iu" path="res://asset/audio/sfx/环境音/序章/05_诡异通用_2.wav" id="6_lrqbi"]
|
||||
[ext_resource type="AudioStream" uid="uid://dxnsyw7box2w0" path="res://asset/audio/sfx/交互/序章/sfx_鬼影浮现.wav" id="7_5sju7"]
|
||||
[ext_resource type="Texture2D" uid="uid://dol25yn3fixim" path="res://asset/art/fog_mask.png" id="7_828bq"]
|
||||
[ext_resource type="PackedScene" uid="uid://bicuc35kbn8hd" path="res://scene/effect/fog.tscn" id="7_wrhtk"]
|
||||
[ext_resource type="Shader" uid="uid://bcfnbll451i2r" path="res://asset/shader/fog.gdshader" id="8_0ohlv"]
|
||||
[ext_resource type="AudioStream" uid="uid://c5rgfl6ub4chw" path="res://asset/audio/sfx/交互/序章/sfx_鬼差擦肩而过.wav" id="8_sq0x2"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://c2peyi2l65h47" path="res://asset/art/gif/c01_公寓外街道/c01_公寓外街道_frames.tres" id="10_0ohlv"]
|
||||
[ext_resource type="Script" uid="uid://dxq5c05ab7uyu" path="res://scene/ground/script/c01/s00_ghost_footstep.gd" id="11_6w7lv"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7gyapghy3tsy" path="res://asset/art/neutral_point_light.png" id="12_828bq"]
|
||||
[ext_resource type="Texture2D" uid="uid://r0n7qy4kr3w2" path="res://asset/art/ui/action_mark/UI场景切换.png" id="12_lrqbi"]
|
||||
[ext_resource type="PackedScene" uid="uid://svvlohuicvhf" path="res://scene/entity/ambient/light.tscn" id="13_6w7lv"]
|
||||
[ext_resource type="Script" uid="uid://wapo47a1oddf" path="res://scene/entity/audio/sfx2d.gd" id="19_jgofb"]
|
||||
[ext_resource type="Script" uid="uid://baok7hk5jygpm" path="res://scene/ground/script/c01/s09_鬼影浮现.gd" id="20_nwvnr"]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_jw18h"]
|
||||
noise_type = 2
|
||||
@ -53,6 +57,9 @@ animations = [{
|
||||
resource_local_to_scene = true
|
||||
size = Vector2(150, 130)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4sgc5"]
|
||||
size = Vector2(40, 80)
|
||||
|
||||
[node name="S09" type="Node2D"]
|
||||
metadata/_edit_horizontal_guides_ = [120.0, -120.0]
|
||||
|
||||
@ -66,7 +73,7 @@ oneshot_animation = ""
|
||||
|
||||
[node name="花枯萎音效" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
|
||||
stream = ExtResource("3_b5sdk")
|
||||
volume_db = -13.866
|
||||
volume_db = -8.0
|
||||
autoplay = true
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("4_3f7n1")
|
||||
@ -136,23 +143,49 @@ visible = false
|
||||
z_index = 10
|
||||
position = Vector2(-119, 13)
|
||||
|
||||
[node name="Ambush玩家被抓" parent="Ground/DeployLayer/Ghost" instance=ExtResource("5_pssh2")]
|
||||
[node name="Ambush玩家擦肩而过" parent="Ground/DeployLayer/Ghost" instance=ExtResource("5_pssh2")]
|
||||
position = Vector2(96, 20)
|
||||
one_shot = false
|
||||
freeze_time = 0.1
|
||||
hook_method = "player_been_catched"
|
||||
hook_method = "player_been_passed"
|
||||
|
||||
[node name="脚步声2D" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/Ghost"]
|
||||
max_distance = 1500.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("11_6w7lv")
|
||||
|
||||
[node name="Sfx鬼差擦肩而过" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/Ghost"]
|
||||
stream = ExtResource("8_sq0x2")
|
||||
max_distance = 500.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("19_jgofb")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="书店老板害怕" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="6"]
|
||||
z_index = -1
|
||||
position = Vector2(2767, 10)
|
||||
position = Vector2(2772, 10)
|
||||
sprite_frames = ExtResource("10_0ohlv")
|
||||
animation = &"书店老板害怕"
|
||||
autoplay = "书店老板害怕"
|
||||
|
||||
[node name="鬼影浮现" type="Node2D" parent="Ground/DeployLayer/书店老板害怕"]
|
||||
script = ExtResource("20_nwvnr")
|
||||
|
||||
[node name="Sfx鬼差浮现" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/书店老板害怕/鬼影浮现"]
|
||||
stream = ExtResource("7_5sju7")
|
||||
max_distance = 1000.0
|
||||
attenuation = 2.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("19_jgofb")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Ground/DeployLayer/书店老板害怕/鬼影浮现"]
|
||||
position = Vector2(-39, 31)
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground/DeployLayer/书店老板害怕/鬼影浮现/Area2D"]
|
||||
shape = SubResource("RectangleShape2D_4sgc5")
|
||||
|
||||
[node name="孤儿院小孩害怕1" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="7"]
|
||||
z_index = -1
|
||||
position = Vector2(2178, 1)
|
||||
@ -160,6 +193,24 @@ sprite_frames = ExtResource("10_0ohlv")
|
||||
animation = &"孤儿院小孩害怕1"
|
||||
autoplay = "孤儿院小孩害怕1"
|
||||
|
||||
[node name="鬼影浮现" type="Node2D" parent="Ground/DeployLayer/孤儿院小孩害怕1"]
|
||||
script = ExtResource("20_nwvnr")
|
||||
|
||||
[node name="Sfx鬼差浮现" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/孤儿院小孩害怕1/鬼影浮现"]
|
||||
stream = ExtResource("7_5sju7")
|
||||
max_distance = 1000.0
|
||||
attenuation = 2.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("19_jgofb")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Ground/DeployLayer/孤儿院小孩害怕1/鬼影浮现"]
|
||||
position = Vector2(-39, 31)
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground/DeployLayer/孤儿院小孩害怕1/鬼影浮现/Area2D"]
|
||||
shape = SubResource("RectangleShape2D_4sgc5")
|
||||
|
||||
[node name="孤儿院小孩害怕2" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="8"]
|
||||
z_index = -1
|
||||
position = Vector2(2358, 10)
|
||||
@ -167,6 +218,25 @@ sprite_frames = ExtResource("10_0ohlv")
|
||||
animation = &"孤儿院小孩害怕2"
|
||||
autoplay = "孤儿院小孩害怕2"
|
||||
|
||||
[node name="鬼影浮现" type="Node2D" parent="Ground/DeployLayer/孤儿院小孩害怕2"]
|
||||
position = Vector2(7, 0)
|
||||
script = ExtResource("20_nwvnr")
|
||||
|
||||
[node name="Sfx鬼差浮现" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/孤儿院小孩害怕2/鬼影浮现"]
|
||||
stream = ExtResource("7_5sju7")
|
||||
max_distance = 1000.0
|
||||
attenuation = 2.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("19_jgofb")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Ground/DeployLayer/孤儿院小孩害怕2/鬼影浮现"]
|
||||
position = Vector2(-39, 31)
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground/DeployLayer/孤儿院小孩害怕2/鬼影浮现/Area2D"]
|
||||
shape = SubResource("RectangleShape2D_4sgc5")
|
||||
|
||||
[node name="杂戏团小孩害怕1" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="9"]
|
||||
z_index = -1
|
||||
position = Vector2(2687, 4)
|
||||
@ -174,6 +244,24 @@ sprite_frames = ExtResource("10_0ohlv")
|
||||
animation = &"举碗小孩害怕"
|
||||
autoplay = "举碗小孩害怕"
|
||||
|
||||
[node name="鬼影浮现" type="Node2D" parent="Ground/DeployLayer/杂戏团小孩害怕1"]
|
||||
script = ExtResource("20_nwvnr")
|
||||
|
||||
[node name="Sfx鬼差浮现" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/杂戏团小孩害怕1/鬼影浮现"]
|
||||
stream = ExtResource("7_5sju7")
|
||||
max_distance = 1000.0
|
||||
attenuation = 2.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("19_jgofb")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Ground/DeployLayer/杂戏团小孩害怕1/鬼影浮现"]
|
||||
position = Vector2(-39, 31)
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground/DeployLayer/杂戏团小孩害怕1/鬼影浮现/Area2D"]
|
||||
shape = SubResource("RectangleShape2D_4sgc5")
|
||||
|
||||
[node name="杂戏团小孩害怕2" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="10"]
|
||||
z_index = -1
|
||||
position = Vector2(2572, 5)
|
||||
@ -181,13 +269,50 @@ sprite_frames = ExtResource("10_0ohlv")
|
||||
animation = &"夜晚其余小孩害怕"
|
||||
autoplay = "夜晚其余小孩害怕"
|
||||
|
||||
[node name="鬼影浮现" type="Node2D" parent="Ground/DeployLayer/杂戏团小孩害怕2"]
|
||||
position = Vector2(-26, 1)
|
||||
script = ExtResource("20_nwvnr")
|
||||
|
||||
[node name="Sfx鬼差浮现" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/杂戏团小孩害怕2/鬼影浮现"]
|
||||
stream = ExtResource("7_5sju7")
|
||||
max_distance = 1000.0
|
||||
attenuation = 2.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("19_jgofb")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Ground/DeployLayer/杂戏团小孩害怕2/鬼影浮现"]
|
||||
position = Vector2(-39, 31)
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground/DeployLayer/杂戏团小孩害怕2/鬼影浮现/Area2D"]
|
||||
shape = SubResource("RectangleShape2D_4sgc5")
|
||||
|
||||
[node name="杂戏团小孩害怕3" type="AnimatedSprite2D" parent="Ground/DeployLayer" index="11"]
|
||||
z_index = -1
|
||||
position = Vector2(2546, -1)
|
||||
position = Vector2(3088, -12)
|
||||
sprite_frames = ExtResource("10_0ohlv")
|
||||
animation = &"夜晚举腿小孩害怕"
|
||||
autoplay = "夜晚举腿小孩害怕"
|
||||
|
||||
[node name="鬼影浮现" type="Node2D" parent="Ground/DeployLayer/杂戏团小孩害怕3"]
|
||||
script = ExtResource("20_nwvnr")
|
||||
|
||||
[node name="Sfx鬼差浮现" type="AudioStreamPlayer2D" parent="Ground/DeployLayer/杂戏团小孩害怕3/鬼影浮现"]
|
||||
stream = ExtResource("7_5sju7")
|
||||
max_distance = 1000.0
|
||||
attenuation = 2.0
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("19_jgofb")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Ground/DeployLayer/杂戏团小孩害怕3/鬼影浮现"]
|
||||
position = Vector2(-39, 31)
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground/DeployLayer/杂戏团小孩害怕3/鬼影浮现/Area2D"]
|
||||
shape = SubResource("RectangleShape2D_4sgc5")
|
||||
|
||||
[node name="Light" parent="Ground/AmbientLayer" index="0" instance=ExtResource("13_6w7lv")]
|
||||
position = Vector2(681, -27)
|
||||
texture = null
|
||||
@ -228,7 +353,7 @@ character = "小小蝶"
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(37, 150, 3460, 150)
|
||||
|
||||
[node name="DirectionalLight2D" parent="Ground" index="8"]
|
||||
[node name="DirectionalLight2D" parent="Ground" index="7"]
|
||||
energy = 0.4
|
||||
blend_mode = 1
|
||||
|
||||
|
@ -95,6 +95,7 @@ func _on_interactable_bowl_interacted() -> void:
|
||||
kids.play("夜晚其余小孩杂耍到害怕过渡")
|
||||
var kid = $"../DeployLayer/举腿小孩"
|
||||
kid.play("夜晚举腿小孩杂耍到害怕过渡")
|
||||
$"Sfx鬼差出场".play()
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
DialogueManager.show_dialogue_balloon(dialogue_c01, "c01_s12_鬼差来了")
|
||||
var tween = create_tween()
|
||||
@ -136,6 +137,7 @@ func _setup_catching_game():
|
||||
|
||||
|
||||
func player_been_catched(transition := true) -> void:
|
||||
$"Sfx鬼差擦肩而过".play()
|
||||
SceneManager.freeze_player(0)
|
||||
if ghost_move_tween:
|
||||
ghost_move_tween.kill()
|
||||
@ -157,6 +159,7 @@ func player_been_catched(transition := true) -> void:
|
||||
# reset player and ghost position
|
||||
ghost.global_position.x = ghost_start_x + 100.0
|
||||
SceneManager.get_player().global_position.x = player_start_x
|
||||
$"Sfx鬼差出场".play()
|
||||
DialogueManager.show_dialogue_balloon(dialogue_c01, "c01_s12_鬼差来了")
|
||||
await DialogueManager.dialogue_ended
|
||||
SceneManager.release_player()
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=33 format=3 uid="uid://bol5hl68pbpgq"]
|
||||
[gd_scene load_steps=34 format=3 uid="uid://bol5hl68pbpgq"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_llw14"]
|
||||
[ext_resource type="Script" uid="uid://bh4h0e158t1oj" path="res://scene/ground/scene/c01/s12_animation.gd" id="2_krdvw"]
|
||||
@ -7,24 +7,25 @@
|
||||
[ext_resource type="Texture2D" uid="uid://ctukk7c8xo4uc" path="res://asset/art/scene/c01/s07_书店外/e_装饰 书店外夜晚.png" id="4_c1x3p"]
|
||||
[ext_resource type="AudioStream" uid="uid://c1orqd7uxh8iu" path="res://asset/audio/sfx/环境音/序章/05_诡异通用_2.wav" id="4_mxf8g"]
|
||||
[ext_resource type="PackedScene" uid="uid://61pis75a8fdq" path="res://scene/entity/portal.tscn" id="4_o7hfk"]
|
||||
[ext_resource type="AudioStream" uid="uid://c68e38rel4xrs" path="res://asset/audio/sfx/交互/序章/sfx_鬼差出场.wav" id="5_5qtdl"]
|
||||
[ext_resource type="PackedScene" uid="uid://cw3q5pvciumil" path="res://scene/entity/interactable.tscn" id="5_6jrnc"]
|
||||
[ext_resource type="PackedScene" uid="uid://svvlohuicvhf" path="res://scene/entity/ambient/light.tscn" id="5_kywnm"]
|
||||
[ext_resource type="PackedScene" uid="uid://dnbutraty2285" path="res://scene/entity/partical/particals_ash_vertical.tscn" id="6_mfjjt"]
|
||||
[ext_resource type="Script" uid="uid://wapo47a1oddf" path="res://scene/entity/audio/sfx2d.gd" id="6_mxf8g"]
|
||||
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="6_p7n7n"]
|
||||
[ext_resource type="PackedScene" uid="uid://ci34db7xool2n" path="res://scene/ground/script/c01/s01_书店外_自动枯萎的花朵.tscn" id="7_aq8vg"]
|
||||
[ext_resource type="AudioStream" uid="uid://c5rgfl6ub4chw" path="res://asset/audio/sfx/交互/序章/sfx_鬼差擦肩而过.wav" id="7_denrd"]
|
||||
[ext_resource type="PackedScene" uid="uid://h0s5ms7r7d8g" path="res://scene/effect/ghost.tscn" id="8_gk0gq"]
|
||||
[ext_resource type="PackedScene" uid="uid://bnf3lkcbpx1ar" path="res://scene/entity/ambush.tscn" id="9_nqlku"]
|
||||
[ext_resource type="Script" uid="uid://dxq5c05ab7uyu" path="res://scene/ground/script/c01/s00_ghost_footstep.gd" id="10_1tspp"]
|
||||
[ext_resource type="PackedScene" uid="uid://cn1ypquvs07wx" path="res://scene/ground/script/c01/s12_飘动的寻人启事.tscn" id="11_pwu7i"]
|
||||
[ext_resource type="PackedScene" uid="uid://0sofmhrl358m" path="res://scene/entity/npc.tscn" id="12_jutue"]
|
||||
[ext_resource type="PackedScene" uid="uid://nwpbl5yuh280" path="res://scene/ground/script/c01/s00_自动跟随的老鼠.tscn" id="12_qpv8m"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://cvkuw35ulebme" path="res://asset/art/gif/c01_书店外街道/c01_书店外街道_frames.tres" id="13_lucm6"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://db7m3aks5w65j" path="res://asset/art/gif/c01_书店外街道_夜晚小孩害怕/c01_书店外街道_夜晚小孩害怕_frames.tres" id="14_7jjl5"]
|
||||
[ext_resource type="PackedScene" uid="uid://b50n0hvs4yh75" path="res://addons/property-inspector/pro_animation_sprite2d/pro_animated_sprite.tscn" id="14_ct084"]
|
||||
[ext_resource type="Script" uid="uid://cphfob11f7atx" path="res://addons/property-inspector/pro_animation_sprite2d/pro_animated_sprite.gd" id="14_guu7t"]
|
||||
[ext_resource type="PackedScene" uid="uid://bicuc35kbn8hd" path="res://scene/effect/fog.tscn" id="15_pvvjq"]
|
||||
[ext_resource type="Shader" uid="uid://bcfnbll451i2r" path="res://asset/shader/fog.gdshader" id="16_guu7t"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7gyapghy3tsy" path="res://asset/art/neutral_point_light.png" id="17_nta2f"]
|
||||
[ext_resource type="Texture2D" uid="uid://5byh65ppidsu" path="res://asset/art/scene/c01/s07_书店外/书店外街道夜晚 参考.png" id="18_0xa0c"]
|
||||
[ext_resource type="Texture2D" uid="uid://dol25yn3fixim" path="res://asset/art/fog_mask.png" id="19_7jjl5"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_48eje"]
|
||||
@ -84,7 +85,6 @@ metadata/_edit_horizontal_guides_ = [88.0]
|
||||
[node name="Ground" parent="." instance=ExtResource("1_llw14")]
|
||||
scene_name = "c01_s12"
|
||||
player_y = 60
|
||||
main_scene = null
|
||||
|
||||
[node name="AnimationPlayer" parent="Ground" index="0"]
|
||||
libraries = {
|
||||
@ -99,6 +99,19 @@ bgm_title = "诡异环境音2"
|
||||
bgm_stream = ExtResource("4_mxf8g")
|
||||
metadata/_custom_type_script = "uid://bbg4vopj4apl6"
|
||||
|
||||
[node name="Sfx鬼差出场" type="AudioStreamPlayer2D" parent="Ground/AnimationPlayer" index="1"]
|
||||
position = Vector2(1443, 41)
|
||||
stream = ExtResource("5_5qtdl")
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("6_mxf8g")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="Sfx鬼差擦肩而过" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="2"]
|
||||
stream = ExtResource("7_denrd")
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("6_p7n7n")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
|
||||
[node name="BGSprite2D" parent="Ground" index="1"]
|
||||
texture = ExtResource("3_npdxo")
|
||||
offset = Vector2(0, -158)
|
||||
@ -162,48 +175,50 @@ animation = &"陆仁擦刀"
|
||||
autoplay = "陆仁擦刀"
|
||||
action_configs = Array[Dictionary]([{
|
||||
"animation_intro": &"陆仁收刀",
|
||||
&"animation_next": "陆仁收刀后呼吸"
|
||||
&"animation_next": "陆仁收刀后呼吸",
|
||||
"animation_wait_time": 0.0,
|
||||
"intro_loop": 1
|
||||
}])
|
||||
|
||||
[node name="其余小孩" parent="Ground/DeployLayer" index="8" instance=ExtResource("12_jutue")]
|
||||
position = Vector2(1900.5, 13.5)
|
||||
[node name="其余小孩" parent="Ground/DeployLayer" index="8" instance=ExtResource("14_ct084")]
|
||||
position = Vector2(1911, 16)
|
||||
sprite_frames = ExtResource("14_7jjl5")
|
||||
animation = &"夜晚其余小孩杂耍"
|
||||
autoplay = "夜晚其余小孩杂耍"
|
||||
script = ExtResource("14_guu7t")
|
||||
autostart = true
|
||||
action_configs = Array[Dictionary]([{
|
||||
"animation_intro": "夜晚其余小孩杂耍到害怕过渡",
|
||||
&"animation_next": "夜晚其余小孩害怕"
|
||||
&"animation_next": "夜晚其余小孩害怕",
|
||||
"animation_wait_time": 0.0,
|
||||
"intro_loop": 1
|
||||
}])
|
||||
move_configs = Array[Dictionary]([])
|
||||
light_energy = 0.0
|
||||
|
||||
[node name="举腿小孩" parent="Ground/DeployLayer" index="9" instance=ExtResource("12_jutue")]
|
||||
position = Vector2(1892, 6)
|
||||
[node name="举腿小孩" parent="Ground/DeployLayer" index="9" instance=ExtResource("14_ct084")]
|
||||
position = Vector2(1822, 10)
|
||||
sprite_frames = ExtResource("14_7jjl5")
|
||||
animation = &"夜晚举腿小孩杂耍"
|
||||
autoplay = "夜晚举腿小孩杂耍"
|
||||
script = ExtResource("14_guu7t")
|
||||
autostart = true
|
||||
action_configs = Array[Dictionary]([{
|
||||
"animation_intro": "夜晚举腿小孩杂耍到害怕过渡",
|
||||
&"animation_next": "夜晚举腿小孩害怕"
|
||||
"animation_next": "夜晚举腿小孩害怕",
|
||||
"animation_wait_time": 0.0,
|
||||
"intro_loop": 1
|
||||
}])
|
||||
move_configs = Array[Dictionary]([])
|
||||
light_energy = 0.0
|
||||
|
||||
[node name="举碗小孩" parent="Ground/DeployLayer" index="10" instance=ExtResource("14_ct084")]
|
||||
position = Vector2(1796.5, 15.5)
|
||||
position = Vector2(1792, 13)
|
||||
sprite_frames = ExtResource("13_lucm6")
|
||||
animation = &"杂戏团夜晚_小孩举碗呼吸"
|
||||
autoplay = "杂戏团夜晚_小孩举碗呼吸"
|
||||
action_configs = Array[Dictionary]([{
|
||||
"animation_intro": "杂戏团夜晚_小孩放下碗",
|
||||
"animation_next": "举碗小孩呼吸"
|
||||
"animation_next": "举碗小孩呼吸",
|
||||
"animation_wait_time": 0.0,
|
||||
"intro_loop": 1
|
||||
}, {
|
||||
"animation_intro": "举碗小孩害怕过渡",
|
||||
&"animation_next": "举碗小孩害怕"
|
||||
&"animation_next": "举碗小孩害怕",
|
||||
"animation_wait_time": 0.0,
|
||||
"intro_loop": 1
|
||||
}])
|
||||
|
||||
[node name="Ambush举碗小孩" parent="Ground/DeployLayer/举碗小孩" instance=ExtResource("9_nqlku")]
|
||||
@ -212,7 +227,7 @@ trigger_mode = "interact"
|
||||
hook_method = "ambush_begger_interacted"
|
||||
|
||||
[node name="Interactable碗" parent="Ground/DeployLayer/举碗小孩" instance=ExtResource("5_6jrnc")]
|
||||
position = Vector2(0, 55)
|
||||
position = Vector2(0, 53)
|
||||
enabled = false
|
||||
disable_prop_after_interacted = true
|
||||
prop_key = "prop_银元"
|
||||
@ -288,16 +303,8 @@ character = "小小蝶"
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(37, 150, 3050, 150)
|
||||
|
||||
[node name="DirectionalLight2D" parent="Ground" index="8"]
|
||||
[node name="DirectionalLight2D" parent="Ground" index="7"]
|
||||
energy = 0.4
|
||||
blend_mode = 1
|
||||
|
||||
[node name="参考" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
modulate = Color(1, 1, 1, 0.447059)
|
||||
position = Vector2(0, 1)
|
||||
texture = ExtResource("18_0xa0c")
|
||||
centered = false
|
||||
offset = Vector2(0, -159)
|
||||
|
||||
[editable path="Ground"]
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dayyx4jerj7io" path="res://scene/ground/ground.tscn" id="1_71lma"]
|
||||
[ext_resource type="Script" uid="uid://28ujp27cbdh2" path="res://scene/ground/scene/c02/s13_animation.gd" id="2_w5nqu"]
|
||||
[ext_resource type="AudioStream" uid="uid://ccng5y2fip6mc" path="res://asset/audio/sfx/UI/开锁声.mp3" id="3_g6cxj"]
|
||||
[ext_resource type="Texture2D" uid="uid://dweafdywxenu6" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/bg_二楼楼道.png" id="3_miykx"]
|
||||
[ext_resource type="AudioStream" uid="uid://ddii8wvvsifa7" path="res://asset/audio/sfx/交互/第一章/sfx_猫结尾演出.wav" id="3_yywsi"]
|
||||
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_yywsi"]
|
||||
[ext_resource type="AudioStream" uid="uid://b8sbtn3l37uh" path="res://asset/audio/sfx/旧版/c02/红屏.mp3" id="5_yywsi"]
|
||||
[ext_resource type="Texture2D" uid="uid://csrfyvaufo1wb" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/l_瞎子理发店光.png" id="6_gge8e"]
|
||||
@ -25,7 +25,7 @@ script = ExtResource("2_w5nqu")
|
||||
oneshot_animation = ""
|
||||
|
||||
[node name="Sfx结尾演出" type="AudioStreamPlayer" parent="Ground/AnimationPlayer" index="0"]
|
||||
stream = ExtResource("3_g6cxj")
|
||||
stream = ExtResource("3_yywsi")
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("4_yywsi")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
@ -109,7 +109,7 @@ scale = Vector2(1.05, 1.05)
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(37, 150, 870, 150)
|
||||
|
||||
[node name="DirectionalLight2D" parent="Ground" index="8"]
|
||||
[node name="DirectionalLight2D" parent="Ground" index="7"]
|
||||
visible = false
|
||||
blend_mode = 1
|
||||
|
||||
|
15
scene/ground/script/c01/s09_鬼影浮现.gd
Normal file
15
scene/ground/script/c01/s09_鬼影浮现.gd
Normal file
@ -0,0 +1,15 @@
|
||||
extends Node2D
|
||||
|
||||
func _ready() -> void:
|
||||
$Area2D.body_entered.connect(_on_body_entered, CONNECT_ONE_SHOT)
|
||||
|
||||
func _on_body_entered(_b):
|
||||
$"Sfx鬼差浮现".play()
|
||||
var parent = get_parent() as Node2D
|
||||
if parent:
|
||||
SceneManager.pop_debug_dialog_info("特效&音效", "鬼影浮现")
|
||||
var tween = create_tween()
|
||||
tween.tween_property(parent, "modulate", Color.SLATE_GRAY, 1.0)
|
||||
tween.tween_property(parent, "modulate", Color.WHITE, 2.0)
|
||||
|
||||
|
1
scene/ground/script/c01/s09_鬼影浮现.gd.uid
Normal file
1
scene/ground/script/c01/s09_鬼影浮现.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://baok7hk5jygpm
|
@ -50,6 +50,7 @@ func _ready() -> void:
|
||||
)
|
||||
if interacted_x > -10000:
|
||||
remote_node.position = Vector2(interacted_x, area_size.y)
|
||||
# 不再飘动
|
||||
remote_sprite.material = null
|
||||
|
||||
|
||||
@ -78,6 +79,7 @@ func _on_interacted() -> void:
|
||||
func _set_current_x_as_interacted_x() -> void:
|
||||
interacted_x = remote_node.position.x
|
||||
remote_node.position.y = area_size.y
|
||||
# 不再飘动
|
||||
remote_sprite.material = null
|
||||
ArchiveManager.archive.ground_archive().set_pair(name, "interacted_x", interacted_x)
|
||||
if GlobalConfig.DEBUG:
|
||||
|
@ -13,8 +13,8 @@ shader_parameter/center = Vector2(25, 25)
|
||||
shader_parameter/amplitude = 0.15
|
||||
shader_parameter/frequency = 1.5
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_btxl6"]
|
||||
size = Vector2(20, 10)
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ycl7d"]
|
||||
size = Vector2(20, 200)
|
||||
|
||||
[node name="飘动的寻人启事" type="Node2D"]
|
||||
position = Vector2(43, 96)
|
||||
@ -33,18 +33,17 @@ texture = ExtResource("3_dl751")
|
||||
|
||||
[node name="Sign" parent="Node2D" instance=ExtResource("4_5dshd")]
|
||||
unique_name_in_owner = true
|
||||
offset_left = 4.0
|
||||
offset_top = 11.0
|
||||
offset_right = 4.0
|
||||
offset_bottom = 11.0
|
||||
offset_left = -1.0
|
||||
offset_top = -8.0
|
||||
offset_right = -1.0
|
||||
offset_bottom = -8.0
|
||||
|
||||
[node name="Sprite2D" parent="Node2D/Sign/TextureContainer" index="0"]
|
||||
position = Vector2(-50, -250)
|
||||
texture = ExtResource("6_ycl7d")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Node2D"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Node2D/Area2D"]
|
||||
shape = SubResource("RectangleShape2D_btxl6")
|
||||
shape = SubResource("RectangleShape2D_ycl7d")
|
||||
|
||||
[editable path="Node2D/Sign"]
|
||||
|
@ -40,6 +40,10 @@ var down_pressing = false:
|
||||
var crawling = false:
|
||||
set(val):
|
||||
crawling = val
|
||||
if crawling:
|
||||
$"Sfx翻身躲藏".play()
|
||||
else:
|
||||
$"Sfx退出躲藏".play()
|
||||
# print("crawling: ", val)
|
||||
if val != down_pressing:
|
||||
# 执行结束后,如果发现不一致,尝试切换
|
||||
|
@ -1,8 +1,11 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://khwxm5qbfj3k"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://khwxm5qbfj3k"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://xhksp8eu3jqy" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/ux_镂空.png" id="1_tgkyo"]
|
||||
[ext_resource type="Script" uid="uid://ngb7wh7mqo0c" path="res://scene/ground/script/c02/盒子猫canvas_layer.gd" id="1_ygosu"]
|
||||
[ext_resource type="AudioStream" uid="uid://11ob0heie327" path="res://asset/audio/sfx/交互/第一章/sfx_猫躲起来.wav" id="2_8mjri"]
|
||||
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="3_3ukbg"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3es8r30qvxdl" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/ux_盒子猫初始特写.png" id="3_ygosu"]
|
||||
[ext_resource type="AudioStream" uid="uid://7sjwgob6tsu4" path="res://asset/audio/sfx/交互/第一章/sfx_猫退出躲藏.wav" id="4_0rwiy"]
|
||||
[ext_resource type="Texture2D" uid="uid://tcjm158n8hnw" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/小脚脚印.png" id="4_bc5tk"]
|
||||
[ext_resource type="Texture2D" uid="uid://ccfbubistf0ov" path="res://asset/art/scene/c02/s12_to_s17_盒子猫/ux_镂空_纸.png" id="5_l6g3a"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbql1i4hblmt1" path="res://asset/art/ui/prop/特写通用遮罩.png" id="6_aeggu"]
|
||||
@ -13,6 +16,18 @@
|
||||
layer = 0
|
||||
script = ExtResource("1_ygosu")
|
||||
|
||||
[node name="Sfx翻身躲藏" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_8mjri")
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("3_3ukbg")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
|
||||
[node name="Sfx退出躲藏" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("4_0rwiy")
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("3_3ukbg")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
|
||||
[node name="FrameGray" type="TextureRect" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
@ -176,7 +176,10 @@ func do_catch(front: bool):
|
||||
else:
|
||||
# 其次 catch_nearby 播放 猪头怪抓盒子猫后段
|
||||
sprite2d.play("猪头怪抓盒子猫后段")
|
||||
# TODO 音效
|
||||
# 被抓音效
|
||||
get_tree().create_timer(0.5).timeout.connect($"Sfx猫被抓".play)
|
||||
# 呼吸声渐隐
|
||||
$"Sfx喘气".easing_kill()
|
||||
SceneManager.pop_debug_dialog_info("音效", "抓取过程。 从捡小猫开始=" + str(front))
|
||||
await sprite2d.animation_finished
|
||||
# 等待动画播放后秒,再检查是否允许重开游戏
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dewbg4phd8c17"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dewbg4phd8c17"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://tn7sfe0qmix2" path="res://scene/ground/script/c02/追猫猪头怪.gd" id="1_lrjfo"]
|
||||
[ext_resource type="Script" uid="uid://wapo47a1oddf" path="res://scene/entity/audio/sfx2d.gd" id="2_35vtd"]
|
||||
@ -6,6 +6,7 @@
|
||||
[ext_resource type="AudioStream" uid="uid://0pm6s7jdo5ca" path="res://asset/audio/sfx/脚步/sfx_猪头走路2.wav" id="3_q3g2s"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://b85gyfhk1mg6r" path="res://asset/art/gif/c02_盒子猫/c02_盒子猫_frames.tres" id="4_3sbui"]
|
||||
[ext_resource type="AudioStream" uid="uid://dkadc7ewletgn" path="res://asset/audio/sfx/交互/第一章/sfx_猪头喘气.wav" id="4_3ypo7"]
|
||||
[ext_resource type="AudioStream" uid="uid://br4a2mjkj8odm" path="res://asset/audio/sfx/交互/第一章/sfx_猫被抓住.wav" id="6_q3g2s"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_3sbui"]
|
||||
playback_mode = 1
|
||||
@ -34,6 +35,14 @@ script = ExtResource("2_35vtd")
|
||||
loop = true
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="Sfx猫被抓" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("6_q3g2s")
|
||||
max_distance = 800.0
|
||||
attenuation = 1.7411
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("2_35vtd")
|
||||
metadata/_custom_type_script = "uid://wapo47a1oddf"
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
z_index = 20
|
||||
sprite_frames = ExtResource("4_3sbui")
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=45 format=3 uid="uid://bl5pohc77hi43"]
|
||||
[gd_scene load_steps=46 format=3 uid="uid://bl5pohc77hi43"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cyyku6caspu01" path="res://scene/little_game/书架/生死簿.gd" id="1_wipr2"]
|
||||
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="3_40hbj"]
|
||||
@ -10,6 +10,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://cc8117h1lfo1n" path="res://asset/art/little_game/书架_生死簿/生死簿摊开特写 人名.png" id="5_qhrv2"]
|
||||
[ext_resource type="Texture2D" uid="uid://cl7byobu28rsb" path="res://asset/art/little_game/书架_生死簿/生死簿摊开特写 印章.png" id="6_ujwqa"]
|
||||
[ext_resource type="Texture2D" uid="uid://vqq1hnf2yfat" path="res://asset/art/little_game/书架_生死簿/生死簿摊开 陆小蝶名.png" id="7_hohup"]
|
||||
[ext_resource type="AudioStream" uid="uid://htiqqwwf5j6k" path="res://asset/audio/sfx/game/序章/sfx_生死簿演出.wav" id="10_40hbj"]
|
||||
[ext_resource type="AudioStream" uid="uid://chq7h1f81gnvw" path="res://asset/audio/sfx/交互/序章/04_书店内_生死簿名字出现.wav" id="10_adstd"]
|
||||
[ext_resource type="AudioStream" uid="uid://bcqwb4tfbdxh2" path="res://asset/audio/sfx/交互/序章/04_书店内_鬼差哈气.wav" id="11_adstd"]
|
||||
[ext_resource type="Texture2D" uid="uid://0poy0g6717bt" path="res://asset/art/little_game/书架_生死簿/生死簿摊开特写 四个名字.png" id="12_adstd"]
|
||||
@ -409,6 +410,11 @@ libraries = {
|
||||
&"": SubResource("AnimationLibrary_7rw5g")
|
||||
}
|
||||
|
||||
[node name="Sfx生死簿演出" type="AudioStreamPlayer" parent="Control/页面/陆小蝶"]
|
||||
stream = ExtResource("10_40hbj")
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("3_40hbj")
|
||||
|
||||
[node name="SfxStamp" type="AudioStreamPlayer" parent="Control/页面/陆小蝶"]
|
||||
stream = ExtResource("10_adstd")
|
||||
bus = &"game_sfx"
|
||||
|
@ -15,7 +15,9 @@ func play() -> void:
|
||||
# tween.parallel().tween_property(get_parent(), "modulate", final_modulate, 12.0)
|
||||
tween = create_tween()
|
||||
# 在小蝶名字消失的末尾(还没完全消失),开始盖章
|
||||
tween.tween_interval(4.5)
|
||||
tween.tween_interval(1.5)
|
||||
tween.tween_callback($"Sfx生死簿演出".play)
|
||||
tween.tween_interval(3)
|
||||
# 小蝶名字消失后再显示其他名字
|
||||
var interval = 1.0
|
||||
# var interval = 0.1 # 很快,测试用
|
||||
@ -74,10 +76,8 @@ func _jump_scare():
|
||||
|
||||
# 闪烁
|
||||
$AnimationPlayer.play("flash")
|
||||
|
||||
# TODO 哈气
|
||||
SceneManager.pop_debug_dialog_info("音效", "突然哈气")
|
||||
$"SfxScare".play()
|
||||
# $"SfxScare".play()
|
||||
|
||||
|
||||
func _stamp_seal(seal: Sprite2D) -> void:
|
||||
@ -91,7 +91,7 @@ func _stamp_seal(seal: Sprite2D) -> void:
|
||||
# randf_range(-area_size.y * 0.5, area_size.y * 0.5)
|
||||
# )
|
||||
# stamp
|
||||
$"SfxStamp".play()
|
||||
# $"SfxStamp".play()
|
||||
# show
|
||||
seal.visible = true
|
||||
var origin_scale = seal.scale
|
||||
|
Loading…
Reference in New Issue
Block a user