[gd_scene load_steps=90 format=2]

[ext_resource path="res://src/playerC/Player-KinematicBody2D.gd" type="Script" id=1]
[ext_resource path="res://src/playerC/states/idle.gd" type="Script" id=2]
[ext_resource path="res://assets/Sounds/crappy pew.wav" type="AudioStream" id=3]
[ext_resource path="res://src/playerC/states/fall.gd" type="Script" id=4]
[ext_resource path="res://src/playerC/states/move.gd" type="Script" id=5]
[ext_resource path="res://src/playerC/player_move_component.gd" type="Script" id=6]
[ext_resource path="res://src/playerC/states/jump.gd" type="Script" id=7]
[ext_resource path="res://src/playerC/states/hurt.gd" type="Script" id=8]
[ext_resource path="res://src/playerC/Gun.gd" type="Script" id=9]
[ext_resource path="res://src/playerC/states/fire.gd" type="Script" id=10]
[ext_resource path="res://src/playerC/resources/FrameSounds.gd" type="Script" id=11]
[ext_resource path="res://src/components/Hurtbox_Component.tscn" type="PackedScene" id=12]
[ext_resource path="res://src/state_modifier.gd" type="Script" id=13]
[ext_resource path="res://src/state_machine_animated_actor.gd" type="Script" id=14]

[sub_resource type="Resource" id=148]
script = ExtResource( 11 )
animation_name = "run"
frame_number = 6
sound = ExtResource( 3 )

[sub_resource type="StreamTexture" id=75]
load_path = "res://.import/MegaMan.png-dc2c293e5a0f5d183ee961942ac90e4a.stex"

[sub_resource type="AtlasTexture" id=76]
atlas = SubResource( 75 )
region = Rect2( 256, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=77]
atlas = SubResource( 75 )
region = Rect2( 384, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=78]
atlas = SubResource( 75 )
region = Rect2( 448, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=79]
atlas = SubResource( 75 )
region = Rect2( 320, 256, 64, 64 )

[sub_resource type="AtlasTexture" id=80]
atlas = SubResource( 75 )
region = Rect2( 384, 256, 64, 64 )

[sub_resource type="AtlasTexture" id=81]
atlas = SubResource( 75 )
region = Rect2( 448, 256, 64, 64 )

[sub_resource type="AtlasTexture" id=82]
atlas = SubResource( 75 )
region = Rect2( 512, 256, 64, 64 )

[sub_resource type="AtlasTexture" id=83]
atlas = SubResource( 75 )
region = Rect2( 0, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=84]
atlas = SubResource( 75 )
region = Rect2( 64, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=85]
atlas = SubResource( 75 )
region = Rect2( 128, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=86]
atlas = SubResource( 75 )
region = Rect2( 320, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=87]
atlas = SubResource( 75 )
region = Rect2( 384, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=88]
atlas = SubResource( 75 )
region = Rect2( 448, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=89]
atlas = SubResource( 75 )
region = Rect2( 256, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=90]
atlas = SubResource( 75 )
region = Rect2( 320, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=91]
atlas = SubResource( 75 )
region = Rect2( 384, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=92]
atlas = SubResource( 75 )
region = Rect2( 448, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=93]
atlas = SubResource( 75 )
region = Rect2( 64, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=94]
atlas = SubResource( 75 )
region = Rect2( 512, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=95]
atlas = SubResource( 75 )
region = Rect2( 0, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=96]
atlas = SubResource( 75 )
region = Rect2( 64, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=97]
atlas = SubResource( 75 )
region = Rect2( 128, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=98]
atlas = SubResource( 75 )
region = Rect2( 192, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=99]
atlas = SubResource( 75 )
region = Rect2( 0, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=100]
atlas = SubResource( 75 )
region = Rect2( 192, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=101]
atlas = SubResource( 75 )
region = Rect2( 256, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=102]
atlas = SubResource( 75 )
region = Rect2( 320, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=103]
atlas = SubResource( 75 )
region = Rect2( 384, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=104]
atlas = SubResource( 75 )
region = Rect2( 448, 320, 64, 64 )

