2024-07-22 23:38:33 +00:00
|
|
|
[gd_scene load_steps=31 format=3 uid="uid://go4yc8hfo1gq"]
|
2024-07-22 22:24:18 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
|
2024-07-22 23:38:33 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://r6ur1o2pbl12" path="res://graphics/Player Idle 48x48.png" id="2_uyqa1"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ctfkri0jeifh3" path="res://graphics/player run 48x48.png" id="3_hk77u"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://3h4cihwnev6s" path="res://graphics/player jump 48x48.png" id="3_x552f"]
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_g2f61"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_37tbu"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xwech"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_axvpn"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_61nch"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wtuhp"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ccmff"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gj7lm"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ludd0"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vu7tv"]
|
|
|
|
atlas = ExtResource("2_uyqa1")
|
|
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wp7y4"]
|
|
|
|
atlas = ExtResource("3_x552f")
|
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_g0eis"]
|
|
|
|
atlas = ExtResource("3_x552f")
|
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2umm3"]
|
|
|
|
atlas = ExtResource("3_x552f")
|
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5gwwv"]
|
|
|
|
atlas = ExtResource("3_hk77u")
|
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xiqd5"]
|
|
|
|
atlas = ExtResource("3_hk77u")
|
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uyt5l"]
|
|
|
|
atlas = ExtResource("3_hk77u")
|
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_787rm"]
|
|
|
|
atlas = ExtResource("3_hk77u")
|
|
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uuhlu"]
|
|
|
|
atlas = ExtResource("3_hk77u")
|
|
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mly1w"]
|
|
|
|
atlas = ExtResource("3_hk77u")
|
|
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f54on"]
|
|
|
|
atlas = ExtResource("3_hk77u")
|
|
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tp2w0"]
|
|
|
|
atlas = ExtResource("3_hk77u")
|
|
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_af3jv"]
|
|
|
|
atlas = ExtResource("3_x552f")
|
|
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vgukk"]
|
|
|
|
atlas = ExtResource("3_x552f")
|
|
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nr06g"]
|
|
|
|
atlas = ExtResource("3_x552f")
|
|
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_dlybq"]
|
|
|
|
animations = [{
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_g2f61")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_37tbu")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_xwech")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_axvpn")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_61nch")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_wtuhp")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_ccmff")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_gj7lm")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_ludd0")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_vu7tv")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"idle",
|
|
|
|
"speed": 15.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_wp7y4")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_g0eis")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_2umm3")
|
|
|
|
}],
|
|
|
|
"loop": false,
|
|
|
|
"name": &"jump",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_5gwwv")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_xiqd5")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_uyt5l")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_787rm")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_uuhlu")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_mly1w")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_f54on")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_tp2w0")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_af3jv")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_vgukk")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_nr06g")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"run",
|
|
|
|
"speed": 15.0
|
|
|
|
}]
|
2024-07-22 22:24:18 +00:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
|
2024-07-22 23:38:33 +00:00
|
|
|
radius = 12.0
|
2024-07-22 22:24:18 +00:00
|
|
|
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D"]
|
|
|
|
script = ExtResource("1_x87yo")
|
|
|
|
JUMP_VELOCITY = -500.0
|
|
|
|
PUSH_FORCE = 200
|
2024-07-22 23:38:33 +00:00
|
|
|
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
texture_filter = 1
|
|
|
|
sprite_frames = SubResource("SpriteFrames_dlybq")
|
|
|
|
animation = &"jump"
|
|
|
|
autoplay = "idle"
|
|
|
|
frame = 2
|
|
|
|
frame_progress = 1.0
|
2024-07-22 22:24:18 +00:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2024-07-22 23:38:33 +00:00
|
|
|
position = Vector2(0, 4)
|
2024-07-22 22:24:18 +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)
|