|
|
@ -1,4 +1,4 @@
|
|
|
|
[gd_scene load_steps=36 format=2]
|
|
|
|
[gd_scene load_steps=37 format=2]
|
|
|
|
|
|
|
|
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://DashKey.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://DashKey.gd" type="Script" id=2]
|
|
|
@ -24,59 +24,66 @@
|
|
|
|
[ext_resource path="res://assets/art/slash/slash-01.png" type="Texture" id=22]
|
|
|
|
[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]
|
|
|
|
[ext_resource path="res://assets/art/slash/slash-04.png" type="Texture" id=23]
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
|
|
[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
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 10 )
|
|
|
|
atlas = ExtResource( 10 )
|
|
|
|
region = Rect2( 0, 0, 45, 47 )
|
|
|
|
region = Rect2( 0, 0, 45, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 10 )
|
|
|
|
atlas = ExtResource( 10 )
|
|
|
|
region = Rect2( 45, 0, 45, 47 )
|
|
|
|
region = Rect2( 45, 0, 45, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 10 )
|
|
|
|
atlas = ExtResource( 10 )
|
|
|
|
region = Rect2( 90, 0, 45, 47 )
|
|
|
|
region = Rect2( 90, 0, 45, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 10 )
|
|
|
|
atlas = ExtResource( 10 )
|
|
|
|
region = Rect2( 135, 0, 45, 47 )
|
|
|
|
region = Rect2( 135, 0, 45, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 8 )
|
|
|
|
atlas = ExtResource( 8 )
|
|
|
|
region = Rect2( 0, 0, 45, 47 )
|
|
|
|
region = Rect2( 0, 0, 45, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
|
|
[sub_resource type="AtlasTexture" id=8]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 8 )
|
|
|
|
atlas = ExtResource( 8 )
|
|
|
|
region = Rect2( 45, 0, 45, 47 )
|
|
|
|
region = Rect2( 45, 0, 45, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
|
|
[sub_resource type="AtlasTexture" id=9]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 8 )
|
|
|
|
atlas = ExtResource( 8 )
|
|
|
|
region = Rect2( 90, 0, 45, 47 )
|
|
|
|
region = Rect2( 90, 0, 45, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=8]
|
|
|
|
[sub_resource type="AtlasTexture" id=10]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 6 )
|
|
|
|
atlas = ExtResource( 6 )
|
|
|
|
region = Rect2( 0, 0, 44, 47 )
|
|
|
|
region = Rect2( 0, 0, 44, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=9]
|
|
|
|
[sub_resource type="AtlasTexture" id=11]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 6 )
|
|
|
|
atlas = ExtResource( 6 )
|
|
|
|
region = Rect2( 44, 0, 44, 47 )
|
|
|
|
region = Rect2( 44, 0, 44, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=10]
|
|
|
|
[sub_resource type="AtlasTexture" id=12]
|
|
|
|
flags = 4
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 6 )
|
|
|
|
atlas = ExtResource( 6 )
|
|
|
|
region = Rect2( 88, 0, 44, 47 )
|
|
|
|
region = Rect2( 88, 0, 44, 47 )
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id=11]
|
|
|
|
[sub_resource type="SpriteFrames" id=13]
|
|
|
|
animations = [ {
|
|
|
|
animations = [ {
|
|
|
|
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
|
|
|
|
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"loop": true,
|
|
|
|
"name": "idle",
|
|
|
|
"name": "idle",
|
|
|
|
"speed": 5.0
|
|
|
|
"speed": 5.0
|
|
|
@ -86,7 +93,7 @@ animations = [ {
|
|
|
|
"name": "slash",
|
|
|
|
"name": "slash",
|
|
|
|
"speed": 5.0
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ],
|
|
|
|
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"loop": true,
|
|
|
|
"name": "forward",
|
|
|
|
"name": "forward",
|
|
|
|
"speed": 5.0
|
|
|
|
"speed": 5.0
|
|
|
@ -96,7 +103,7 @@ animations = [ {
|
|
|
|
"name": "dash",
|
|
|
|
"name": "dash",
|
|
|
|
"speed": 5.0
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
"frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ],
|
|
|
|
"frames": [ SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"loop": true,
|
|
|
|
"name": "backward",
|
|
|
|
"name": "backward",
|
|
|
|
"speed": 5.0
|
|
|
|
"speed": 5.0
|
|
|
@ -107,21 +114,31 @@ animations = [ {
|
|
|
|
"speed": 5.0
|
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
} ]
|
|
|
|
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id=12]
|
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
|
|
radius = 8.82094
|
|
|
|
|
|
|
|
height = 0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[node name="Player" type="Area2D"]
|
|
|
|
|
|
|
|
gravity = 0.0
|
|
|
|
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
__meta__ = {
|
|
|
|
|
|
|
|
"_edit_group_": true
|
|
|
|
[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="."]
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
|
|
frames = SubResource( 11 )
|
|
|
|
frames = SubResource( 13 )
|
|
|
|
animation = "idle"
|
|
|
|
animation = "slash"
|
|
|
|
frame = 2
|
|
|
|
frame = 3
|
|
|
|
playing = true
|
|
|
|
playing = true
|
|
|
|
|
|
|
|
|
|
|
|
[node name="PlayerNormal" type="Node" parent="."]
|
|
|
|
[node name="PlayerNormal" type="Node" parent="."]
|
|
|
@ -132,16 +149,5 @@ script = ExtResource( 4 )
|
|
|
|
|
|
|
|
|
|
|
|
[node name="PlayerStanding" type="Node" parent="."]
|
|
|
|
[node name="PlayerStanding" type="Node" parent="."]
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="PlayerAttack/Area2D" to="PlayerAttack" method="_on_Area2D_body_entered"]
|
|
|
|
[node name="PlayerAttack" type="Node" parent="."]
|
|
|
|
|
|
|
|
script = ExtResource( 5 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[node name="DashKey" type="Node" parent="."]
|
|
|
|
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[node name="AttackKey" type="Node" parent="."]
|
|
|
|
|
|
|
|
script = ExtResource( 7 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
|
|
|
shape = SubResource( 12 )
|
|
|
|
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]
|
|
|
|