[sub_resource type="AtlasTexture" id=105]
atlas = SubResource( 75 )
region = Rect2( 128, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=106]
atlas = SubResource( 75 )
region = Rect2( 192, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=107]
atlas = SubResource( 75 )
region = Rect2( 320, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=108]
atlas = SubResource( 75 )
region = Rect2( 128, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=109]
atlas = SubResource( 75 )
region = Rect2( 192, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=110]
atlas = SubResource( 75 )
region = Rect2( 256, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=111]
atlas = SubResource( 75 )
region = Rect2( 320, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=112]
atlas = SubResource( 75 )
region = Rect2( 384, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=113]
atlas = SubResource( 75 )
region = Rect2( 448, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=114]
atlas = SubResource( 75 )
region = Rect2( 512, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=115]
atlas = SubResource( 75 )
region = Rect2( 0, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=116]
atlas = SubResource( 75 )
region = Rect2( 64, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=117]
atlas = SubResource( 75 )
region = Rect2( 64, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=118]
atlas = SubResource( 75 )
region = Rect2( 128, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=119]
atlas = SubResource( 75 )
region = Rect2( 192, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=120]
atlas = SubResource( 75 )
region = Rect2( 256, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=121]
atlas = SubResource( 75 )
region = Rect2( 320, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=122]
atlas = SubResource( 75 )
region = Rect2( 384, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=123]
atlas = SubResource( 75 )
region = Rect2( 448, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=124]
atlas = SubResource( 75 )
region = Rect2( 512, 192, 64, 64 )

[sub_resource type="AtlasTexture" id=125]
atlas = SubResource( 75 )
region = Rect2( 0, 256, 64, 64 )

[sub_resource type="AtlasTexture" id=126]
atlas = SubResource( 75 )
region = Rect2( 128, 448, 64, 64 )

[sub_resource type="AtlasTexture" id=127]
atlas = SubResource( 75 )
region = Rect2( 192, 448, 64, 64 )

[sub_resource type="AtlasTexture" id=128]
atlas = SubResource( 75 )
region = Rect2( 256, 448, 64, 64 )

[sub_resource type="AtlasTexture" id=129]
atlas = SubResource( 75 )
region = Rect2( 320, 448, 64, 64 )

[sub_resource type="AtlasTexture" id=130]
atlas = SubResource( 75 )
region = Rect2( 384, 448, 64, 64 )

[sub_resource type="AtlasTexture" id=131]
atlas = SubResource( 75 )
region = Rect2( 448, 448, 64, 64 )

[sub_resource type="AtlasTexture" id=132]
atlas = SubResource( 75 )
region = Rect2( 0, 0, 64, 64 )

[sub_resource type="AtlasTexture" id=133]
atlas = SubResource( 75 )
region = Rect2( 512, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=134]
atlas = SubResource( 75 )
region = Rect2( 512, 384, 64, 64 )

[sub_resource type="AtlasTexture" id=135]
atlas = SubResource( 75 )
region = Rect2( 0, 448, 64, 64 )

[sub_resource type="AtlasTexture" id=136]
atlas = SubResource( 75 )
region = Rect2( 64, 448, 64, 64 )

[sub_resource type="AtlasTexture" id=137]
atlas = SubResource( 75 )
region = Rect2( 512, 64, 64, 64 )

[sub_resource type="AtlasTexture" id=138]
atlas = SubResource( 75 )
region = Rect2( 0, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=139]
atlas = SubResource( 75 )
region = Rect2( 64, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=140]
atlas = SubResource( 75 )
region = Rect2( 128, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=141]
atlas = SubResource( 75 )
region = Rect2( 192, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=142]
atlas = SubResource( 75 )
region = Rect2( 256, 128, 64, 64 )

[sub_resource type="AtlasTexture" id=143]
atlas = SubResource( 75 )
region = Rect2( 64, 256, 64, 64 )

[sub_resource type="AtlasTexture" id=144]
atlas = SubResource( 75 )
region = Rect2( 128, 256, 64, 64 )

