237 lines
6.2 KiB
Plaintext
237 lines
6.2 KiB
Plaintext
[gd_scene load_steps=33 format=3 uid="uid://r1ex2hm0w68w"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://rreep3laiho3" path="res://assets/sprites/knight.png" id="1_bdpdo"]
|
|
[ext_resource type="Script" path="res://scripts/player.gd" id="1_ttddr"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_flmdw"]
|
|
radius = 6.08276
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_khi4m"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_b6rxo"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rxxsx"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aqn6i"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_adjag"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(0, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_38xna"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(32, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r5svv"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(64, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ls2a4"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(96, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5ncli"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(128, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_k3i8h"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(160, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tms7b"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(192, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xitvk"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(224, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l1urg"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(0, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jpa7q"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(32, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_50l3e"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(64, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e1lxk"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(96, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_suufl"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(128, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lu04q"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(160, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jdlrl"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(192, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_k7asf"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(224, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ncdm3"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(0, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xsfv4"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(32, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ngoxg"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(64, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0qpvs"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(96, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_c0i1o"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(128, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yf7yy"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(160, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6k6qs"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(192, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_woy78"]
|
|
atlas = ExtResource("1_bdpdo")
|
|
region = Rect2(224, 96, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_5pxeq"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_khi4m")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_b6rxo")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rxxsx")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_aqn6i")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_adjag")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_38xna")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_r5svv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ls2a4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_5ncli")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_k3i8h")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tms7b")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xitvk")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l1urg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jpa7q")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_50l3e")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_e1lxk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_suufl")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lu04q")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jdlrl")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_k7asf")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ncdm3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xsfv4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ngoxg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0qpvs")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_c0i1o")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_yf7yy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6k6qs")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_woy78")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
z_index = 5
|
|
collision_layer = 2
|
|
script = ExtResource("1_ttddr")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 6)
|
|
shape = SubResource("CircleShape2D_flmdw")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_5pxeq")
|
|
animation = &"jump"
|
|
autoplay = "idle"
|
|
frame_progress = 0.149237
|