mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-03 06:51:16 +00:00
Grazing particles and sound
This commit is contained in:
parent
66fbda2b2b
commit
847d33ad4e
14 changed files with 246 additions and 134 deletions
|
|
@ -124,26 +124,21 @@ animations = [{
|
|||
|
||||
[sub_resource type="Resource" id="Resource_c4ide"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 0
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fjg1v"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 1
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hed00"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 2
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_q2flx"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 3
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_k7ckg"]
|
||||
|
|
@ -160,14 +155,11 @@ metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
|||
|
||||
[sub_resource type="Resource" id="Resource_v2m0j"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 0
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_awrib"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 1
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_nfrn8"]
|
||||
|
|
@ -184,20 +176,16 @@ metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
|||
|
||||
[sub_resource type="Resource" id="Resource_m1iep"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 0
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ckpe7"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 4
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_p5rkw"]
|
||||
script = ExtResource("25_12erk")
|
||||
DamageType = 5
|
||||
Attribute = 0
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_igu66"]
|
||||
|
|
@ -209,61 +197,6 @@ radius = 17.2627
|
|||
[sub_resource type="CircleShape2D" id="CircleShape2D_g3wua"]
|
||||
radius = 9.0
|
||||
|
||||
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_es1gk"]
|
||||
input_0/name = "up"
|
||||
input_0/auto_advance = false
|
||||
input_0/break_loop_at_end = false
|
||||
input_0/reset = true
|
||||
input_1/name = "down"
|
||||
input_1/auto_advance = false
|
||||
input_1/break_loop_at_end = false
|
||||
input_1/reset = true
|
||||
input_2/name = "left"
|
||||
input_2/auto_advance = false
|
||||
input_2/break_loop_at_end = false
|
||||
input_2/reset = true
|
||||
input_3/name = "right"
|
||||
input_3/auto_advance = false
|
||||
input_3/break_loop_at_end = false
|
||||
input_3/reset = true
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_4f2wn"]
|
||||
animation = &"Walk_Down"
|
||||
|
||||
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_fnw0c"]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_4f2wn")
|
||||
blend_point_0/pos = 0.0
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_12erk"]
|
||||
animation = &"Walk_Up"
|
||||
|
||||
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_c4ide"]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_12erk")
|
||||
blend_point_0/pos = 0.0
|
||||
|
||||
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_fjg1v"]
|
||||
graph_offset = Vector2(-110.364, 39.7151)
|
||||
nodes/Transition/node = SubResource("AnimationNodeTransition_es1gk")
|
||||
nodes/Transition/position = Vector2(706.667, 53.3333)
|
||||
nodes/Walk_Down/node = SubResource("AnimationNodeBlendSpace1D_fnw0c")
|
||||
nodes/Walk_Down/position = Vector2(426.667, 253.333)
|
||||
nodes/Walk_Up/node = SubResource("AnimationNodeBlendSpace1D_c4ide")
|
||||
nodes/Walk_Up/position = Vector2(426.667, 53.3333)
|
||||
nodes/output/position = Vector2(280, 133.333)
|
||||
node_connections = [&"Transition", 0, &"Walk_Up", &"Transition", 1, &"Walk_Down"]
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hed00"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_q2flx"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_k7ckg"]
|
||||
states/BlendTree/node = SubResource("AnimationNodeBlendTree_fjg1v")
|
||||
states/BlendTree/position = Vector2(401.333, 98.4444)
|
||||
states/Start/position = Vector2(192, 98.963)
|
||||
transitions = ["Start", "BlendTree", SubResource("AnimationNodeStateMachineTransition_hed00"), "BlendTree", "End", SubResource("AnimationNodeStateMachineTransition_q2flx")]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_awrib"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
|
|
@ -320,6 +253,61 @@ _data = {
|
|||
&"Walk_Up": SubResource("Animation_v2m0j")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_es1gk"]
|
||||
input_0/name = "up"
|
||||
input_0/auto_advance = false
|
||||
input_0/break_loop_at_end = false
|
||||
input_0/reset = true
|
||||
input_1/name = "down"
|
||||
input_1/auto_advance = false
|
||||
input_1/break_loop_at_end = false
|
||||
input_1/reset = true
|
||||
input_2/name = "left"
|
||||
input_2/auto_advance = false
|
||||
input_2/break_loop_at_end = false
|
||||
input_2/reset = true
|
||||
input_3/name = "right"
|
||||
input_3/auto_advance = false
|
||||
input_3/break_loop_at_end = false
|
||||
input_3/reset = true
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_4f2wn"]
|
||||
animation = &"Walk_Down"
|
||||
|
||||
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_fnw0c"]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_4f2wn")
|
||||
blend_point_0/pos = 0.0
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_12erk"]
|
||||
animation = &"Walk_Up"
|
||||
|
||||
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_c4ide"]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_12erk")
|
||||
blend_point_0/pos = 0.0
|
||||
|
||||
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_fjg1v"]
|
||||
graph_offset = Vector2(-110.364, 39.7151)
|
||||
nodes/output/position = Vector2(280, 133.333)
|
||||
nodes/Transition/node = SubResource("AnimationNodeTransition_es1gk")
|
||||
nodes/Transition/position = Vector2(706.667, 53.3333)
|
||||
nodes/Walk_Down/node = SubResource("AnimationNodeBlendSpace1D_fnw0c")
|
||||
nodes/Walk_Down/position = Vector2(426.667, 253.333)
|
||||
nodes/Walk_Up/node = SubResource("AnimationNodeBlendSpace1D_c4ide")
|
||||
nodes/Walk_Up/position = Vector2(426.667, 53.3333)
|
||||
node_connections = [&"Transition", 0, &"Walk_Up", &"Transition", 1, &"Walk_Down"]
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hed00"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_q2flx"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_k7ckg"]
|
||||
states/BlendTree/node = SubResource("AnimationNodeBlendTree_fjg1v")
|
||||
states/BlendTree/position = Vector2(401.333, 98.4444)
|
||||
states/Start/position = Vector2(192, 98.963)
|
||||
transitions = ["Start", "BlendTree", SubResource("AnimationNodeStateMachineTransition_hed00"), "BlendTree", "End", SubResource("AnimationNodeStateMachineTransition_q2flx")]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_fnw0c"]
|
||||
radius = 2.05679
|
||||
|
||||
|
|
@ -550,13 +538,16 @@ vframes = 4
|
|||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="."]
|
||||
root_node = NodePath(".")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_nfrn8")
|
||||
}
|
||||
tree_root = SubResource("AnimationNodeStateMachine_k7ckg")
|
||||
anim_player = NodePath("AnimationPlayer")
|
||||
parameters/BlendTree/Transition/current_state = ""
|
||||
parameters/BlendTree/Transition/transition_request = ""
|
||||
parameters/BlendTree/Transition/current_index = -1
|
||||
parameters/BlendTree/Walk_Down/blend_position = 0
|
||||
parameters/BlendTree/Walk_Up/blend_position = 0
|
||||
parameters/BlendTree/Walk_Down/blend_position = 0.0
|
||||
parameters/BlendTree/Walk_Up/blend_position = 0.0
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="AnimationTree"]
|
||||
libraries = {
|
||||
|
|
@ -600,7 +591,6 @@ script = ExtResource("42_awrib")
|
|||
Shield = NodePath("../DamageReceiver/ShieldProvider")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="GrazingModule"]
|
||||
visible = false
|
||||
shape = SubResource("CircleShape2D_awrib")
|
||||
|
||||
[node name="FreezeModule" type="Node2D" parent="." node_paths=PackedStringArray("Shield", "InputProvider")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue