344 lines
8.9 KiB
Text
344 lines
8.9 KiB
Text
[gd_scene load_steps=45 format=3 uid="uid://2ix3b3dgvsb8"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://biyt8lt8upr57" path="res://assets/sprites/knight.png" id="1_eln0f"]
|
|
[ext_resource type="Script" path="res://scripts/player.gd" id="1_kr8bd"]
|
|
[ext_resource type="AudioStream" uid="uid://g2u2p5u4ngwg" path="res://assets/sounds/jump.wav" id="2_1534m"]
|
|
[ext_resource type="PackedScene" uid="uid://cpvniud8u5cye" path="res://scenes/healthbar.tscn" id="4_qiotf"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vqg2e"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(64, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uvy3x"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(0, 224, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_iivs4"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(32, 224, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_80rif"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(64, 224, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6fjjv"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(96, 224, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l0wiy"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(0, 192, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ax3sr"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(32, 192, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ashfv"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(64, 192, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_x8aus"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(96, 192, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xt6x1"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qigwk"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rl4qg"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_w5wnh"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r3luj"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(64, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ypqk0"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(0, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jccvt"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(32, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6uq80"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(64, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jjvof"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(96, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_j2b3a"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(128, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_me27c"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(160, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v24te"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(192, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l2fu4"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(224, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_utnbs"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(0, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_elbi0"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(32, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_058hd"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(64, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_iwikn"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(96, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rjri0"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(128, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vpbpm"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(160, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_y43fb"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(192, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lck22"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(224, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ubi3o"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(0, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_db76j"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(32, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ach3q"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(64, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8ocsr"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(96, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l5pj6"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(128, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ep4xs"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(160, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pqgbo"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(192, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_w5eqv"]
|
|
atlas = ExtResource("1_eln0f")
|
|
region = Rect2(224, 96, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ngeqx"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vqg2e")
|
|
}],
|
|
"loop": true,
|
|
"name": &"crouch",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_uvy3x")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_iivs4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_80rif")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6fjjv")
|
|
}],
|
|
"loop": true,
|
|
"name": &"death",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l0wiy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ax3sr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ashfv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_x8aus")
|
|
}],
|
|
"loop": true,
|
|
"name": &"hit",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xt6x1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qigwk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rl4qg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_w5wnh")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_r3luj")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ypqk0")
|
|
}, {
|
|
"duration": 2.0,
|
|
"texture": SubResource("AtlasTexture_jccvt")
|
|
}, {
|
|
"duration": 2.0,
|
|
"texture": SubResource("AtlasTexture_6uq80")
|
|
}, {
|
|
"duration": 2.0,
|
|
"texture": SubResource("AtlasTexture_jjvof")
|
|
}, {
|
|
"duration": 2.0,
|
|
"texture": SubResource("AtlasTexture_j2b3a")
|
|
}, {
|
|
"duration": 2.0,
|
|
"texture": SubResource("AtlasTexture_me27c")
|
|
}, {
|
|
"duration": 2.0,
|
|
"texture": SubResource("AtlasTexture_v24te")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l2fu4")
|
|
}],
|
|
"loop": true,
|
|
"name": &"roll",
|
|
"speed": 30.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_utnbs")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_elbi0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_058hd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_iwikn")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rjri0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vpbpm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_y43fb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lck22")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ubi3o")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_db76j")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ach3q")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_8ocsr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l5pj6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ep4xs")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_pqgbo")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_w5eqv")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_esl4s"]
|
|
radius = 5.0
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
position = Vector2(2, 0)
|
|
collision_mask = 3
|
|
script = ExtResource("1_kr8bd")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(1, -12)
|
|
sprite_frames = SubResource("SpriteFrames_ngeqx")
|
|
animation = &"roll"
|
|
frame_progress = 0.509179
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(1, -5)
|
|
shape = SubResource("CircleShape2D_esl4s")
|
|
|
|
[node name="Jump" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("2_1534m")
|
|
bus = &"SFX"
|
|
|
|
[node name="RollTimer" type="Timer" parent="."]
|
|
wait_time = 0.5
|
|
one_shot = true
|
|
|
|
[node name="ui" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Healthbar" parent="ui" instance=ExtResource("4_qiotf")]
|
|
offset_left = 30.0
|
|
offset_top = 23.0
|
|
offset_right = 368.0
|
|
offset_bottom = 54.0
|