2025-01-21 01:44:44 +00:00
|
|
|
[gd_scene load_steps=28 format=3 uid="uid://b75mow511wmmb"]
|
2025-01-14 00:30:08 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/charactercontroller.gd" id="1_racyk"]
|
2025-01-21 01:44:44 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://d2gvpgkw8np1c" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_xdqt5"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ctneeupm1dwsb" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_0nv1p"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ccxw74sa7kyv" path="res://assets/graphics/player/run/player run 48x48.png" id="3_d2rrr"]
|
2025-01-14 00:30:08 +00:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_i8a0m"]
|
|
|
|
|
2025-01-21 01:44:44 +00:00
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_afagl"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_euos0"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_81j0b"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nvqq6"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f5kfk"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4xfed"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hoplt"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3mtsu"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_en8us"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8f7g2"]
|
|
|
|
atlas = ExtResource("2_xdqt5")
|
|
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pnfvt"]
|
|
|
|
atlas = ExtResource("3_0nv1p")
|
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8ui61"]
|
|
|
|
atlas = ExtResource("3_0nv1p")
|
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uh01i"]
|
|
|
|
atlas = ExtResource("3_0nv1p")
|
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qjxe0"]
|
|
|
|
atlas = ExtResource("3_d2rrr")
|
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_taigb"]
|
|
|
|
atlas = ExtResource("3_d2rrr")
|
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8a5ih"]
|
|
|
|
atlas = ExtResource("3_d2rrr")
|
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4sr5y"]
|
|
|
|
atlas = ExtResource("3_d2rrr")
|
|
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7ont0"]
|
|
|
|
atlas = ExtResource("3_d2rrr")
|
|
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cmjei"]
|
|
|
|
atlas = ExtResource("3_d2rrr")
|
|
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lwedr"]
|
|
|
|
atlas = ExtResource("3_d2rrr")
|
|
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_h0ov4"]
|
|
|
|
atlas = ExtResource("3_d2rrr")
|
|
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_2kykc"]
|
|
|
|
animations = [{
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_afagl")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_euos0")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_81j0b")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_nvqq6")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_f5kfk")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_4xfed")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_hoplt")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_3mtsu")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_en8us")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_8f7g2")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"idle",
|
|
|
|
"speed": 12.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_pnfvt")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_8ui61")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_uh01i")
|
|
|
|
}],
|
|
|
|
"loop": false,
|
|
|
|
"name": &"jump",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_qjxe0")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_taigb")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_8a5ih")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_4sr5y")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_7ont0")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_cmjei")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_lwedr")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_h0ov4")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"run",
|
|
|
|
"speed": 12.0
|
|
|
|
}]
|
|
|
|
|
2025-01-14 01:58:53 +00:00
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
|
2025-01-14 00:30:08 +00:00
|
|
|
script = ExtResource("1_racyk")
|
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource("CircleShape2D_i8a0m")
|
|
|
|
debug_color = Color(1, 0, 0, 0.419608)
|
|
|
|
|
|
|
|
[node name="RightRay" type="RayCast2D" parent="."]
|
|
|
|
target_position = Vector2(25, 0)
|
|
|
|
|
|
|
|
[node name="LeftRay" type="RayCast2D" parent="."]
|
|
|
|
target_position = Vector2(-25, 0)
|
2025-01-14 01:58:53 +00:00
|
|
|
|
|
|
|
[node name="RightTarget" type="Node2D" parent="."]
|
|
|
|
position = Vector2(10, -5)
|
|
|
|
|
|
|
|
[node name="LeftTarget" type="Node2D" parent="."]
|
|
|
|
position = Vector2(-10, -5)
|
2025-01-21 01:44:44 +00:00
|
|
|
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
|
|
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
texture_filter = 1
|
|
|
|
sprite_frames = SubResource("SpriteFrames_2kykc")
|
|
|
|
animation = &"jump"
|
|
|
|
autoplay = "jump"
|
|
|
|
frame = 2
|
|
|
|
frame_progress = 1.0
|