[sub_resource type="AtlasTexture" id=145]
atlas = SubResource( 75 )
region = Rect2( 192, 256, 64, 64 )

[sub_resource type="AtlasTexture" id=146]
atlas = SubResource( 75 )
region = Rect2( 256, 256, 64, 64 )

[sub_resource type="SpriteFrames" id=147]
animations = [ {
"frames": [ SubResource( 76 ), SubResource( 77 ), SubResource( 78 ) ],
"loop": true,
"name": "blink",
"speed": 10.0
}, {
"frames": [ SubResource( 79 ), SubResource( 80 ), SubResource( 81 ), SubResource( 82 ) ],
"loop": true,
"name": "climb",
"speed": 10.0
}, {
"frames": [ SubResource( 83 ), SubResource( 84 ) ],
"loop": true,
"name": "climb_end",
"speed": 10.0
}, {
"frames": [ SubResource( 85 ) ],
"loop": true,
"name": "climb_fire",
"speed": 10.0
}, {
"frames": [ SubResource( 86 ), SubResource( 87 ), SubResource( 88 ), SubResource( 86 ), SubResource( 86 ) ],
"loop": false,
"name": "fire",
"speed": 10.0
}, {
"frames": [ SubResource( 89 ), SubResource( 90 ), SubResource( 89 ), SubResource( 91 ), SubResource( 92 ) ],
"loop": true,
"name": "hit",
"speed": 10.0
}, {
"frames": [ SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 76 ), SubResource( 77 ), SubResource( 78 ) ],
"loop": true,
"name": "idle",
"speed": 10.0
}, {
"frames": [ SubResource( 86 ) ],
"loop": true,
"name": "idle_fire",
"speed": 5.0
}, {
"frames": [ SubResource( 93 ), SubResource( 94 ), SubResource( 95 ), SubResource( 96 ), SubResource( 97 ), SubResource( 98 ), SubResource( 98 ), SubResource( 97 ), SubResource( 96 ), SubResource( 95 ), SubResource( 94 ), SubResource( 93 ) ],
"loop": true,
"name": "jump",
"speed": 10.0
}, {
"frames": [ SubResource( 99 ), SubResource( 100 ), SubResource( 101 ), SubResource( 102 ), SubResource( 103 ), SubResource( 104 ) ],
"loop": true,
"name": "jump_fire",
"speed": 10.0
}, {
"frames": [ SubResource( 105 ), SubResource( 106 ), SubResource( 105 ), SubResource( 76 ), SubResource( 107 ) ],
"loop": true,
"name": "look",
"speed": 10.0
}, {
"frames": [ SubResource( 93 ), SubResource( 108 ), SubResource( 109 ), SubResource( 110 ), SubResource( 111 ), SubResource( 112 ), SubResource( 113 ), SubResource( 114 ), SubResource( 115 ), SubResource( 116 ) ],
"loop": true,
"name": "run",
"speed": 10.0
}, {
"frames": [ SubResource( 99 ), SubResource( 117 ), SubResource( 118 ), SubResource( 119 ), SubResource( 120 ), SubResource( 121 ), SubResource( 122 ), SubResource( 123 ), SubResource( 124 ), SubResource( 125 ) ],
"loop": true,
"name": "run_fire",
"speed": 10.0
}, {
"frames": [ SubResource( 126 ), SubResource( 127 ), SubResource( 126 ), SubResource( 128 ) ],
"loop": true,
"name": "slide",
"speed": 10.0
}, {
"frames": [ SubResource( 129 ), SubResource( 130 ), SubResource( 131 ) ],
"loop": true,
"name": "slide_hit",
"speed": 10.0
}, {
"frames": [ SubResource( 132 ) ],
"loop": false,
"name": "step",
"speed": 10.0
}, {
"frames": [ SubResource( 133 ) ],
"loop": false,
"name": "step_fire",
"speed": 10.0
}, {
"frames": [ SubResource( 134 ), SubResource( 135 ), SubResource( 136 ), SubResource( 135 ) ],
"loop": true,
"name": "stun",
"speed": 10.0
}, {
"frames": [ SubResource( 137 ), SubResource( 138 ), SubResource( 139 ), SubResource( 140 ), SubResource( 141 ), SubResource( 142 ) ],
"loop": true,
"name": "teleport",
"speed": 10.0
}, {
"frames": [ SubResource( 143 ), SubResource( 144 ), SubResource( 145 ), SubResource( 146 ) ],
"loop": true,
"name": "throw",
"speed": 10.0
} ]

