feat: add music to the main scene and sfx for the npcs;

This commit is contained in:
2026-09-20 17:04:57 +02:00
parent 77214d4723
commit a528943b91
3 changed files with 18 additions and 0 deletions
+2
View File
@@ -9,6 +9,8 @@ func _process(delta: float) -> void:
if $CanvasLayer.visible == false:
$CanvasLayer.visible = true
get_tree().paused = true
$Greeting.play()
else:
$CanvasLayer.visible = false
get_tree().paused = false
$Goodbye.play()
+8
View File
@@ -4,6 +4,8 @@
[ext_resource type="Script" uid="uid://b54jmbhu1hrbt" path="res://Scenes/NPC/npc.gd" id="1_bjna2"]
[ext_resource type="Texture2D" uid="uid://ctpnixa3dpms5" path="res://Ninja Adventure - Asset Pack/Ui/Dialog/DialogBoxFaceset.png" id="3_0s07e"]
[ext_resource type="Texture2D" uid="uid://cn881vxquv6ub" path="res://Ninja Adventure - Asset Pack/Actor/Characters/NinjaBlue/Faceset.png" id="4_aqj1y"]
[ext_resource type="AudioStream" uid="uid://q2f6qp5cd467" path="res://Ninja Adventure - Asset Pack/Sounds/Game/Voice1.wav" id="5_n8r46"]
[ext_resource type="AudioStream" uid="uid://kxkws5kmf3ru" path="res://Ninja Adventure - Asset Pack/Sounds/Game/Voice4.wav" id="6_fqw72"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_chgu2"]
size = Vector2(14, 13)
@@ -66,3 +68,9 @@ offset_right = 270.0
offset_bottom = 458.0
text = "Blue Ninja"
label_settings = SubResource("LabelSettings_chgu2")
[node name="Greeting" type="AudioStreamPlayer2D" parent="." unique_id=599558903]
stream = ExtResource("5_n8r46")
[node name="Goodbye" type="AudioStreamPlayer2D" parent="." unique_id=712774027]
stream = ExtResource("6_fqw72")