187 lines
4.9 KiB
Plaintext
187 lines
4.9 KiB
Plaintext
[gd_scene load_steps=26 format=3 uid="uid://b72smvvbacy6g"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bda78yggl3vfm" path="res://assets/brackeys_platformer_assets/sprites/knight.png" id="1_3vyb7"]
|
|
[ext_resource type="Script" uid="uid://dfmh1h3u1186s" path="res://scripts/playermovement.gd" id="1_g2els"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_g2els"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qhqgy"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dqkch"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qlg0r"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tuyoq"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(64, 160, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fjrip"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(0, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_smehm"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(32, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ur7pv"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(64, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_y4r1p"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(96, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_d2wvv"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(128, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3v2ag"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(160, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jej6c"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(192, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f1ej7"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(224, 64, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_oprun"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(0, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a8ls1"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(32, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qfm1y"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(64, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fulsm"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(96, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4r5pv"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(128, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_60mlk"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(160, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i4ail"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(192, 96, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a38lo"]
|
|
atlas = ExtResource("1_3vyb7")
|
|
region = Rect2(224, 96, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_tuyoq"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_g2els")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qhqgy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_dqkch")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qlg0r")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 6.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tuyoq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fjrip")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_smehm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ur7pv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_y4r1p")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_d2wvv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_3v2ag")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jej6c")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_f1ej7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_oprun")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_a8ls1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qfm1y")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fulsm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_4r5pv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_60mlk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_i4ail")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_a38lo")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 11.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_3vyb7"]
|
|
radius = 6.0
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
z_index = 3
|
|
collision_layer = 2
|
|
script = ExtResource("1_g2els")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_tuyoq")
|
|
animation = &"jump"
|
|
autoplay = "default"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 6)
|
|
shape = SubResource("CircleShape2D_3vyb7")
|