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

19 lines
637 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="."]
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"]