2024-04-14 05:46:06 +00:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://7j1b55t8tafg"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scenes/game/cursor_magnet.gd" id="1_xk040"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bvrxvrjlo5130" path="res://behaviours/move_towards_mouse.tscn" id="2_ljil3"]
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_6mkjn"]
|
|
|
|
radius = 16.0
|
|
|
|
|
|
|
|
[node name="CursorMagnet" type="Area2D"]
|
2024-04-14 19:02:08 +00:00
|
|
|
collision_layer = 64
|
|
|
|
collision_mask = 8
|
2024-04-14 05:46:06 +00:00
|
|
|
script = ExtResource("1_xk040")
|
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
shape = SubResource("CircleShape2D_6mkjn")
|
|
|
|
debug_color = Color(1, 1, 1, 0.67451)
|
|
|
|
|
|
|
|
[node name="MoveTowardsMouse" parent="." instance=ExtResource("2_ljil3")]
|
|
|
|
scale = Vector2(10000, 10000)
|
|
|
|
speed = 100000.0
|
|
|
|
|
|
|
|
[connection signal="dragged" from="." to="." method="_on_dragged"]
|
|
|
|
[connection signal="dropped" from="." to="." method="_on_dropped"]
|
|
|
|
[connection signal="move" from="MoveTowardsMouse" to="." method="_on_move"]
|