1- [gd_scene load_steps =33 format =3 uid ="uid://fvdldxg5au17" ]
1+ [gd_scene load_steps =37 format =3 uid ="uid://fvdldxg5au17" ]
22
33[ext_resource type ="Texture2D" uid ="uid://blq8smrhpgtpj" path ="res://game-06/graphics/graphics.png" id ="1_og0d8" ]
44[ext_resource type ="Texture2D" uid ="uid://djqy6w0vissy2" path ="res://game-06/graphics/glow.png" id ="2_p4myk" ]
99[ext_resource type ="Script" path ="res://addons/block_code/serialization/block_script_serialization.gd" id ="7_qi5iu" ]
1010[ext_resource type ="Script" path ="res://addons/block_code/code_generation/variable_definition.gd" id ="8_vi8nk" ]
1111
12- [sub_resource type ="Resource" id ="Resource_5xqg4 " ]
12+ [sub_resource type ="Resource" id ="Resource_2wbve " ]
1313script = ExtResource ("6_mye12" )
1414name = &"area2d_on_entered:something"
1515arguments = {}
1616
17- [sub_resource type ="Resource" id ="Resource_valxk " ]
17+ [sub_resource type ="Resource" id ="Resource_54nqn " ]
1818script = ExtResource ("6_mye12" )
1919name = &"is_node_in_group"
2020arguments = {
2121"group" : "Ship" ,
22- "node" : SubResource ("Resource_5xqg4 " )
22+ "node" : SubResource ("Resource_2wbve " )
2323}
2424
25- [sub_resource type ="Resource" id ="Resource_7gne3 " ]
25+ [sub_resource type ="Resource" id ="Resource_gghg0 " ]
2626script = ExtResource ("5_yr5t4" )
2727name = &"call_method_group"
2828children = Array[ExtResource ("5_yr5t4" )]([])
@@ -31,45 +31,75 @@ arguments = {
3131"method_name" : "increase_score"
3232}
3333
34- [sub_resource type ="Resource" id ="Resource_0dcx1 " ]
34+ [sub_resource type ="Resource" id ="Resource_0lkm3 " ]
3535script = ExtResource ("6_mye12" )
3636name = &"get_node"
3737arguments = {
3838"path" : NodePath ("../AnimationPlayer" )
3939}
4040
41- [sub_resource type ="Resource" id ="Resource_k7tdt " ]
41+ [sub_resource type ="Resource" id ="Resource_88rbs " ]
4242script = ExtResource ("5_yr5t4" )
4343name = &"call_method_node"
4444children = Array[ExtResource ("5_yr5t4" )]([])
4545arguments = {
4646"method_name" : "play_taken" ,
47- "node" : SubResource ("Resource_0dcx1 " )
47+ "node" : SubResource ("Resource_0lkm3 " )
4848}
4949
50- [sub_resource type ="Resource" id ="Resource_7udox" ]
50+ [sub_resource type ="Resource" id ="Resource_4xsc8" ]
51+ script = ExtResource ("5_yr5t4" )
52+ name = &"play_sound"
53+ children = Array[ExtResource ("5_yr5t4" )]([])
54+ arguments = {
55+ "db" : 0.0 ,
56+ "name" : "Ding" ,
57+ "pitch" : 1.0
58+ }
59+
60+ [sub_resource type ="Resource" id ="Resource_sqbea" ]
5161script = ExtResource ("5_yr5t4" )
5262name = &"if"
53- children = Array[ExtResource ("5_yr5t4" )]([SubResource ("Resource_7gne3 " ), SubResource ("Resource_k7tdt " )])
63+ children = Array[ExtResource ("5_yr5t4" )]([SubResource ("Resource_gghg0 " ), SubResource ("Resource_88rbs" ), SubResource ( "Resource_4xsc8 " )])
5464arguments = {
55- "condition" : SubResource ("Resource_valxk " )
65+ "condition" : SubResource ("Resource_54nqn " )
5666}
5767
58- [sub_resource type ="Resource" id ="Resource_rhpn1 " ]
68+ [sub_resource type ="Resource" id ="Resource_8sciy " ]
5969script = ExtResource ("5_yr5t4" )
6070name = &"area2d_on_entered"
61- children = Array[ExtResource ("5_yr5t4" )]([SubResource ("Resource_7udox " )])
71+ children = Array[ExtResource ("5_yr5t4" )]([SubResource ("Resource_sqbea " )])
6272arguments = {}
6373
64- [sub_resource type ="Resource" id ="Resource_hf26b " ]
74+ [sub_resource type ="Resource" id ="Resource_pni3d " ]
6575script = ExtResource ("4_xb1ij" )
66- root = SubResource ("Resource_rhpn1 " )
76+ root = SubResource ("Resource_8sciy " )
6777canvas_position = Vector2 (75 , 100 )
6878
79+ [sub_resource type ="Resource" id ="Resource_2vwen" ]
80+ script = ExtResource ("5_yr5t4" )
81+ name = &"load_sound"
82+ children = Array[ExtResource ("5_yr5t4" )]([])
83+ arguments = {
84+ "file_path" : "res://game-06/Sounds/Ding.ogg" ,
85+ "name" : "Ding"
86+ }
87+
88+ [sub_resource type ="Resource" id ="Resource_lhmd8" ]
89+ script = ExtResource ("5_yr5t4" )
90+ name = &"ready"
91+ children = Array[ExtResource ("5_yr5t4" )]([SubResource ("Resource_2vwen" )])
92+ arguments = {}
93+
94+ [sub_resource type ="Resource" id ="Resource_s1kdp" ]
95+ script = ExtResource ("4_xb1ij" )
96+ root = SubResource ("Resource_lhmd8" )
97+ canvas_position = Vector2 (350 , 625 )
98+
6999[sub_resource type ="Resource" id ="Resource_1tgsl" ]
70100script = ExtResource ("7_qi5iu" )
71101script_inherits = "Area2D"
72- block_serialization_trees = Array[ExtResource ("4_xb1ij" )]([SubResource ("Resource_hf26b " )])
102+ block_serialization_trees = Array[ExtResource ("4_xb1ij" )]([SubResource ("Resource_pni3d" ), SubResource ( "Resource_s1kdp " )])
73103variables = Array[ExtResource ("8_vi8nk" )]([])
74104generated_script = "extends Area2D
75105
@@ -82,6 +112,18 @@ func _on_body_entered(something: Node2D):
82112 if ((something).is_in_group('Ship')):
83113 get_tree().call_group('Score', 'increase_score')
84114 (get_node(\" ../AnimationPlayer\" )).call('play_taken')
115+ var __sound_node_1 = get_node('Ding')
116+ __sound_node_1.volume_db = 0
117+ __sound_node_1.pitch_scale = 1
118+ __sound_node_1.play()
119+
120+
121+ func _ready():
122+ var __sound_1 = AudioStreamPlayer.new()
123+ __sound_1.name = 'Ding'
124+ __sound_1.set_stream(load('res://game-06/Sounds/Ding.ogg'))
125+ add_child(__sound_1)
126+
85127
86128"
87129version = 0
0 commit comments