card animations back to stable

This commit is contained in:
betalars 2023-05-19 21:47:25 +02:00
parent 29c3080281
commit 86c6390359
1 changed files with 179 additions and 150 deletions

View File

@ -4,63 +4,83 @@
[ext_resource type="PackedScene" uid="uid://dy5rd437h5hsw" path="res://logic-scenes/board/card.tscn" id="2_dqebt"] [ext_resource type="PackedScene" uid="uid://dy5rd437h5hsw" path="res://logic-scenes/board/card.tscn" id="2_dqebt"]
[ext_resource type="PackedScene" uid="uid://vkcdj8c3ytbq" path="res://logic-scenes/board/post-it.tscn" id="3_ggbxq"] [ext_resource type="PackedScene" uid="uid://vkcdj8c3ytbq" path="res://logic-scenes/board/post-it.tscn" id="3_ggbxq"]
[sub_resource type="Animation" id="Animation_ldr2c"]
resource_name = "select_1"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../post-it_1:rotation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1.93187),
"update": 0,
"values": [-0.109599, -0.0244346]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../post-it_1:scale")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1.93187),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.1, 1.1)]
}
[sub_resource type="Animation" id="Animation_dinvx"] [sub_resource type="Animation" id="Animation_dinvx"]
length = 0.001 length = 0.001
[sub_resource type="Animation" id="Animation_4dp1g"]
resource_name = "deselect_1"
length = 0.7
tracks/0/type = "value" tracks/0/type = "value"
tracks/0/imported = false tracks/0/imported = false
tracks/0/enabled = true tracks/0/enabled = true
tracks/0/path = NodePath("../post-it_1:rotation") tracks/0/path = NodePath(".:position")
tracks/0/interp = 2 tracks/0/interp = 1
tracks/0/loop_wrap = true tracks/0/loop_wrap = true
tracks/0/keys = { tracks/0/keys = {
"times": PackedFloat32Array(0, 0.7), "times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(0.5, 1), "transitions": PackedFloat32Array(1),
"update": 0, "update": 0,
"values": [-0.0244346, -0.109599] "values": [Vector2(-317, 52)]
} }
tracks/1/type = "value" tracks/1/type = "value"
tracks/1/imported = false tracks/1/imported = false
tracks/1/enabled = true tracks/1/enabled = true
tracks/1/path = NodePath("../post-it_1:scale") tracks/1/path = NodePath(".:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.109599]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_abihp"]
resource_name = "shuffle"
length = 5.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.7, 1.1, 1.6, 3, 4.3, 5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 0.450625, 0.450625),
"update": 0,
"values": [Vector2(-317, 52), Vector2(18, 189), Vector2(1, 168), Vector2(-11, 299), Vector2(-11, 299), Vector2(-11, 900)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:rotation")
tracks/1/interp = 2 tracks/1/interp = 2
tracks/1/loop_wrap = true tracks/1/loop_wrap = true
tracks/1/keys = { tracks/1/keys = {
"times": PackedFloat32Array(0, 0.4), "times": PackedFloat32Array(0.7, 1.4, 2, 2.5, 3.1, 4.5),
"transitions": PackedFloat32Array(0.482968, 1), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1.07177),
"update": 0, "update": 0,
"values": [Vector2(1.1, 1.1), Vector2(1, 1)] "values": [-0.109956, -0.520108, 0.336849, -0.13439, 0.0, 0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:scale")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0.7, 2.5, 3.5),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1, 1), Vector2(1.2, 1.2)]
} }
[sub_resource type="Animation" id="Animation_76klu"] [sub_resource type="Animation" id="Animation_76klu"]
@ -131,72 +151,72 @@ tracks/1/keys = {
"values": [0.0, 0.0436332, -0.21293, 3.22362] "values": [0.0, 0.0436332, -0.21293, 3.22362]
} }
[sub_resource type="Animation" id="Animation_abihp"] [sub_resource type="Animation" id="Animation_ldr2c"]
resource_name = "shuffle" resource_name = "select"
length = 5.0 length = 0.3
tracks/0/type = "value" tracks/0/type = "value"
tracks/0/imported = false tracks/0/imported = false
tracks/0/enabled = true tracks/0/enabled = true
tracks/0/path = NodePath(".:position") tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 2 tracks/0/interp = 2
tracks/0/loop_wrap = true tracks/0/loop_wrap = true
tracks/0/keys = { tracks/0/keys = {
"times": PackedFloat32Array(0.5, 0.9, 1.4, 2.8, 3.9, 5), "times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1, 1, 1, 0.574349, 1), "transitions": PackedFloat32Array(1, 1.93187),
"update": 0, "update": 0,
"values": [Vector2(339, 20), Vector2(18, 189), Vector2(1, 168), Vector2(-11, 299), Vector2(-6, 259), Vector2(-33, 799)] "values": [-0.109599, -0.0244346]
} }
tracks/1/type = "value" tracks/1/type = "value"
tracks/1/imported = false tracks/1/imported = false
tracks/1/enabled = true tracks/1/enabled = true
tracks/1/path = NodePath(".:rotation") tracks/1/path = NodePath(".:scale")
tracks/1/interp = 2 tracks/1/interp = 2
tracks/1/loop_wrap = true tracks/1/loop_wrap = true
tracks/1/keys = { tracks/1/keys = {
"times": PackedFloat32Array(0.5, 1.2, 1.8, 2.6, 3.9, 5), "times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1), "transitions": PackedFloat32Array(1, 1.93187),
"update": 0, "update": 0,
"values": [0.0802851, -0.520108, 0.336849, -0.13439, 0.0785398, 0.893609] "values": [Vector2(1, 1), Vector2(1.1, 1.1)]
} }
tracks/2/type = "value"
tracks/2/imported = false [sub_resource type="Animation" id="Animation_4dp1g"]
tracks/2/enabled = true resource_name = "deselect"
tracks/2/path = NodePath(".:scale") length = 0.7
tracks/2/interp = 2 tracks/0/type = "value"
tracks/2/loop_wrap = true tracks/0/imported = false
tracks/2/keys = { tracks/0/enabled = true
"times": PackedFloat32Array(0.5, 2.3, 3.3), tracks/0/path = NodePath(".:rotation")
"transitions": PackedFloat32Array(1, 1, 1), tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.7),
"transitions": PackedFloat32Array(0.5, 1),
"update": 0, "update": 0,
"values": [Vector2(1, 1), Vector2(1, 1), Vector2(1.2, 1.2)] "values": [-0.0244346, -0.109599]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:scale")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.4),
"transitions": PackedFloat32Array(0.482968, 1),
"update": 0,
"values": [Vector2(1.1, 1.1), Vector2(1, 1)]
} }
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gdxmh"] [sub_resource type="AnimationLibrary" id="AnimationLibrary_gdxmh"]
_data = { _data = {
"RESET": SubResource("Animation_dinvx"), "RESET": SubResource("Animation_dinvx"),
"deselect_1": SubResource("Animation_4dp1g"), "deselect": SubResource("Animation_4dp1g"),
"select_1": SubResource("Animation_ldr2c"), "select": SubResource("Animation_ldr2c"),
"shuffle": SubResource("Animation_abihp"), "shuffle": SubResource("Animation_abihp"),
"take_1": SubResource("Animation_76klu"), "take_1": SubResource("Animation_76klu"),
"unshuffle_2": SubResource("Animation_d68d2") "unshuffle_2": SubResource("Animation_d68d2")
} }
[sub_resource type="Animation" id="Animation_gobvn"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.27456, 0.870551),
"update": 0,
"values": [Vector2(0, -150), Vector2(-36, -150)]
}
[sub_resource type="Animation" id="Animation_hh7qf"] [sub_resource type="Animation" id="Animation_hh7qf"]
length = 0.001 length = 0.001
tracks/0/type = "value" tracks/0/type = "value"
@ -255,6 +275,22 @@ tracks/0/keys = {
"values": [Vector2(-36, -150), Vector2(-178, -162), Vector2(-211, -168), Vector2(-232, 660)] "values": [Vector2(-36, -150), Vector2(-178, -162), Vector2(-211, -168), Vector2(-232, 660)]
} }
[sub_resource type="Animation" id="Animation_gobvn"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.27456, 0.870551),
"update": 0,
"values": [Vector2(0, -150), Vector2(-36, -150)]
}
[sub_resource type="Animation" id="Animation_mvyrg"] [sub_resource type="Animation" id="Animation_mvyrg"]
resource_name = "shuffle" resource_name = "shuffle"
length = 3.0 length = 3.0
@ -309,10 +345,6 @@ _data = {
"unshuffle": SubResource("Animation_44t0h") "unshuffle": SubResource("Animation_44t0h")
} }
[sub_resource type="Animation" id="Animation_tl7d6"]
resource_name = "pick"
length = 0.2
[sub_resource type="Animation" id="Animation_ourou"] [sub_resource type="Animation" id="Animation_ourou"]
length = 0.001 length = 0.001
tracks/0/type = "value" tracks/0/type = "value"
@ -340,22 +372,6 @@ tracks/1/keys = {
"values": [0.0] "values": [0.0]
} }
[sub_resource type="Animation" id="Animation_8li7b"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.27456, 1),
"update": 0,
"values": [Vector2(0, -50), Vector2(-36, -50)]
}
[sub_resource type="Animation" id="Animation_t16fx"] [sub_resource type="Animation" id="Animation_t16fx"]
resource_name = "deselect" resource_name = "deselect"
length = 0.3 length = 0.3
@ -372,6 +388,26 @@ tracks/0/keys = {
"values": [Vector2(-36, -50), Vector2(0, -50)] "values": [Vector2(-36, -50), Vector2(0, -50)]
} }
[sub_resource type="Animation" id="Animation_tl7d6"]
resource_name = "pick"
length = 0.2
[sub_resource type="Animation" id="Animation_8li7b"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("..:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.27456, 1),
"update": 0,
"values": [Vector2(0, -50), Vector2(-36, -50)]
}
[sub_resource type="Animation" id="Animation_iek4d"] [sub_resource type="Animation" id="Animation_iek4d"]
resource_name = "shuffle" resource_name = "shuffle"
length = 3.0 length = 3.0
@ -426,9 +462,6 @@ _data = {
"unshuffle": SubResource("Animation_1rscv") "unshuffle": SubResource("Animation_1rscv")
} }
[sub_resource type="Animation" id="Animation_k8c2u"]
resource_name = "pick"
[sub_resource type="Animation" id="Animation_v6m7e"] [sub_resource type="Animation" id="Animation_v6m7e"]
length = 0.001 length = 0.001
tracks/0/type = "value" tracks/0/type = "value"
@ -456,22 +489,6 @@ tracks/1/keys = {
"values": [0.0] "values": [0.0]
} }
[sub_resource type="Animation" id="Animation_pctou"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_3:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.41421, 1),
"update": 0,
"values": [Vector2(0, 50), Vector2(-36, 50)]
}
[sub_resource type="Animation" id="Animation_32m72"] [sub_resource type="Animation" id="Animation_32m72"]
resource_name = "deselect" resource_name = "deselect"
length = 0.3 length = 0.3
@ -488,6 +505,25 @@ tracks/0/keys = {
"values": [Vector2(-36, 50), Vector2(0, 50)] "values": [Vector2(-36, 50), Vector2(0, 50)]
} }
[sub_resource type="Animation" id="Animation_k8c2u"]
resource_name = "pick"
[sub_resource type="Animation" id="Animation_pctou"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_3:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.41421, 1),
"update": 0,
"values": [Vector2(0, 50), Vector2(-36, 50)]
}
[sub_resource type="Animation" id="Animation_mi4ua"] [sub_resource type="Animation" id="Animation_mi4ua"]
resource_name = "shuffle" resource_name = "shuffle"
length = 3.0 length = 3.0
@ -542,9 +578,6 @@ _data = {
"unshuffle": SubResource("Animation_gnv6g") "unshuffle": SubResource("Animation_gnv6g")
} }
[sub_resource type="Animation" id="Animation_0q62n"]
resource_name = "pick"
[sub_resource type="Animation" id="Animation_3dc20"] [sub_resource type="Animation" id="Animation_3dc20"]
length = 0.001 length = 0.001
tracks/0/type = "value" tracks/0/type = "value"
@ -572,22 +605,6 @@ tracks/1/keys = {
"values": [0.0] "values": [0.0]
} }
[sub_resource type="Animation" id="Animation_36h4c"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_4:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.46409, 1),
"update": 0,
"values": [Vector2(0, 150), Vector2(-36, 150)]
}
[sub_resource type="Animation" id="Animation_23127"] [sub_resource type="Animation" id="Animation_23127"]
resource_name = "deselect" resource_name = "deselect"
length = 0.3 length = 0.3
@ -604,6 +621,25 @@ tracks/0/keys = {
"values": [Vector2(-36, 150), Vector2(0, 150)] "values": [Vector2(-36, 150), Vector2(0, 150)]
} }
[sub_resource type="Animation" id="Animation_0q62n"]
resource_name = "pick"
[sub_resource type="Animation" id="Animation_36h4c"]
resource_name = "select"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../../post-it_4:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1.46409, 1),
"update": 0,
"values": [Vector2(0, 150), Vector2(-36, 150)]
}
[sub_resource type="Animation" id="Animation_m0sop"] [sub_resource type="Animation" id="Animation_m0sop"]
resource_name = "shuffle" resource_name = "shuffle"
length = 3.0 length = 3.0
@ -672,16 +708,15 @@ layout_mode = 2
[node name="card_1" type="Control" parent="cards"] [node name="card_1" type="Control" parent="cards"]
layout_mode = 2 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
offset_left = -339.0 offset_left = -317.0
offset_top = 37.0 offset_top = 52.0
offset_right = -339.0 offset_right = -317.0
offset_bottom = 37.0 offset_bottom = 52.0
rotation = -0.109599 rotation = -0.109599
[node name="card" parent="cards/card_1" instance=ExtResource("2_dqebt")] [node name="card" parent="cards/card_1" instance=ExtResource("2_dqebt")]
[node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_1"] [node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_1"]
root_node = NodePath("../../card_3")
libraries = { libraries = {
"": SubResource("AnimationLibrary_gdxmh") "": SubResource("AnimationLibrary_gdxmh")
} }
@ -693,10 +728,6 @@ anchors_preset = 0
[node name="card" parent="cards/card_2" instance=ExtResource("2_dqebt")] [node name="card" parent="cards/card_2" instance=ExtResource("2_dqebt")]
[node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_2"] [node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_2"]
root_node = NodePath("../../card_3")
libraries = {
"": SubResource("AnimationLibrary_gdxmh")
}
[node name="card_3" type="Control" parent="cards"] [node name="card_3" type="Control" parent="cards"]
layout_mode = 2 layout_mode = 2
@ -708,11 +739,9 @@ rotation = 0.0802851
[node name="card" parent="cards/card_3" instance=ExtResource("2_dqebt")] [node name="card" parent="cards/card_3" instance=ExtResource("2_dqebt")]
[node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_3"] [node name="AnimationPlayer" type="AnimationPlayer" parent="cards/card_3"]
libraries = {
"": SubResource("AnimationLibrary_gdxmh")
}
[node name="post-its" type="Panel" parent="."] [node name="post-its" type="Panel" parent="."]
visible = false
layout_mode = 2 layout_mode = 2
[node name="post-it_1" type="Control" parent="post-its"] [node name="post-it_1" type="Control" parent="post-its"]