2024-07-25 16:26:18 +00:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://524sv8spw6go"]
|
2024-07-25 12:08:44 +00:00
|
|
|
|
2024-07-25 14:36:40 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://q1rdbr8uh78r" path="res://textures/cursor_default.tres" id="1_50ts1"]
|
2024-07-26 21:13:59 +00:00
|
|
|
[ext_resource type="Script" path="res://core/Cursor.gd" id="1_b5uuj"]
|
2024-07-25 16:26:18 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bdstohvc7pvot" path="res://textures/cursor_click.tres" id="1_h0do2"]
|
2024-07-25 14:36:40 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://buxws7r3kn0d7" path="res://textures/cursor_grab_01.tres" id="3_fj3w4"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://pbahcjllgjjq" path="res://textures/cursor_grab_02.tres" id="4_153q8"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://6fajq480n7se" path="res://textures/cursor_grab_03.tres" id="5_tsejy"]
|
2024-07-25 12:08:44 +00:00
|
|
|
|
2024-07-25 14:36:40 +00:00
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_u3xkr"]
|
|
|
|
resource_local_to_scene = true
|
|
|
|
animations = [{
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
2024-07-25 16:26:18 +00:00
|
|
|
"texture": ExtResource("1_h0do2")
|
|
|
|
}],
|
2024-07-27 14:30:15 +00:00
|
|
|
"loop": false,
|
2024-07-25 16:26:18 +00:00
|
|
|
"name": &"click",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
2024-07-25 14:36:40 +00:00
|
|
|
"texture": ExtResource("1_50ts1")
|
|
|
|
}],
|
2024-07-27 14:30:15 +00:00
|
|
|
"loop": false,
|
2024-07-25 14:36:40 +00:00
|
|
|
"name": &"default",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": ExtResource("3_fj3w4")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": ExtResource("4_153q8")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": ExtResource("5_tsejy")
|
|
|
|
}],
|
|
|
|
"loop": false,
|
|
|
|
"name": &"grab",
|
|
|
|
"speed": 7.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": ExtResource("3_fj3w4")
|
|
|
|
}],
|
2024-07-27 14:30:15 +00:00
|
|
|
"loop": false,
|
2024-07-25 14:36:40 +00:00
|
|
|
"name": &"grab_intro",
|
|
|
|
"speed": 5.0
|
|
|
|
}]
|
2024-07-25 12:08:44 +00:00
|
|
|
|
|
|
|
[node name="Cursor" type="Node2D"]
|
|
|
|
top_level = true
|
2024-07-30 10:20:08 +00:00
|
|
|
z_index = 100
|
2024-07-26 21:13:59 +00:00
|
|
|
script = ExtResource("1_b5uuj")
|
2024-07-25 12:08:44 +00:00
|
|
|
|
2024-07-25 14:36:40 +00:00
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
scale = Vector2(1.5, 1.5)
|
|
|
|
sprite_frames = SubResource("SpriteFrames_u3xkr")
|
2024-07-25 12:08:44 +00:00
|
|
|
centered = false
|
2024-07-25 14:36:40 +00:00
|
|
|
offset = Vector2(-80, -190)
|
2024-07-26 14:23:27 +00:00
|
|
|
|
|
|
|
[node name="GrabTimer" type="Timer" parent="."]
|
2024-07-30 16:09:44 +00:00
|
|
|
wait_time = 0.3
|
2024-07-26 21:13:59 +00:00
|
|
|
one_shot = true
|
2024-07-26 14:23:27 +00:00
|
|
|
|
2024-07-27 14:30:15 +00:00
|
|
|
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]
|
2024-07-26 14:23:27 +00:00
|
|
|
[connection signal="timeout" from="GrabTimer" to="." method="_on_grab_timer_timeout"]
|