forked from yanorax/Godot-VertexAnimation-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Castle.tscn
139 lines (116 loc) · 4.03 KB
/
Castle.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[gd_scene load_steps=19 format=2]
[ext_resource path="res://assets/castle/export_mesh.mesh" type="ArrayMesh" id=1]
[ext_resource path="res://materials/castle_shadermaterial.tres" type="Material" id=2]
[sub_resource type="Animation" id=1]
resource_name = "build"
length = 3.0
tracks/0/type = "value"
tracks/0/path = NodePath("MeshInstance:material_override:shader_param/current_frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 3 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0.0, 72.0 ]
}
[sub_resource type="Animation" id=2]
resource_name = "hidden"
length = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("MeshInstance:material_override:shader_param/current_frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 0.0 ]
}
[sub_resource type="Animation" id=3]
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("MeshInstance:material_override:shader_param/current_frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 72.0, 96.0 ]
}
[sub_resource type="Animation" id=4]
resource_name = "sell"
length = 3.0
tracks/0/type = "value"
tracks/0/path = NodePath("MeshInstance:material_override:shader_param/current_frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 3 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 72.0, 0.0 ]
}
[sub_resource type="AnimationNodeAnimation" id=5]
animation = "build"
[sub_resource type="AnimationNodeAnimation" id=6]
animation = "hidden"
[sub_resource type="AnimationNodeAnimation" id=7]
animation = "idle"
[sub_resource type="AnimationNodeAnimation" id=8]
animation = "sell"
[sub_resource type="AnimationNodeStateMachineTransition" id=9]
switch_mode = 2
auto_advance = true
[sub_resource type="AnimationNodeStateMachineTransition" id=10]
[sub_resource type="AnimationNodeStateMachineTransition" id=11]
switch_mode = 2
auto_advance = true
[sub_resource type="AnimationNodeStateMachineTransition" id=12]
[sub_resource type="AnimationNodeStateMachine" id=13]
states/build/node = SubResource( 5 )
states/build/position = Vector2( 101.4, 73.4 )
states/hidden/node = SubResource( 6 )
states/hidden/position = Vector2( 101.72, 164.44 )
states/idle/node = SubResource( 7 )
states/idle/position = Vector2( 262.2, 71.8 )
states/sell/node = SubResource( 8 )
states/sell/position = Vector2( 262.68, 164.632 )
transitions = [ "build", "idle", SubResource( 9 ), "idle", "sell", SubResource( 10 ), "sell", "hidden", SubResource( 11 ), "hidden", "build", SubResource( 12 ) ]
[sub_resource type="AnimationNodeStateMachinePlayback" id=14]
[sub_resource type="PlaneMesh" id=15]
size = Vector2( 6, 6 )
[sub_resource type="SpatialMaterial" id=16]
albedo_color = Color( 0.345098, 0.890196, 0.27451, 1 )
[node name="Castle" type="Spatial"]
[node name="MeshInstance" type="MeshInstance" parent="."]
material_override = ExtResource( 2 )
mesh = ExtResource( 1 )
material/0 = null
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/build = SubResource( 1 )
anims/hidden = SubResource( 2 )
anims/idle = SubResource( 3 )
anims/sell = SubResource( 4 )
[node name="AnimationTree" type="AnimationTree" parent="."]
tree_root = SubResource( 13 )
anim_player = NodePath("../AnimationPlayer")
active = true
parameters/playback = SubResource( 14 )
[node name="Ground" type="MeshInstance" parent="."]
visible = false
mesh = SubResource( 15 )
material/0 = SubResource( 16 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.464996, -0.639153, 0.612586, -0.0529327, 0.670634, 0.739898, -0.883729, -0.376475, 0.27801, 11.5329, 17.2916, 0 )
shadow_enabled = true
shadow_contact = 0.4