Sound effects
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://cc5j50rtwlfld"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://cc5j50rtwlfld"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://3gn70ilm20tw" path="res://Game/Traps/traps.gd" id="1_3ht3o"]
|
||||
[ext_resource type="Texture2D" uid="uid://ri5c5u8gbjde" path="res://Assets/Traps/Wall/Tile2_49.png" id="1_y07rg"]
|
||||
[ext_resource type="Texture2D" uid="uid://b5wu41w5yjr25" path="res://Assets/Traps/Wall/Tile2_57.png" id="2_3ht3o"]
|
||||
[ext_resource type="AudioStream" uid="uid://b7dapvstdrckw" path="res://Assets/Sounds/wall impact.mp3" id="4_bxxpj"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bxxpj"]
|
||||
size = Vector2(22.5, 75)
|
||||
@ -75,6 +76,9 @@ position = Vector2(0, 2)
|
||||
shape = SubResource("RectangleShape2D_xk2lx")
|
||||
debug_color = Color(0.811824, 0.00210331, 0.983083, 0.42)
|
||||
|
||||
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("4_bxxpj")
|
||||
|
||||
[connection signal="body_shape_entered" from="CharacterBody2D/Area2D" to="." method="_on_area_2d_body_shape_entered"]
|
||||
[connection signal="body_shape_exited" from="CharacterBody2D/Area2D" to="." method="_on_area_2d_body_shape_exited"]
|
||||
[connection signal="timeout" from="CharacterBody2D/Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user