2024-04-14 05:46:06 +00:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://dijcjahkddudv"]
|
2024-04-14 04:26:14 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://behaviours/draggable.gd" id="1_hdedq"]
|
2024-04-14 05:46:06 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bvrxvrjlo5130" path="res://behaviours/move_towards_mouse.tscn" id="2_gi6xd"]
|
2024-04-14 04:26:14 +00:00
|
|
|
|
2024-04-14 05:21:24 +00:00
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_vkph8"]
|
|
|
|
radius = 8.0
|
|
|
|
|
|
|
|
[node name="Draggable" type="Area2D"]
|
2024-04-14 18:56:18 +00:00
|
|
|
collision_layer = 0
|
|
|
|
collision_mask = 0
|
2024-04-14 04:26:14 +00:00
|
|
|
script = ExtResource("1_hdedq")
|
2024-04-14 05:21:24 +00:00
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource("CircleShape2D_vkph8")
|
|
|
|
debug_color = Color(1, 1, 1, 0)
|
2024-04-14 05:46:06 +00:00
|
|
|
|
|
|
|
[node name="MatchMousePosition" parent="." instance=ExtResource("2_gi6xd")]
|
|
|
|
scale = Vector2(10000, 10000)
|
2024-04-14 16:10:31 +00:00
|
|
|
speed = 3600.0
|
2024-04-14 05:46:06 +00:00
|
|
|
|
|
|
|
[connection signal="move" from="MatchMousePosition" to="." method="_on_move"]
|