From a0c5063fbc0f7f4f1205a58f764995243d800184 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 15 Apr 2024 06:48:35 +0700 Subject: sfx, tutorial, polish --- Reusable Scenes/number_node.tscn | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Reusable Scenes/number_node.tscn') diff --git a/Reusable Scenes/number_node.tscn b/Reusable Scenes/number_node.tscn index ed5de58..74e5559 100644 --- a/Reusable Scenes/number_node.tscn +++ b/Reusable Scenes/number_node.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=8 format=3 uid="uid://ccvoi0qmvlxmj"] +[gd_scene load_steps=10 format=3 uid="uid://ccvoi0qmvlxmj"] [ext_resource type="Script" path="res://Scripts/NumberNode.gd" id="1_7p1bu"] [ext_resource type="Script" path="res://Scripts/NumberArea.gd" id="3_2viuw"] [ext_resource type="Texture2D" uid="uid://4kqj3gk42j8w" path="res://Assets/Visuals/circle.png" id="3_bqdxd"] +[ext_resource type="AudioStream" uid="uid://c5moab0afjpet" path="res://Assets/Audio/score.wav" id="4_flqws"] +[ext_resource type="AudioStream" uid="uid://de7t4ivimmxdi" path="res://Assets/Audio/ouch.wav" id="5_peh70"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ld6aj"] size = Vector2(44, 46) @@ -83,5 +85,11 @@ text = "X" horizontal_alignment = 1 vertical_alignment = 1 +[node name="Score" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("4_flqws") + +[node name="Ouch" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("5_peh70") + [connection signal="mouse_entered" from="NumberArea2D" to="NumberArea2D" method="_on_mouse_entered"] [connection signal="mouse_exited" from="NumberArea2D" to="NumberArea2D" method="_on_mouse_exited"] -- cgit v1.2.3