58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
[gd_scene load_steps=9 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="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
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_lh46r"]
|
|
radius = 5.0
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
script = ExtResource("1_btp1f")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(0, -12)
|
|
sprite_frames = SubResource("SpriteFrames_j6wpo")
|
|
animation = &"idle"
|
|
autoplay = "idle"
|
|
frame_progress = 0.161906
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -6)
|
|
shape = SubResource("CircleShape2D_lh46r")
|