[gd_scene load_steps=58 format=3 uid="uid://di21xheryhp0k"]

[ext_resource type="Script" path="res://Scripts/hiro_player.gd" id="1_dtymi"]
[ext_resource type="Texture2D" uid="uid://cm7tgomrcvq30" path="res://Hiro/Hiro Walk Sprite Cycle Line Up.png" id="1_ukwcc"]
[ext_resource type="Shader" uid="uid://bcnip762rd6yj" path="res://Shaders/character.tres" id="2_tyej0"]
[ext_resource type="AnimationLibrary" uid="uid://dincs5x4qucal" path="res://Hiro/hiro_animation.tres" id="3_ucyqo"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_ftlgj"]
resource_local_to_scene = true
shader = ExtResource("2_tyej0")
shader_parameter/FlashColor = Color(1, 0, 0, 0)

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_h73p3"]
animation = &"walking_west"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_vklau"]
animation = &"walking_east"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_pw2v4"]
animation = &"walking_south"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_0yei0"]
animation = &"walking_north"

[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_napge"]
blend_point_0/node = SubResource("AnimationNodeAnimation_h73p3")
blend_point_0/pos = Vector2(-1, 0)
blend_point_1/node = SubResource("AnimationNodeAnimation_vklau")
blend_point_1/pos = Vector2(1, 0)
blend_point_2/node = SubResource("AnimationNodeAnimation_pw2v4")
blend_point_2/pos = Vector2(0, 1)
blend_point_3/node = SubResource("AnimationNodeAnimation_0yei0")
blend_point_3/pos = Vector2(0, -1)
blend_mode = 1

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_luptt"]
animation = &"player_defeated"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_tyc74"]
animation = &"hurt_west"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_0vb6l"]
animation = &"hurt_south"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_rm4rl"]
animation = &"hurt_east"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ob16h"]
animation = &"hurt_north"

[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_h2vkc"]
blend_point_0/node = SubResource("AnimationNodeAnimation_tyc74")
blend_point_0/pos = Vector2(-1, 0)
blend_point_1/node = SubResource("AnimationNodeAnimation_0vb6l")
blend_point_1/pos = Vector2(0, 1)
blend_point_2/node = SubResource("AnimationNodeAnimation_rm4rl")
blend_point_2/pos = Vector2(1, 0)
blend_point_3/node = SubResource("AnimationNodeAnimation_ob16h")
blend_point_3/pos = Vector2(0, -1)
blend_mode = 1

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6ohpw"]
animation = &"idle_west"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_330gg"]
animation = &"idle_east"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_lsntm"]
animation = &"idle_north"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_g1i0e"]
animation = &"idle_south"

[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_bd8j1"]
blend_point_0/node = SubResource("AnimationNodeAnimation_6ohpw")
blend_point_0/pos = Vector2(-1, 0)
blend_point_1/node = SubResource("AnimationNodeAnimation_330gg")
blend_point_1/pos = Vector2(1, 0)
blend_point_2/node = SubResource("AnimationNodeAnimation_lsntm")
blend_point_2/pos = Vector2(0, -1)
blend_point_3/node = SubResource("AnimationNodeAnimation_g1i0e")
blend_point_3/pos = Vector2(0, 1)
blend_mode = 1

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_f740i"]
animation = &"punch_south_rigth"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_bwovr"]
animation = &"punch_west_rigth"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_qqbt6"]
animation = &"punch_east_rigth"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_y3tw5"]
animation = &"punch_north_rigth"

[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_2orb0"]
blend_point_0/node = SubResource("AnimationNodeAnimation_f740i")
blend_point_0/pos = Vector2(0, 1)
blend_point_1/node = SubResource("AnimationNodeAnimation_bwovr")
blend_point_1/pos = Vector2(-1, 0)
blend_point_2/node = SubResource("AnimationNodeAnimation_qqbt6")
blend_point_2/pos = Vector2(1, 0)
blend_point_3/node = SubResource("AnimationNodeAnimation_y3tw5")
blend_point_3/pos = Vector2(0, -1)
blend_mode = 1

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ruw2d"]
animation = &"punch_west_left"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_iu52b"]
animation = &"punch_north_left"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_sotly"]
animation = &"punch_east_left"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ryihd"]
animation = &"punch_south_left"

[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_dd6tw"]
blend_point_0/node = SubResource("AnimationNodeAnimation_ruw2d")
blend_point_0/pos = Vector2(-1, 0)
blend_point_1/node = SubResource("AnimationNodeAnimation_iu52b")
blend_point_1/pos = Vector2(0, -1)
blend_point_2/node = SubResource("AnimationNodeAnimation_sotly")
blend_point_2/pos = Vector2(1, 0)
blend_point_3/node = SubResource("AnimationNodeAnimation_ryihd")
blend_point_3/pos = Vector2(0, 1)
blend_mode = 1

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_p4b5o"]
animation = &"kick_east"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_vay80"]
animation = &"kick_north"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_1svn8"]
animation = &"kick_west"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_awga0"]
animation = &"kick_south"

[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_mr7t3"]
blend_point_0/node = SubResource("AnimationNodeAnimation_p4b5o")
blend_point_0/pos = Vector2(1, 0)
blend_point_1/node = SubResource("AnimationNodeAnimation_vay80")
blend_point_1/pos = Vector2(0, -1)
blend_point_2/node = SubResource("AnimationNodeAnimation_1svn8")
blend_point_2/pos = Vector2(-1, 0)
blend_point_3/node = SubResource("AnimationNodeAnimation_awga0")
blend_point_3/pos = Vector2(0, 1)
blend_mode = 1

[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_dc3kp"]
blend_point_0/node = SubResource("AnimationNodeBlendSpace2D_2orb0")
blend_point_0/pos = 0.0
blend_point_1/node = SubResource("AnimationNodeBlendSpace2D_dd6tw")
blend_point_1/pos = 0.5
blend_point_2/node = SubResource("AnimationNodeBlendSpace2D_mr7t3")
blend_point_2/pos = 1.0
blend_mode = 1

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ulfn1"]
animation = &"ai_defeated"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_sudhw"]
animation = &"ai_defeated_start"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_17wsb"]
animation = &"walking_north"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_j520c"]
animation = &"walking_south"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_srrrs"]
animation = &"walking_west"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_4ypsn"]
animation = &"walking_east"

[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_vunsg"]
blend_point_0/node = SubResource("AnimationNodeAnimation_17wsb")
blend_point_0/pos = Vector2(0, -1)
blend_point_1/node = SubResource("AnimationNodeAnimation_j520c")
blend_point_1/pos = Vector2(0, 1)
blend_point_2/node = SubResource("AnimationNodeAnimation_srrrs")
blend_point_2/pos = Vector2(-1, 0)
blend_point_3/node = SubResource("AnimationNodeAnimation_4ypsn")
blend_point_3/pos = Vector2(1, 0)
blend_mode = 1

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_akmuq"]
advance_mode = 2

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_sn1tm"]
advance_mode = 2
advance_condition = &"is_moving"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_5i3fu"]
advance_mode = 2
advance_expression = "get(\"parameters/conditions/is_moving\") == false"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_y8p74"]
advance_mode = 2
advance_condition = &"melee"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_l17k0"]
switch_mode = 2
advance_mode = 2

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ln3pc"]
switch_mode = 2
advance_mode = 2

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ouche"]
switch_mode = 2
advance_mode = 2

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_aa2bq"]
switch_mode = 2
advance_mode = 2

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_vxker"]
switch_mode = 2
advance_mode = 2

[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_b2867"]
allow_transition_to_self = true
states/End/position = Vector2(928, 102)
states/Start/position = Vector2(197, 108)
states/cut_walk/node = SubResource("AnimationNodeBlendSpace2D_napge")
states/cut_walk/position = Vector2(581, 289.354)
states/defeated/node = SubResource("AnimationNodeAnimation_luptt")
states/defeated/position = Vector2(691, 97)
states/hurt/node = SubResource("AnimationNodeBlendSpace2D_h2vkc")
states/hurt/position = Vector2(329, -13)
states/idle/node = SubResource("AnimationNodeBlendSpace2D_bd8j1")
states/idle/position = Vector2(329, 108)
states/melee/node = SubResource("AnimationNodeBlendSpace1D_dc3kp")
states/melee/position = Vector2(329, 224)
states/nsfw_defeated/node = SubResource("AnimationNodeAnimation_ulfn1")
states/nsfw_defeated/position = Vector2(823, 176.354)
states/nsfw_defeated_start/node = SubResource("AnimationNodeAnimation_sudhw")
states/nsfw_defeated_start/position = Vector2(646, 176.354)
states/walk/node = SubResource("AnimationNodeBlendSpace2D_vunsg")
states/walk/position = Vector2(520, 108)
transitions = ["Start", "idle", SubResource("AnimationNodeStateMachineTransition_akmuq"), "idle", "walk", SubResource("AnimationNodeStateMachineTransition_sn1tm"), "walk", "idle", SubResource("AnimationNodeStateMachineTransition_5i3fu"), "idle", "melee", SubResource("AnimationNodeStateMachineTransition_y8p74"), "melee", "idle", SubResource("AnimationNodeStateMachineTransition_l17k0"), "hurt", "idle", SubResource("AnimationNodeStateMachineTransition_ln3pc"), "defeated", "End", SubResource("AnimationNodeStateMachineTransition_ouche"), "nsfw_defeated_start", "nsfw_defeated", SubResource("AnimationNodeStateMachineTransition_aa2bq"), "nsfw_defeated", "End", SubResource("AnimationNodeStateMachineTransition_vxker")]
graph_offset = Vector2(61, 90.3541)

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_vm050"]
radius = 9.0
height = 36.0

[sub_resource type="RectangleShape2D" id="RectangleShape2D_bdqvd"]
size = Vector2(13, 8)

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_m3ug4"]
height = 20.0

[node name="HiroPlayer" type="CharacterBody2D"]
y_sort_enabled = true
collision_layer = 5
motion_mode = 1
script = ExtResource("1_dtymi")
has_nsfw_animations = true

[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
material = SubResource("ShaderMaterial_ftlgj")
position = Vector2(0, -13)
texture = ExtResource("1_ukwcc")
hframes = 20

[node name="AnimationTree" type="AnimationTree" parent="."]
libraries = {
"": ExtResource("3_ucyqo")
}
tree_root = SubResource("AnimationNodeStateMachine_b2867")
parameters/conditions/is_moving = false
parameters/conditions/melee = false
parameters/cut_walk/blend_position = Vector2(-0.770558, 0.612335)
parameters/hurt/blend_position = Vector2(0.949916, -0.0132159)
parameters/idle/blend_position = Vector2(-0.0243112, 0.73545)
parameters/melee/blend_position = 0.0
parameters/melee/0/blend_position = Vector2(0.66778, -0.765217)
parameters/melee/1/blend_position = Vector2(-0.218698, 0.0434783)
parameters/melee/2/blend_position = Vector2(0, 0)
parameters/walk/blend_position = Vector2(-0.0100167, -0.0729166)

[node name="Hitbox" type="Area2D" parent="."]
position = Vector2(0, 1)
collision_layer = 2
collision_mask = 10

[node name="Collider" type="CollisionShape2D" parent="Hitbox"]
position = Vector2(0, -13)
shape = SubResource("CapsuleShape2D_vm050")
debug_color = Color(1, 0.133333, 0.321569, 0.419608)

[node name="MovementCollider" type="CollisionShape2D" parent="."]
position = Vector2(-0.5, -1)
shape = SubResource("RectangleShape2D_bdqvd")

[node name="Attackbox" type="Area2D" parent="."]
position = Vector2(0, 1)
collision_layer = 8
collision_mask = 2
input_pickable = false

[node name="Collider" type="CollisionShape2D" parent="Attackbox"]
position = Vector2(0, -10)
shape = SubResource("CapsuleShape2D_m3ug4")
disabled = true
debug_color = Color(0.745098, 0.462745, 0, 0.419608)

[connection signal="animation_finished" from="AnimationTree" to="." method="_on_animation_tree_animation_finished"]
[connection signal="area_entered" from="Attackbox" to="." method="_on_attackbox_area_entered"]
