ld56/Scenes/Button/button.tscn

166 lines
4.4 KiB
Plaintext
Raw Normal View History

2024-10-06 17:38:16 +00:00
[gd_scene load_steps=18 format=3 uid="uid://bhvihrt8dipll"]
2024-10-05 10:39:19 +00:00
[ext_resource type="Script" path="res://Scenes/Button/button.gd" id="1_fkyus"]
2024-10-06 17:38:16 +00:00
[ext_resource type="Texture2D" uid="uid://cmnangp78o1y6" path="res://Assets/Buttons/IMG_3394.png" id="2_jyhi7"]
[ext_resource type="Texture2D" uid="uid://8ce1ggql35ki" path="res://Assets/Buttons/IMG_3403.png" id="3_1lg6b"]
[ext_resource type="Texture2D" uid="uid://e40ep7k06vl7" path="res://Assets/Buttons/IMG_3395.png" id="4_ho636"]
[ext_resource type="Texture2D" uid="uid://cdilvc7bopjtg" path="res://Assets/Buttons/IMG_3393.png" id="5_wgvcg"]
[ext_resource type="Texture2D" uid="uid://cqmf1i4v81bl6" path="res://Assets/Buttons/IMG_3402.png" id="6_lmv6p"]
[ext_resource type="Texture2D" uid="uid://iujiv0je2v1i" path="res://Assets/Explosion/IMG_3416.png" id="7_dr88a"]
[ext_resource type="Texture2D" uid="uid://ba0lrop3un1m5" path="res://Assets/Explosion/IMG_3417.png" id="8_ysgst"]
[ext_resource type="Texture2D" uid="uid://b6vg8rn1eiako" path="res://Assets/Explosion/IMG_3418.png" id="9_gkfcp"]
[ext_resource type="Texture2D" uid="uid://bf4eob20ngfhc" path="res://Assets/Explosion/IMG_3419.png" id="10_dyy7c"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_6vho0"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_gda8k"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_y30w1"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_ej84g"]
2024-10-05 10:39:19 +00:00
[sub_resource type="SpriteFrames" id="SpriteFrames_leuex"]
animations = [{
"frames": [{
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("2_jyhi7")
2024-10-05 10:39:19 +00:00
}],
"loop": false,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("3_1lg6b")
}, {
2024-10-06 17:38:16 +00:00
"duration": 2.0,
"texture": ExtResource("4_ho636")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("3_1lg6b")
2024-10-05 10:39:19 +00:00
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("2_jyhi7")
2024-10-05 10:39:19 +00:00
}],
"loop": false,
"name": &"pressed",
"speed": 15.0
2024-10-05 20:09:04 +00:00
}, {
"frames": [{
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": SubResource("CompressedTexture2D_6vho0")
}, {
"duration": 3.0,
"texture": SubResource("CompressedTexture2D_gda8k")
}, {
"duration": 1.0,
"texture": SubResource("CompressedTexture2D_y30w1")
}, {
"duration": 1.0,
"texture": SubResource("CompressedTexture2D_ej84g")
2024-10-05 20:09:04 +00:00
}],
2024-10-06 17:38:16 +00:00
"loop": false,
"name": &"pressed_old",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_wgvcg")
}],
"loop": false,
2024-10-05 20:09:04 +00:00
"name": &"red",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("6_lmv6p")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("5_wgvcg")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("6_lmv6p")
}, {
"duration": 1.0,
"texture": ExtResource("5_wgvcg")
}],
"loop": false,
"name": &"red_in",
"speed": 5.0
}, {
2024-10-06 17:38:16 +00:00
"frames": [{
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("6_lmv6p")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("5_wgvcg")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("6_lmv6p")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("5_wgvcg")
}],
"loop": false,
2024-10-06 17:38:16 +00:00
"name": &"red_out",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_l0l4p"]
radius = 10.4089
[sub_resource type="SpriteFrames" id="SpriteFrames_va6xu"]
animations = [{
"frames": [{
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": null
}, {
"duration": 1.0,
"texture": null
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("7_dr88a")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("8_ysgst")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("9_gkfcp")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": ExtResource("10_dyy7c")
}, {
"duration": 1.0,
2024-10-06 17:38:16 +00:00
"texture": null
}],
"loop": false,
2024-10-06 17:38:16 +00:00
"name": &"splash",
"speed": 12.0
2024-10-05 10:39:19 +00:00
}]
2024-10-05 20:09:04 +00:00
[node name="Button" type="Node2D"]
script = ExtResource("1_fkyus")
2024-10-05 10:39:19 +00:00
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
2024-10-06 17:38:16 +00:00
scale = Vector2(0.267899, 0.255474)
2024-10-05 10:39:19 +00:00
sprite_frames = SubResource("SpriteFrames_leuex")
2024-10-05 20:09:04 +00:00
[node name="Area2D" type="Area2D" parent="."]
scale = Vector2(1.21306, 1.21306)
collision_layer = 2
collision_mask = 2
2024-10-05 10:39:19 +00:00
2024-10-05 20:09:04 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
scale = Vector2(4.74125, 4.84)
shape = SubResource("CircleShape2D_l0l4p")
2024-10-06 17:38:16 +00:00
[node name="Splash" type="AnimatedSprite2D" parent="."]
position = Vector2(1, 31)
scale = Vector2(0.348624, 0.348624)
sprite_frames = SubResource("SpriteFrames_va6xu")
animation = &"splash"
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]
2024-10-05 20:09:04 +00:00
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
[connection signal="area_exited" from="Area2D" to="." method="_on_area_2d_area_exited"]