326 lines
9.0 KiB
Plaintext
326 lines
9.0 KiB
Plaintext
[gd_scene load_steps=45 format=3 uid="uid://djgtbc1quqvwe"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/dudecontroller.gd" id="1_ay2gi"]
|
|
[ext_resource type="Texture2D" uid="uid://dvgh32yadcjcq" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_5mbmt"]
|
|
[ext_resource type="Texture2D" uid="uid://385u5ioc15bk" path="res://assets/graphics/player/dead/Player Death 64x64.png" id="2_10ats"]
|
|
[ext_resource type="Texture2D" uid="uid://1tiutqy11mhk" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="2_p1quv"]
|
|
[ext_resource type="Texture2D" uid="uid://2mxlso64vnrk" path="res://assets/graphics/player/run/player run 48x48.png" id="3_2y1a6"]
|
|
[ext_resource type="Texture2D" uid="uid://cwiun1ntuu02d" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_5o14d"]
|
|
[ext_resource type="Texture2D" uid="uid://du0e0ddagpw2p" path="res://assets/graphics/pickups/key.png" id="7_o78ee"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_iice4"]
|
|
radius = 6.32456
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5pxpi"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r74fh"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_m7phw"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gay5g"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t22ra"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_grdn6"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xqiyd"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0cbok"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_licv2"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p8pio"]
|
|
atlas = ExtResource("2_10ats")
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2erm2"]
|
|
atlas = ExtResource("2_p1quv")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ry778"]
|
|
atlas = ExtResource("2_p1quv")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1xrha"]
|
|
atlas = ExtResource("2_p1quv")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0oqh6"]
|
|
atlas = ExtResource("2_p1quv")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1yv5c"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tlaeb"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_20pqf"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2avsb"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_setfi"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2kldi"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fksgv"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_71xob"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mabyy"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1npam"]
|
|
atlas = ExtResource("2_5mbmt")
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6celb"]
|
|
atlas = ExtResource("3_5o14d")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vfeof"]
|
|
atlas = ExtResource("3_5o14d")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_x5qk1"]
|
|
atlas = ExtResource("3_5o14d")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aaf1m"]
|
|
atlas = ExtResource("3_2y1a6")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yycch"]
|
|
atlas = ExtResource("3_2y1a6")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qesu5"]
|
|
atlas = ExtResource("3_2y1a6")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gminf"]
|
|
atlas = ExtResource("3_2y1a6")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t50sr"]
|
|
atlas = ExtResource("3_2y1a6")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qmkn1"]
|
|
atlas = ExtResource("3_2y1a6")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sgy1b"]
|
|
atlas = ExtResource("3_2y1a6")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nc8cu"]
|
|
atlas = ExtResource("3_2y1a6")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ck70u"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_5pxpi")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_r74fh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_m7phw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gay5g")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_t22ra")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_grdn6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xqiyd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0cbok")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_licv2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_p8pio")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Dead",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2erm2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ry778")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1xrha")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0oqh6")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Hurt",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1yv5c")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tlaeb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_20pqf")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2avsb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_setfi")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2kldi")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fksgv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_71xob")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mabyy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1npam")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Idle",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6celb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vfeof")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_x5qk1")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Jump",
|
|
"speed": 8.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_aaf1m")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_yycch")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qesu5")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gminf")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_t50sr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qmkn1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_sgy1b")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nc8cu")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Run",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
|
|
script = ExtResource("1_ay2gi")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 2)
|
|
scale = Vector2(0.937476, 2.2372)
|
|
shape = SubResource("CircleShape2D_iice4")
|
|
debug_color = Color(0.598404, 0.370441, 1, 0.42)
|
|
|
|
[node name="RightRay" type="RayCast2D" parent="."]
|
|
target_position = Vector2(15, 0)
|
|
|
|
[node name="LeftRay" type="RayCast2D" parent="."]
|
|
position = Vector2(1, 0)
|
|
target_position = Vector2(-16, 0)
|
|
|
|
[node name="RightTarget" type="Node2D" parent="."]
|
|
position = Vector2(6, -5)
|
|
|
|
[node name="LeftTarget" type="Node2D" parent="."]
|
|
position = Vector2(-6, -5)
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
texture_filter = 1
|
|
scale = Vector2(1.00239, 0.967018)
|
|
sprite_frames = SubResource("SpriteFrames_ck70u")
|
|
animation = &"Dead"
|
|
autoplay = "Idle"
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
offset = Vector2(0, -30)
|
|
|
|
[node name="Key" type="Sprite2D" parent="."]
|
|
position = Vector2(1, 0)
|
|
scale = Vector2(0.0360825, 0.0360825)
|
|
texture = ExtResource("7_o78ee")
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|