1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-12-01 12:34:21 +00:00
hella-farm/scenes/game/cursor_magnet.tscn

26 lines
950 B
Text
Raw Normal View History

[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"]
collision_layer = 64
collision_mask = 8
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"]