207 lines
5.7 KiB
Plaintext
207 lines
5.7 KiB
Plaintext
[gd_scene load_steps=28 format=3 uid="uid://cjqhmd3158nb7"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/dudecontroller.gd" id="1_u27sl"]
|
|
[ext_resource type="Texture2D" uid="uid://cjuaglcx1l8mq" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_s31uh"]
|
|
[ext_resource type="Texture2D" uid="uid://b82ecqnclroum" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_5pc3d"]
|
|
[ext_resource type="Texture2D" uid="uid://bddwju2m8xvbj" path="res://assets/graphics/player/run/player run 48x48.png" id="3_pvg6g"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_pg3nc"]
|
|
radius = 18.1108
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mirx3"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ur0m7"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_m2fh1"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lqxd8"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_q1uhj"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3nxhs"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uly7f"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a0rgn"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vl0t4"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ywq8a"]
|
|
atlas = ExtResource("2_s31uh")
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qbdur"]
|
|
atlas = ExtResource("3_5pc3d")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e0phq"]
|
|
atlas = ExtResource("3_5pc3d")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aagb2"]
|
|
atlas = ExtResource("3_5pc3d")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_waibj"]
|
|
atlas = ExtResource("3_pvg6g")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_royxn"]
|
|
atlas = ExtResource("3_pvg6g")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_58lgm"]
|
|
atlas = ExtResource("3_pvg6g")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sh18f"]
|
|
atlas = ExtResource("3_pvg6g")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1wubr"]
|
|
atlas = ExtResource("3_pvg6g")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v0216"]
|
|
atlas = ExtResource("3_pvg6g")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ddbn2"]
|
|
atlas = ExtResource("3_pvg6g")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_txi2q"]
|
|
atlas = ExtResource("3_pvg6g")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_p5ykk"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mirx3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ur0m7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_m2fh1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lqxd8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_q1uhj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_3nxhs")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_uly7f")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_a0rgn")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vl0t4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ywq8a")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qbdur")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_e0phq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_aagb2")
|
|
}],
|
|
"loop": false,
|
|
"name": &"jump",
|
|
"speed": 8.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_waibj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_royxn")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_58lgm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_sh18f")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1wubr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v0216")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ddbn2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_txi2q")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
|
|
script = ExtResource("1_u27sl")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 2)
|
|
scale = Vector2(0.8, 0.8)
|
|
shape = SubResource("CircleShape2D_pg3nc")
|
|
debug_color = Color(0.178776, 0.565003, 0.825276, 0.42)
|
|
|
|
[node name="RightRay" type="RayCast2D" parent="."]
|
|
target_position = Vector2(17, 0)
|
|
|
|
[node name="LeftRay" type="RayCast2D" parent="."]
|
|
target_position = Vector2(-19, 0)
|
|
|
|
[node name="RightTarget" type="Node2D" parent="."]
|
|
position = Vector2(18, -5)
|
|
|
|
[node name="LeftTarget" type="Node2D" parent="."]
|
|
position = Vector2(-18, -5)
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_p5ykk")
|
|
animation = &"idle"
|
|
autoplay = "run"
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(-1, 0)
|
|
offset = Vector2(0, -40)
|