aboutsummaryrefslogtreecommitdiff
path: root/collectables/Apple.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'collectables/Apple.tscn')
-rw-r--r--collectables/Apple.tscn8
1 files changed, 7 insertions, 1 deletions
diff --git a/collectables/Apple.tscn b/collectables/Apple.tscn
index 681e6ce..21cca67 100644
--- a/collectables/Apple.tscn
+++ b/collectables/Apple.tscn
@@ -1,7 +1,8 @@
-[gd_scene load_steps=6 format=2]
+[gd_scene load_steps=7 format=2]
[ext_resource path="res://collectables/Apple.png" type="Texture" id=1]
[ext_resource path="res://collectables/Apple.gd" type="Script" id=2]
+[ext_resource path="res://sfx/coin.wav" type="AudioStream" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 6, 7 )
@@ -55,4 +56,9 @@ playback_speed = 64.0
anims/RESET = SubResource( 2 )
anims/idle = SubResource( 3 )
+[node name="pickup" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource( 3 )
+
[connection signal="body_entered" from="Sprite/Area2D" to="." method="_on_Area2D_body_entered"]
+[connection signal="body_exited" from="Sprite/Area2D" to="." method="_on_Area2D_body_exited"]
+[connection signal="finished" from="pickup" to="." method="_on_pickup_finished"]