You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
3.2 KiB
Plaintext
108 lines
3.2 KiB
Plaintext
[gd_scene load_steps=25 format=2]
|
|
|
|
[ext_resource path="res://assets/art/forward-sheet.png" type="Texture" id=1]
|
|
[ext_resource path="res://assets/art/backwards-sheet.png" type="Texture" id=2]
|
|
[ext_resource path="res://assets/art/idle-sheet.png" type="Texture" id=3]
|
|
[ext_resource path="res://assets/art/dash/dash-04.png" type="Texture" id=4]
|
|
[ext_resource path="res://player.gd" type="Script" id=5]
|
|
[ext_resource path="res://assets/art/dash/dash-02.png" type="Texture" id=6]
|
|
[ext_resource path="res://assets/art/dash/dash-06.png" type="Texture" id=7]
|
|
[ext_resource path="res://assets/art/dash/dash-09.png" type="Texture" id=8]
|
|
[ext_resource path="res://assets/art/dash/dash-01.png" type="Texture" id=9]
|
|
[ext_resource path="res://assets/art/dash/dash-05.png" type="Texture" id=10]
|
|
[ext_resource path="res://assets/art/dash/dash-07.png" type="Texture" id=11]
|
|
[ext_resource path="res://assets/art/dash/dash-03.png" type="Texture" id=12]
|
|
[ext_resource path="res://assets/art/dash/dash-08.png" type="Texture" id=13]
|
|
|
|
[sub_resource type="AtlasTexture" id=9]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 0, 0, 45, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=10]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 45, 0, 45, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=11]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 90, 0, 45, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=12]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 135, 0, 45, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=13]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 0, 45, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=14]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 45, 0, 45, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=15]
|
|
flags = 4
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 90, 0, 45, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
flags = 4
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 0, 0, 44, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
flags = 4
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 44, 0, 44, 47 )
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
flags = 4
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 88, 0, 44, 47 )
|
|
|
|
[sub_resource type="SpriteFrames" id=8]
|
|
animations = [ {
|
|
"frames": [ SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
|
|
"loop": true,
|
|
"name": "idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ SubResource( 13 ), SubResource( 14 ), SubResource( 15 ) ],
|
|
"loop": true,
|
|
"name": "forward",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 9 ), ExtResource( 6 ), ExtResource( 12 ), ExtResource( 4 ), ExtResource( 4 ), ExtResource( 10 ), ExtResource( 7 ), ExtResource( 7 ), ExtResource( 11 ) ],
|
|
"loop": true,
|
|
"name": "dash",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ],
|
|
"loop": true,
|
|
"name": "backward",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 13 ), ExtResource( 13 ), ExtResource( 8 ) ],
|
|
"loop": true,
|
|
"name": "standing up",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[node name="Player" type="Area2D"]
|
|
script = ExtResource( 5 )
|
|
__meta__ = {
|
|
"_edit_group_": true
|
|
}
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
frames = SubResource( 8 )
|
|
animation = "standing up"
|
|
frame = 1
|
|
playing = true
|
|
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]
|
|
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]
|