[gd_scene load_steps=37 format=2] [ext_resource path="res://Player.gd" type="Script" id=1] [ext_resource path="res://DashKey.gd" type="Script" id=2] [ext_resource path="res://PlayerStanding.gd" type="Script" id=3] [ext_resource path="res://PlayerDash.gd" type="Script" id=4] [ext_resource path="res://PlayerAttack.gd" type="Script" id=5] [ext_resource path="res://assets/art/backwards-sheet.png" type="Texture" id=6] [ext_resource path="res://AttackKey.gd" type="Script" id=7] [ext_resource path="res://assets/art/forward-sheet.png" type="Texture" id=8] [ext_resource path="res://assets/art/dash/dash-04.png" type="Texture" id=9] [ext_resource path="res://assets/art/idle-sheet.png" type="Texture" id=10] [ext_resource path="res://assets/art/slash/slash-03.png" type="Texture" id=11] [ext_resource path="res://assets/art/dash/dash-05.png" type="Texture" id=12] [ext_resource path="res://assets/art/dash/dash-06.png" type="Texture" id=13] [ext_resource path="res://assets/art/dash/dash-02.png" type="Texture" id=14] [ext_resource path="res://assets/art/slash/slash-02.png" type="Texture" id=15] [ext_resource path="res://PlayerNormal.gd" type="Script" id=16] [ext_resource path="res://assets/art/dash/dash-08.png" type="Texture" id=17] [ext_resource path="res://assets/art/dash/dash-03.png" type="Texture" id=18] [ext_resource path="res://assets/art/dash/dash-07.png" type="Texture" id=19] [ext_resource path="res://assets/art/dash/dash-09.png" type="Texture" id=20] [ext_resource path="res://assets/art/dash/dash-01.png" type="Texture" id=21] [ext_resource path="res://assets/art/slash/slash-01.png" type="Texture" id=22] [ext_resource path="res://assets/art/slash/slash-04.png" type="Texture" id=23] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 26.25, 28.75 ) [sub_resource type="CapsuleShape2D" id=2] radius = 8.82094 height = 11.8581 [sub_resource type="AtlasTexture" id=3] flags = 4 atlas = ExtResource( 10 ) region = Rect2( 0, 0, 45, 47 ) [sub_resource type="AtlasTexture" id=4] flags = 4 atlas = ExtResource( 10 ) region = Rect2( 45, 0, 45, 47 ) [sub_resource type="AtlasTexture" id=5] flags = 4 atlas = ExtResource( 10 ) region = Rect2( 90, 0, 45, 47 ) [sub_resource type="AtlasTexture" id=6] flags = 4 atlas = ExtResource( 10 ) region = Rect2( 135, 0, 45, 47 ) [sub_resource type="AtlasTexture" id=7] flags = 4 atlas = ExtResource( 8 ) region = Rect2( 0, 0, 45, 47 ) [sub_resource type="AtlasTexture" id=8] flags = 4 atlas = ExtResource( 8 ) region = Rect2( 45, 0, 45, 47 ) [sub_resource type="AtlasTexture" id=9] flags = 4 atlas = ExtResource( 8 ) region = Rect2( 90, 0, 45, 47 ) [sub_resource type="AtlasTexture" id=10] flags = 4 atlas = ExtResource( 6 ) region = Rect2( 0, 0, 44, 47 ) [sub_resource type="AtlasTexture" id=11] flags = 4 atlas = ExtResource( 6 ) region = Rect2( 44, 0, 44, 47 ) [sub_resource type="AtlasTexture" id=12] flags = 4 atlas = ExtResource( 6 ) region = Rect2( 88, 0, 44, 47 ) [sub_resource type="SpriteFrames" id=13] animations = [ { "frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ], "loop": true, "name": "idle", "speed": 5.0 }, { "frames": [ ExtResource( 22 ), ExtResource( 15 ), ExtResource( 11 ), ExtResource( 23 ) ], "loop": true, "name": "slash", "speed": 5.0 }, { "frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ) ], "loop": true, "name": "forward", "speed": 5.0 }, { "frames": [ ExtResource( 21 ), ExtResource( 14 ), ExtResource( 18 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 12 ), ExtResource( 13 ), ExtResource( 13 ), ExtResource( 19 ) ], "loop": true, "name": "dash", "speed": 5.0 }, { "frames": [ SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ], "loop": true, "name": "backward", "speed": 5.0 }, { "frames": [ ExtResource( 17 ), ExtResource( 17 ), ExtResource( 20 ) ], "loop": true, "name": "standing up", "speed": 5.0 } ] [node name="Player" type="KinematicBody2D"] script = ExtResource( 1 ) [node name="PlayerAttack" type="Node" parent="."] script = ExtResource( 5 ) [node name="Area2D" type="Area2D" parent="PlayerAttack"] [node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerAttack/Area2D"] position = Vector2( 10, 0 ) shape = SubResource( 1 ) [node name="AttackKey" type="Node" parent="."] script = ExtResource( 7 ) [node name="DashKey" type="Node" parent="."] script = ExtResource( 2 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource( 2 ) [node name="AnimatedSprite" type="AnimatedSprite" parent="."] frames = SubResource( 13 ) animation = "slash" frame = 3 playing = true [node name="PlayerNormal" type="Node" parent="."] script = ExtResource( 16 ) [node name="PlayerDash" type="Node" parent="."] script = ExtResource( 4 ) [node name="PlayerStanding" type="Node" parent="."] script = ExtResource( 3 ) [connection signal="body_entered" from="PlayerAttack/Area2D" to="PlayerAttack" method="_on_Area2D_body_entered"] [connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]