mlpcardgame/Scenes/Board/Card.tscn

298 lines
8.7 KiB
Text
Raw Normal View History

[gd_scene load_steps=18 format=2]
2019-05-03 14:24:54 +00:00
[ext_resource path="res://Scenes/Board/Card.gd" type="Script" id=1]
2019-05-04 21:42:07 +00:00
[ext_resource path="res://MLPAssets/Models/cardborder.obj" type="ArrayMesh" id=2]
[ext_resource path="res://MLPAssets/Models/cardborder.material" type="Material" id=3]
[ext_resource path="res://MLPAssets/Placeholders/CardMat.tres" type="Material" id=4]
2019-05-04 21:42:07 +00:00
2019-05-04 22:01:00 +00:00
[sub_resource type="BoxShape" id=1]
2019-05-06 11:12:57 +00:00
margin = 0.001
extents = Vector3( 0.353, 0.001, 0.481 )
2019-05-04 22:01:00 +00:00
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=2]
resource_name = "drop-board"
length = 0.3
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("..:translation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( 0.870551, 0.965936 ),
"update": 0,
"values": [ Vector3( 0, 0.15, 0 ), Vector3( 0, 0, 0 ) ]
}
tracks/1/type = "bezier"
tracks/1/path = NodePath("..:rotation_degrees:z")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"points": PoolRealArray( 0, -0.173703, -0.837245, 0.134235, 0.64701, -6.53051, -0.0617135, -2.00939, 0.0466494, 1.5189, 0, -0.0279863, -0.888281, 0.0279863, 0.888281 ),
"times": PoolRealArray( 0, 0.2, 0.3 )
}
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=3]
length = 0.1
step = 0.05
tracks/0/type = "value"
2019-05-11 19:36:44 +00:00
tracks/0/path = NodePath("..:translation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1 ),
"transitions": PoolRealArray( 0.297302, 0.965936 ),
"update": 0,
"values": [ Vector3( 0, 0.15, 0 ), Vector3( 0, 0, 0 ) ]
}
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=4]
2019-05-05 23:09:19 +00:00
length = 0.5
step = 0.05
2019-05-04 21:42:07 +00:00
tracks/0/type = "value"
2019-05-05 23:09:19 +00:00
tracks/0/path = NodePath(".:translation")
2019-05-04 21:42:07 +00:00
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
2019-05-05 23:09:19 +00:00
"times": PoolRealArray( 0, 0.25, 0.5 ),
"transitions": PoolRealArray( 1, 1, 1 ),
2019-05-04 21:42:07 +00:00
"update": 0,
2019-05-05 23:35:58 +00:00
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 0.5, 0 ), Vector3( 0, 0.01, 0 ) ]
2019-05-05 23:09:19 +00:00
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:rotation_degrees")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 0, 180 ) ]
2019-05-04 21:42:07 +00:00
}
2019-05-03 14:24:54 +00:00
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=5]
resource_name = "flip-back"
length = 0.5
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath(".:translation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.25, 0.5 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0.01, 0 ), Vector3( 0, 0.5, 0 ), Vector3( 0, 0, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:rotation_degrees")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 180 ), Vector3( 0, 0, 0 ) ]
}
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=6]
resource_name = "flip-back-fast"
length = 0.25
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath(".:translation")
tracks/0/interp = 2
2019-05-05 19:19:39 +00:00
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.25 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0.5, 0 ), Vector3( 0, 0, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:rotation_degrees")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.25 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 90 ), Vector3( 0, 0, 0 ) ]
2019-05-05 19:19:39 +00:00
}
[sub_resource type="Animation" id=7]
resource_name = "flip-fast"
length = 0.2
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath(".:translation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0.5, 0 ), Vector3( 0, 0.01, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:rotation_degrees")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, -150 ), Vector3( 0, 0, -180 ) ]
}
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=8]
2019-05-04 23:18:55 +00:00
length = 0.3
step = 0.05
tracks/0/type = "value"
2019-05-11 19:36:44 +00:00
tracks/0/path = NodePath("..:translation")
2019-05-04 23:18:55 +00:00
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( 0.965936, 0.870551 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 0.15, 0 ) ]
}
2019-05-11 19:36:44 +00:00
tracks/1/type = "bezier"
tracks/1/path = NodePath("..:rotation_degrees:z")
tracks/1/interp = 1
2019-05-04 23:18:55 +00:00
tracks/1/loop_wrap = true
tracks/1/imported = false
2019-05-11 19:36:44 +00:00
tracks/1/enabled = true
2019-05-04 23:18:55 +00:00
tracks/1/keys = {
2019-05-05 23:09:19 +00:00
"points": PoolRealArray( 0, -0.0279863, -0.888281, 0.0279863, 0.888281, -6.53051, -0.0617135, -2.00939, 0.0466494, 1.5189, 0, -0.173703, -0.837245, 0.134235, 0.64701 ),
"times": PoolRealArray( 0, 0.112663, 0.3 )
}
2019-05-04 23:18:55 +00:00
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=9]
2019-05-05 23:09:19 +00:00
length = 0.3
2019-05-04 19:33:47 +00:00
tracks/0/type = "value"
2019-05-11 19:36:44 +00:00
tracks/0/path = NodePath("..:rotation_degrees")
2019-05-04 19:33:47 +00:00
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
2019-05-05 23:09:19 +00:00
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( 0.466516, 2.37841 ),
2019-05-04 19:33:47 +00:00
"update": 0,
2019-05-05 23:09:19 +00:00
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, -90, 0 ) ]
2019-05-04 19:33:47 +00:00
}
2019-05-03 14:24:54 +00:00
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=10]
length = 0.3
tracks/0/type = "value"
tracks/0/path = NodePath("..:rotation_degrees")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( 2.37841, 0.466516 ),
"update": 0,
"values": [ Vector3( 0, -90, 0 ), Vector3( 0, 0, 0 ) ]
}
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=11]
resource_name = "blur"
length = 0.1
step = 0.01
tracks/0/type = "bezier"
tracks/0/path = NodePath("..:translation:z")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"points": PoolRealArray( -0.2, -0.0265325, 0.00965191, 0.0265325, -0.00965191, 0, -0.0730773, 0.0262065, 0.0730773, -0.0262065 ),
"times": PoolRealArray( 0, 0.1 )
}
2019-05-26 22:00:15 +00:00
[sub_resource type="Animation" id=12]
length = 0.1
step = 0.01
tracks/0/type = "bezier"
tracks/0/path = NodePath("..:translation:z")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"points": PoolRealArray( 0, -0.0120957, 0.235858, 0.0120957, -0.235858, -0.2, -0.0266453, -0.000916421, 0.0266453, 0.000916421 ),
"times": PoolRealArray( 0, 0.1 )
}
2019-05-26 22:00:15 +00:00
[sub_resource type="PlaneMesh" id=13]
2019-05-04 21:42:07 +00:00
2019-05-04 22:01:00 +00:00
[node name="Card" type="Area"]
input_capture_on_drag = true
2019-05-04 21:42:07 +00:00
script = ExtResource( 1 )
2019-05-04 22:01:00 +00:00
[node name="CollisionShape" type="CollisionShape" parent="."]
2019-05-06 11:12:57 +00:00
transform = Transform( 1, 0, 0, 0, 1.17955, 0, 0, 0, 1, 0, 0.000197917, 0 )
2019-05-04 22:01:00 +00:00
shape = SubResource( 1 )
2019-05-11 19:36:44 +00:00
[node name="CardModel" type="Spatial" parent="."]
transform = Transform( 0.999409, 0.0343663, 0, -0.0343663, 0.999409, 0, 0, 0, 1, 0, 0.0986242, 0 )
2019-05-11 19:36:44 +00:00
[node name="Border" type="MeshInstance" parent="CardModel"]
2019-05-04 21:42:07 +00:00
mesh = ExtResource( 2 )
material/0 = ExtResource( 3 )
2019-05-11 19:36:44 +00:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="CardModel/Border"]
2019-05-26 22:00:15 +00:00
anims/drop-board = SubResource( 2 )
anims/drop-hand = SubResource( 3 )
anims/flip = SubResource( 4 )
anims/flip-back = SubResource( 5 )
anims/flip-back-fast = SubResource( 6 )
anims/flip-fast = SubResource( 7 )
2019-05-26 22:00:15 +00:00
anims/lift = SubResource( 8 )
anims/tap = SubResource( 9 )
anims/tap-back = SubResource( 10 )
[node name="HandAnimPlayer" type="AnimationPlayer" parent="CardModel/Border"]
2019-05-26 22:00:15 +00:00
anims/blur = SubResource( 11 )
anims/focus = SubResource( 12 )
2019-05-04 21:42:07 +00:00
2019-05-11 19:36:44 +00:00
[node name="CardImage" type="MeshInstance" parent="CardModel/Border"]
transform = Transform( 0.318962, 0, 0, 0, 1, 0, 0, 0, 0.450381, 0, 0.009, 0 )
2019-05-26 22:00:15 +00:00
mesh = SubResource( 13 )
material/0 = ExtResource( 4 )
[node name="Tween" type="Tween" parent="."]
2019-05-04 23:18:55 +00:00
[connection signal="input_event" from="." to="." method="_input_event"]
2019-05-04 22:01:00 +00:00
[connection signal="mouse_entered" from="." to="." method="_mouse_hover"]
[connection signal="mouse_exited" from="." to="." method="_mouse_blur"]
2019-05-11 19:36:44 +00:00
[connection signal="animation_finished" from="CardModel/Border/AnimationPlayer" to="." method="_check_drop_anim"]
[connection signal="animation_finished" from="CardModel/Border/HandAnimPlayer" to="." method="_check_drop_anim"]