diff --git a/Scenes/Weapons/Bullets/Nuclear_Bullet.tscn b/Scenes/Weapons/Bullets/Nuclear_Bullet.tscn index 0f239d3b..9ba57ebd 100644 --- a/Scenes/Weapons/Bullets/Nuclear_Bullet.tscn +++ b/Scenes/Weapons/Bullets/Nuclear_Bullet.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=47 format=3 uid="uid://b23lyiq42kvrr"] +[gd_scene load_steps=49 format=3 uid="uid://b23lyiq42kvrr"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_gvb0k"] [ext_resource type="Texture2D" uid="uid://4dfuib4wce7n" path="res://Sprites/Bullets/Nuclear_Bullet.png" id="2_oarhb"] [ext_resource type="Texture2D" uid="uid://2patpgtpyg5q" path="res://Sprites/Bullets/Nuclear_Bullet_2.png" id="3_uqai3"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="4_7m7f4"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="5_axb8f"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -328,6 +330,10 @@ autoplay = "default" frame = 24 frame_progress = 1.0 +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("4_7m7f4")] + +[node name="GrazeParticles" parent="." instance=ExtResource("5_axb8f")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_green.tscn b/Scenes/Weapons/Bullets/enemyBullet_green.tscn index e5bc1b63..0f8d8abe 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_green.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_green.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://dohakkayqj4w2"] +[gd_scene load_steps=6 format=3 uid="uid://dohakkayqj4w2"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_vg1kg"] [ext_resource type="Texture2D" uid="uid://dmwi86k7hr8sl" path="res://Sprites/Bullets/small_bullet_green.png" id="2_divgu"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_dekxs"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_jk3ii"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -11,7 +13,6 @@ collision_layer = 128 collision_mask = 71 script = ExtResource("1_vg1kg") Speed = 200.0 -Owner = 2 metadata/_edit_group_ = true [node name="Sprite2D" type="Sprite2D" parent="."] @@ -25,6 +26,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_dekxs")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_jk3ii")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_mid.tscn b/Scenes/Weapons/Bullets/enemyBullet_mid.tscn index e3c0bd7c..499e792d 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_mid.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_mid.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://b0clsnefjsohc"] +[gd_scene load_steps=6 format=3 uid="uid://b0clsnefjsohc"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_w5w28"] [ext_resource type="Texture2D" uid="uid://c4ijhpgbwmbr8" path="res://Sprites/Bullets/mid_bullet.png" id="2_5gscp"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_r8kni"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_nx8mj"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 4.0 @@ -24,6 +26,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_r8kni")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_nx8mj")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_mid_blue.tscn b/Scenes/Weapons/Bullets/enemyBullet_mid_blue.tscn index f21e783b..aaa42b6d 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_mid_blue.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_mid_blue.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://dre2wvw4pa3hc"] +[gd_scene load_steps=6 format=3 uid="uid://dre2wvw4pa3hc"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_p8khg"] [ext_resource type="Texture2D" uid="uid://dooyhu8vt63vm" path="res://Sprites/Bullets/mid_bullet_blue.png" id="2_0v242"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_5tcdn"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_68y57"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -21,6 +23,10 @@ shape = SubResource("CircleShape2D_jxptd") [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_5tcdn")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_68y57")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_mid_blue_laser.tscn b/Scenes/Weapons/Bullets/enemyBullet_mid_blue_laser.tscn index 6d9a8907..7cd40a92 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_mid_blue_laser.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_mid_blue_laser.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://djro6xmsq7kqk"] +[gd_scene load_steps=6 format=3 uid="uid://djro6xmsq7kqk"] [ext_resource type="Script" uid="uid://b4y4rc3s0sro8" path="res://Scripts/Weapons/LaserBullet.cs" id="1_uu40b"] [ext_resource type="Texture2D" uid="uid://dooyhu8vt63vm" path="res://Sprites/Bullets/mid_bullet_blue.png" id="2_yy4q5"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_13vv4"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_0jj1p"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -20,6 +22,10 @@ shape = SubResource("CircleShape2D_jxptd") [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_13vv4")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_0jj1p")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_mid_red.tscn b/Scenes/Weapons/Bullets/enemyBullet_mid_red.tscn index 283d266b..2aad289d 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_mid_red.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_mid_red.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://bi3f14klscvlw"] +[gd_scene load_steps=6 format=3 uid="uid://bi3f14klscvlw"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_jnw2a"] [ext_resource type="Texture2D" uid="uid://cfldr7l7dearo" path="res://Sprites/Bullets/mid_bullet_red.png" id="2_4q6eb"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_1ntfi"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_q1b4v"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -21,6 +23,10 @@ shape = SubResource("CircleShape2D_jxptd") [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_1ntfi")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_q1b4v")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_rice_blue_small.tscn b/Scenes/Weapons/Bullets/enemyBullet_rice_blue_small.tscn index 0161f25c..9992b8fb 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_rice_blue_small.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_rice_blue_small.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://dh81snen2f6bf"] +[gd_scene load_steps=6 format=3 uid="uid://dh81snen2f6bf"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_xe3ca"] [ext_resource type="Texture2D" uid="uid://wdw60fumilgh" path="res://Sprites/Bullets/rice_bullet_blue_small.png" id="2_4jjan"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_h4m3j"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_gyu6b"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -24,6 +26,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_h4m3j")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_gyu6b")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_rice_green_small.tscn b/Scenes/Weapons/Bullets/enemyBullet_rice_green_small.tscn index bd46de99..fc056886 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_rice_green_small.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_rice_green_small.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://ctrk5qrb7n3fm"] +[gd_scene load_steps=6 format=3 uid="uid://ctrk5qrb7n3fm"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_uru3f"] [ext_resource type="Texture2D" uid="uid://dtgfe64ck2aey" path="res://Sprites/Bullets/rice_bullet_green_small.png" id="2_vmwwc"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_xspyh"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_l2qca"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -24,6 +26,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_xspyh")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_l2qca")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_rice_red_small.tscn b/Scenes/Weapons/Bullets/enemyBullet_rice_red_small.tscn index e1dbc9f0..bfce2a16 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_rice_red_small.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_rice_red_small.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://chowj81jsdvcx"] +[gd_scene load_steps=6 format=3 uid="uid://chowj81jsdvcx"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_hv0hc"] [ext_resource type="Texture2D" uid="uid://iwbak4pr67rw" path="res://Sprites/Bullets/rice_bullet_red_small.png" id="2_8uxgg"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_dyn43"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_yjam7"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -24,6 +26,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_dyn43")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_yjam7")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_rice_yellow.tscn b/Scenes/Weapons/Bullets/enemyBullet_rice_yellow.tscn index 1e588faf..797c1a81 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_rice_yellow.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_rice_yellow.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://ck6f08w1fy5fa"] +[gd_scene load_steps=6 format=3 uid="uid://ck6f08w1fy5fa"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_kfw6r"] [ext_resource type="Texture2D" uid="uid://bckdbxo607h5n" path="res://Sprites/Bullets/rice_bullet_yellow.png" id="2_3q3kk"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_3lkxb"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_uo6av"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -24,6 +26,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_3lkxb")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_uo6av")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_rice_yellow_small.tscn b/Scenes/Weapons/Bullets/enemyBullet_rice_yellow_small.tscn index d0875ed3..e32a91a4 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_rice_yellow_small.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_rice_yellow_small.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://dbcj1u77spk6p"] +[gd_scene load_steps=6 format=3 uid="uid://dbcj1u77spk6p"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_bf0hd"] [ext_resource type="Texture2D" uid="uid://dmr20ogxne6ee" path="res://Sprites/Bullets/rice_bullet_yellow_small.png" id="2_xwssn"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_ofbqc"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_0wean"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -24,6 +26,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_ofbqc")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_0wean")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_star_yellow.tscn b/Scenes/Weapons/Bullets/enemyBullet_star_yellow.tscn index b58ab9bb..e59b558e 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_star_yellow.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_star_yellow.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://c034favdy56p0"] +[gd_scene load_steps=6 format=3 uid="uid://c034favdy56p0"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_l1hs7"] [ext_resource type="Texture2D" uid="uid://bqunl602ko6b7" path="res://Sprites/Bullets/start_bullet_yellow_small.png" id="2_wvl35"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_dafid"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_wpiad"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -24,6 +26,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_dafid")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_wpiad")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/Weapons/Bullets/enemyBullet_yellow.tscn b/Scenes/Weapons/Bullets/enemyBullet_yellow.tscn index 0ab1e554..89d4d3b7 100644 --- a/Scenes/Weapons/Bullets/enemyBullet_yellow.tscn +++ b/Scenes/Weapons/Bullets/enemyBullet_yellow.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://by2rk6gx67f7e"] +[gd_scene load_steps=6 format=3 uid="uid://by2rk6gx67f7e"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_hd5v3"] [ext_resource type="Texture2D" uid="uid://s5argltaljmq" path="res://Sprites/Bullets/small_bullet_yellow.png" id="2_c3vqu"] +[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_afm0r"] +[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_gwy7w"] [sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"] radius = 2.23607 @@ -11,7 +13,6 @@ collision_layer = 128 collision_mask = 71 script = ExtResource("1_hd5v3") Speed = 200.0 -Owner = 2 metadata/_edit_group_ = true [node name="Sprite2D" type="Sprite2D" parent="."] @@ -22,6 +23,10 @@ shape = SubResource("CircleShape2D_jxptd") [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_afm0r")] + +[node name="GrazeParticles" parent="." instance=ExtResource("4_gwy7w")] + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]