283 lines
7.7 KiB
Plaintext
283 lines
7.7 KiB
Plaintext
[gd_scene load_steps=39 format=3 uid="uid://go4yc8hfo1gq"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/characterBody.gd" id="1_ymy68"]
|
|
[ext_resource type="Texture2D" uid="uid://714a2jbwrdbp" path="res://graphics/playerDeath/Player Death 64x64.png" id="2_gg54n"]
|
|
[ext_resource type="Texture2D" uid="uid://c0iiaebonyhh0" path="res://graphics/playerIdle/Player Idle 48x48.png" id="3_2dt21"]
|
|
[ext_resource type="Texture2D" uid="uid://xgoqfqmvorcx" path="res://graphics/playerJump/player jump 48x48.png" id="4_vwyst"]
|
|
[ext_resource type="Texture2D" uid="uid://vn23qn3f0dvc" path="res://graphics/playerRun/player run 48x48.png" id="5_qblux"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_eawrl"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8uxgh"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2vbai"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ekybb"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aq2t0"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7gx0v"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lqk3s"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4pmeq"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l14r3"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hw4pw"]
|
|
atlas = ExtResource("2_gg54n")
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_htcu2"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ontj7"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gv7tn"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f4ltu"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_m44rj"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mvrul"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cq1wt"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5mc5v"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yclfw"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(384, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rgyuc"]
|
|
atlas = ExtResource("3_2dt21")
|
|
region = Rect2(432, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pbehb"]
|
|
atlas = ExtResource("4_vwyst")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_o4ud8"]
|
|
atlas = ExtResource("4_vwyst")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ivggc"]
|
|
atlas = ExtResource("4_vwyst")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_d6cbg"]
|
|
atlas = ExtResource("5_qblux")
|
|
region = Rect2(0, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cyg7w"]
|
|
atlas = ExtResource("5_qblux")
|
|
region = Rect2(48, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lejph"]
|
|
atlas = ExtResource("5_qblux")
|
|
region = Rect2(96, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cu62b"]
|
|
atlas = ExtResource("5_qblux")
|
|
region = Rect2(144, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vio7d"]
|
|
atlas = ExtResource("5_qblux")
|
|
region = Rect2(192, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t6raw"]
|
|
atlas = ExtResource("5_qblux")
|
|
region = Rect2(240, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_srqae"]
|
|
atlas = ExtResource("5_qblux")
|
|
region = Rect2(288, 0, 48, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dfgfp"]
|
|
atlas = ExtResource("5_qblux")
|
|
region = Rect2(336, 0, 48, 48)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_a6t6h"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_eawrl")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_8uxgh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2vbai")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ekybb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_aq2t0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7gx0v")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lqk3s")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_4pmeq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l14r3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_hw4pw")
|
|
}],
|
|
"loop": false,
|
|
"name": &"death",
|
|
"speed": 15.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_htcu2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ontj7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gv7tn")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_f4ltu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_m44rj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mvrul")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_cq1wt")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_5mc5v")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_yclfw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rgyuc")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 15.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_pbehb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_o4ud8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ivggc")
|
|
}],
|
|
"loop": false,
|
|
"name": &"jump",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_d6cbg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_cyg7w")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lejph")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_cu62b")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vio7d")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_t6raw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_srqae")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_dfgfp")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 15.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
|
|
radius = 13.0384
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player", "sprite"]]
|
|
position = Vector2(-1, 0)
|
|
script = ExtResource("1_ymy68")
|
|
JUMP_VELOCITY = -500.0
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_a6t6h")
|
|
animation = &"idle"
|
|
autoplay = "idle"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 3)
|
|
shape = SubResource("CircleShape2D_ubfw4")
|
|
|
|
[node name="RightRay" type="RayCast2D" parent="."]
|
|
position = Vector2(0, 3)
|
|
target_position = Vector2(29, 0)
|
|
|
|
[node name="LeftRay" type="RayCast2D" parent="."]
|
|
position = Vector2(0, 3)
|
|
target_position = Vector2(-29, 0)
|
|
|
|
[node name="MarkerRight" type="Node2D" parent="."]
|
|
position = Vector2(16, -6)
|
|
|
|
[node name="MarkerLeft" type="Node2D" parent="."]
|
|
position = Vector2(-16, -6)
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="onAnimationFinished"]
|