187 lines
4.8 KiB
Plaintext
187 lines
4.8 KiB
Plaintext
[gd_scene load_steps=26 format=3 uid="uid://cxdkngh6fo5p7"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/player.gd" id="1_btp1f"]
|
|
[ext_resource type="Texture2D" uid="uid://bebck3y4sy2c8" path="res://assets/sprites/knight.png" id="1_uiil0"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v1bjp"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_b0pa1"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_go8pl"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1qkdf"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_npshh"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(64, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qgwdj"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(0, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wv0rq"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(32, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kqrkm"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(64, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2j53a"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(96, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_58bgj"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(128, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_npl2r"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(160, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_iiw8n"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(192, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_on6th"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(224, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_844j4"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(0, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4nq6e"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(32, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_k3ce1"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(64, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1bpnc"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(96, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l0cuk"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(128, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f78wu"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(160, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2tnwu"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(192, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1kmnq"]
|
|
atlas = ExtResource("1_uiil0")
|
|
region = Rect2(224, 96, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_j6wpo"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v1bjp")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_b0pa1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_go8pl")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1qkdf")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_npshh")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qgwdj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wv0rq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kqrkm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2j53a")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_58bgj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_npl2r")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_iiw8n")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_on6th")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_844j4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_4nq6e")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_k3ce1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1bpnc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l0cuk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_f78wu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2tnwu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1kmnq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_lh46r"]
|
|
radius = 5.0
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
collision_layer = 2
|
|
script = ExtResource("1_btp1f")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(0, -12)
|
|
sprite_frames = SubResource("SpriteFrames_j6wpo")
|
|
animation = &"jump"
|
|
autoplay = "idle"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -6)
|
|
shape = SubResource("CircleShape2D_lh46r")
|