[sub_resource type="RectangleShape2D" id=74]
extents = Vector2( 14, 18.5 )

[node name="Player" type="KinematicBody2D"]
collision_layer = 2
script = ExtResource( 1 )
SoundEffects = [ SubResource( 148 ) ]

[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 147 )
animation = "idle_fire"
playing = true
flip_h = true
__meta__ = {
"_aseprite_wizard_config_": {
"layer": "",
"o_ex_p": "",
"o_folder": "res://assets",
"o_name": "",
"only_visible": true,
"op_exp": false,
"slice": "",
"source": "E:/Godot/Art/MegaMan.aseprite"
}
}

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, -3.5 )
shape = SubResource( 74 )

[node name="Controllers" type="Node" parent="."]

[node name="move_component" type="Node" parent="Controllers"]
script = ExtResource( 6 )

[node name="state_machine" type="Node" parent="Controllers"]
script = ExtResource( 14 )
starting_state = NodePath("idle")

[node name="idle" type="Node" parent="Controllers/state_machine"]
script = ExtResource( 2 )
move_speed = 90.0
animation_sequence = [ "idle" ]
jump_node = NodePath("../jump")
fall_node = NodePath("../fall")
move_node = NodePath("../move")
fire_node = NodePath("../fire")

[node name="jump" type="Node" parent="Controllers/state_machine"]
script = ExtResource( 7 )
move_speed = 90.0
animation_sequence = [ "jump" ]
idle_node = NodePath("../idle")
fall_node = NodePath("../fall")
move_node = NodePath("../move")
jump_force = 270.0

[node name="move" type="Node" parent="Controllers/state_machine"]
script = ExtResource( 5 )
move_speed = 90.0
animation_sequence = [ "step", "run" ]
jump_node = NodePath("../jump")
fall_node = NodePath("../fall")
idle_node = NodePath("../idle")
dash_node = NodePath(".")

[node name="fall" type="Node" parent="Controllers/state_machine"]
script = ExtResource( 4 )
move_speed = 90.0
animation_sequence = [ "jump" ]
idle_node = NodePath("../idle")
move_node = NodePath("../move")

[node name="hurt" type="Node" parent="Controllers/state_machine"]
script = ExtResource( 8 )
timeout_seconds = 1.0
move_speed = -25.0
animation_sequence = [ "hit" ]
idle_node = NodePath("../idle")

[node name="fire" type="Node" parent="Controllers/state_machine"]
script = ExtResource( 10 )
timeout_seconds = 1.0
animation_sequence = [ "fire" ]
jump_node = NodePath("../jump")
idle_node = NodePath("../idle")
fall_node = NodePath("../fall")
move_node = NodePath("../move")

[node name="attack" type="Node" parent="Controllers/state_machine"]
script = ExtResource( 13 )
animation_name = "_fire"
timeout_seconds = 2.0
animation_suffix = true

[node name="Hurtbox_Component" parent="." instance=ExtResource( 12 )]

[node name="Gun" type="Position2D" parent="."]
physics_interpolation_mode = 1
position = Vector2( 25, -5 )
script = ExtResource( 9 )

[node name="Cooldown" type="Timer" parent="Gun"]
wait_time = 0.5
one_shot = true

[node name="Line2D" type="Line2D" parent="Gun"]
points = PoolVector2Array( -5, 0, 5, 0 )
width = 2.0
default_color = Color( 1, 0.607843, 0, 1 )

[node name="SE_Player" type="AudioStreamPlayer" parent="."]
