2024-08-13 01:01:40 +00:00
|
|
|
[gd_scene load_steps=39 format=3 uid="uid://go4yc8hfo1gq"]
|
2024-07-22 22:23:44 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
|
2024-08-13 01:01:40 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bqj4phkget2pp" path="res://graphics/player animations/Player Idle 48x48.png" id="2_fibqb"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b4te11j5ut62p" path="res://graphics/player animations/Player Death 64x64.png" id="2_lgyh4"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bnvk6gm188vsv" path="res://graphics/player animations/player jump 48x48.png" id="3_1rbvb"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bag8xvlev6yxg" path="res://graphics/player animations/player run 48x48.png" id="4_fouff"]
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_q43wd"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r0cll"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6ujxt"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1baju"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i445f"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7op4n"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mtsu2"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_an4ql"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cgbkp"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p6mmk"]
|
|
|
|
atlas = ExtResource("2_lgyh4")
|
|
|
|
region = Rect2(432, 0, 48, 48)
|
2024-07-22 23:38:39 +00:00
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aeg01"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1uaof"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gt6ba"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tay2c"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1ag8q"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hjiy4"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_82onf"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yqp8u"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_m6d3n"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ax7e1"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("2_fibqb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qrer8"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("3_1rbvb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wpiaq"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("3_1rbvb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kc70w"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("3_1rbvb")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i4hpn"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("4_fouff")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sri3h"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("4_fouff")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_igbwk"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("4_fouff")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t7p31"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("4_fouff")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ovti0"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("4_fouff")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2vy0d"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("4_fouff")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_klr2a"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("4_fouff")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ax6e1"]
|
2024-08-13 01:01:40 +00:00
|
|
|
atlas = ExtResource("4_fouff")
|
2024-07-22 23:38:39 +00:00
|
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_8idir"]
|
|
|
|
animations = [{
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
2024-08-13 01:01:40 +00:00
|
|
|
"texture": SubResource("AtlasTexture_q43wd")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_r0cll")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_6ujxt")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_1baju")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_i445f")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_7op4n")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_mtsu2")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_an4ql")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_cgbkp")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_p6mmk")
|
|
|
|
}],
|
|
|
|
"loop": false,
|
|
|
|
"name": &"death",
|
|
|
|
"speed": 12.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
2024-07-22 23:38:39 +00:00
|
|
|
"texture": SubResource("AtlasTexture_aeg01")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_1uaof")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_gt6ba")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_tay2c")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_1ag8q")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_hjiy4")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_82onf")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_yqp8u")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_m6d3n")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_ax7e1")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"idle",
|
|
|
|
"speed": 15.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_qrer8")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_wpiaq")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_kc70w")
|
|
|
|
}],
|
|
|
|
"loop": false,
|
|
|
|
"name": &"jump",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_i4hpn")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_sri3h")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_igbwk")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_t7p31")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_ovti0")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_2vy0d")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_klr2a")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_ax6e1")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"run",
|
|
|
|
"speed": 15.0
|
|
|
|
}]
|
2024-07-22 22:23:44 +00:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
|
2024-07-22 23:38:39 +00:00
|
|
|
radius = 12.0
|
2024-07-22 22:23:44 +00:00
|
|
|
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D"]
|
|
|
|
position = Vector2(-1, 0)
|
|
|
|
script = ExtResource("1_x87yo")
|
|
|
|
JUMP_VELOCITY = -500.0
|
|
|
|
PUSH_FORCE = 200
|
2024-07-23 01:04:24 +00:00
|
|
|
metadata/_edit_group_ = true
|
2024-07-22 23:38:39 +00:00
|
|
|
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
texture_filter = 1
|
|
|
|
sprite_frames = SubResource("SpriteFrames_8idir")
|
2024-08-20 01:07:42 +00:00
|
|
|
animation = &"jump"
|
2024-07-22 23:38:39 +00:00
|
|
|
autoplay = "idle"
|
2024-07-22 22:23:44 +00:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2024-07-22 23:38:39 +00:00
|
|
|
position = Vector2(0, 3)
|
2024-07-22 22:23:44 +00:00
|
|
|
shape = SubResource("CircleShape2D_ubfw4")
|
|
|
|
|
|
|
|
[node name="RightRay" type="RayCast2D" parent="."]
|
|
|
|
target_position = Vector2(25, 0)
|
|
|
|
|
|
|
|
[node name="LeftRay" type="RayCast2D" parent="."]
|
|
|
|
target_position = Vector2(-25, 0)
|
|
|
|
|
|
|
|
[node name="MarkerRight" type="Node2D" parent="."]
|
|
|
|
position = Vector2(16, -6)
|
|
|
|
|
|
|
|
[node name="MarkerLeft" type="Node2D" parent="."]
|
|
|
|
position = Vector2(-16, -6)
|
2024-08-20 01:07:42 +00:00
|
|
|
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|