1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-28 19:14:23 +00:00
hella-farm/behaviours/collectable.tscn

20 lines
656 B
Text
Raw Normal View History

[gd_scene load_steps=3 format=3 uid="uid://dj72yshd25ucx"]
[ext_resource type="Script" path="res://behaviours/collectable.gd" id="1_p0pc3"]
[sub_resource type="CircleShape2D" id="CircleShape2D_su28r"]
radius = 16.0
[node name="Collectable" type="Node2D"]
script = ExtResource("1_p0pc3")
[node name="MouseArea" type="Area2D" parent="."]
collision_mask = 0
monitorable = false
[node name="Shape" type="CollisionShape2D" parent="MouseArea"]
shape = SubResource("CircleShape2D_su28r")
[connection signal="collected" from="." to="." method="_on_collected"]
[connection signal="mouse_entered" from="MouseArea" to="." method="_on_mouse_area_mouse_entered"]