318 lines
8.7 KiB
Plaintext
318 lines
8.7 KiB
Plaintext
[gd_scene load_steps=44 format=3 uid="uid://b6vk2imhuhv0j"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/dudecontroller.gd" id="1_esbkk"]
|
|
[ext_resource type="Texture2D" uid="uid://4hq64jj4kprc" path="res://assets/graphics/player/death/Player Death 64x64.png" id="2_bws84"]
|
|
[ext_resource type="Texture2D" uid="uid://bibmmytjgw0nl" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="2_gm3uu"]
|
|
[ext_resource type="Texture2D" uid="uid://da3mdnk0s8bxc" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_jvkyl"]
|
|
[ext_resource type="Texture2D" uid="uid://cfmrxvwojl071" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_nnfwu"]
|
|
[ext_resource type="Texture2D" uid="uid://lk01unajxhx0" path="res://assets/graphics/player/run/player run 48x48.png" id="3_qml56"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_drde1"]
|
|
radius = 15.0
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_36q7i"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_j4tb0"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wghdt"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bh361"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7wfdh"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_o0mvc"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p2eca"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jc1nd"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_q1uk6"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gqkgi"]
|
|
atlas = ExtResource("2_bws84")
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6lqi3"]
|
|
atlas = ExtResource("2_gm3uu")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sserb"]
|
|
atlas = ExtResource("2_gm3uu")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tkl74"]
|
|
atlas = ExtResource("2_gm3uu")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7br0y"]
|
|
atlas = ExtResource("2_gm3uu")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v6vtg"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r6wh0"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_eu1ry"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xh6el"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hmmw7"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_s5e0w"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ju1ix"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wrcia"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_feges"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nngfh"]
|
|
atlas = ExtResource("2_jvkyl")
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_enfrq"]
|
|
atlas = ExtResource("3_nnfwu")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_onfup"]
|
|
atlas = ExtResource("3_nnfwu")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ir0g5"]
|
|
atlas = ExtResource("3_nnfwu")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ui6j2"]
|
|
atlas = ExtResource("3_qml56")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kck86"]
|
|
atlas = ExtResource("3_qml56")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ahfj0"]
|
|
atlas = ExtResource("3_qml56")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8r5hg"]
|
|
atlas = ExtResource("3_qml56")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qrp3k"]
|
|
atlas = ExtResource("3_qml56")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vk50f"]
|
|
atlas = ExtResource("3_qml56")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_st2c2"]
|
|
atlas = ExtResource("3_qml56")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3pjlk"]
|
|
atlas = ExtResource("3_qml56")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_xt5u3"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_36q7i")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_j4tb0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wghdt")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_bh361")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7wfdh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_o0mvc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_p2eca")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jc1nd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_q1uk6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gqkgi")
|
|
}],
|
|
"loop": false,
|
|
"name": &"death",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6lqi3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_sserb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tkl74")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7br0y")
|
|
}],
|
|
"loop": false,
|
|
"name": &"hurt",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v6vtg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_r6wh0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_eu1ry")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xh6el")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_hmmw7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_s5e0w")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ju1ix")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wrcia")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_feges")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nngfh")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_enfrq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_onfup")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ir0g5")
|
|
}],
|
|
"loop": false,
|
|
"name": &"jump",
|
|
"speed": 8.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ui6j2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kck86")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ahfj0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_8r5hg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qrp3k")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vk50f")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_st2c2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_3pjlk")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
|
|
script = ExtResource("1_esbkk")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
rotation = -0.0421956
|
|
shape = SubResource("CircleShape2D_drde1")
|
|
debug_color = Color(0.459127, 0.454101, 0.981072, 0.42)
|
|
|
|
[node name="RightRay" type="RayCast2D" parent="."]
|
|
target_position = Vector2(17, 0)
|
|
|
|
[node name="LeftRay" type="RayCast2D" parent="."]
|
|
target_position = Vector2(-17, 0)
|
|
|
|
[node name="RightTarget" type="Node2D" parent="."]
|
|
position = Vector2(16, -5)
|
|
|
|
[node name="LeftTarget" type="Node2D" parent="."]
|
|
position = Vector2(-16, -5)
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
texture_filter = 1
|
|
position = Vector2(0, -1)
|
|
sprite_frames = SubResource("SpriteFrames_xt5u3")
|
|
animation = &"death"
|
|
autoplay = "idle"
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
offset = Vector2(0, -40)
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|