AugGodotGameCourse/augustgamecourse/scenes/player.tscn
2024-10-07 20:56:53 -04:00

348 lines
9.5 KiB
Plaintext

[gd_scene load_steps=49 format=3 uid="uid://dbgc24hrbtvxm"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_5qpif"]
[ext_resource type="Texture2D" uid="uid://d6d3re6epsh4" path="res://assets/graphics/player/death/Player Death 64x64.png" id="2_t1yra"]
[ext_resource type="Texture2D" uid="uid://pdvgf3y1lquv" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_vcmr0"]
[ext_resource type="Texture2D" uid="uid://cvh48exhs1ir1" path="res://assets/graphics/player/run/player run 48x48.png" id="3_a03rx"]
[ext_resource type="Texture2D" uid="uid://d0kfe5ms2vjbr" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_mvdmt"]
[ext_resource type="Texture2D" uid="uid://chroktky8p0g1" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="3_td76e"]
[ext_resource type="Texture2D" uid="uid://c0oo6kno61i0b" path="res://assets/graphics/player/punch/Player Punch 64x64.png" id="6_cp1mx"]
[sub_resource type="AtlasTexture" id="AtlasTexture_uru55"]
atlas = ExtResource("2_t1yra")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_f8t0f"]
atlas = ExtResource("2_t1yra")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gsumc"]
atlas = ExtResource("2_t1yra")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_5v4jf"]
atlas = ExtResource("2_t1yra")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ivq41"]
atlas = ExtResource("2_t1yra")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_tw2ob"]
atlas = ExtResource("2_t1yra")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_g8lv8"]
atlas = ExtResource("2_t1yra")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_c26el"]
atlas = ExtResource("2_t1yra")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_11ko7"]
atlas = ExtResource("2_t1yra")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_15v0y"]
atlas = ExtResource("2_t1yra")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_tm0rm"]
atlas = ExtResource("3_td76e")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yv45b"]
atlas = ExtResource("3_td76e")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_qcxh5"]
atlas = ExtResource("3_td76e")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_32phs"]
atlas = ExtResource("3_td76e")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_etdvv"]
atlas = ExtResource("2_vcmr0")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_aj5ep"]
atlas = ExtResource("2_vcmr0")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_qxp7n"]
atlas = ExtResource("2_vcmr0")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_8ypci"]
atlas = ExtResource("2_vcmr0")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_r8hvl"]
atlas = ExtResource("2_vcmr0")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_esrko"]
atlas = ExtResource("2_vcmr0")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_y2vr2"]
atlas = ExtResource("2_vcmr0")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yd3xy"]
atlas = ExtResource("2_vcmr0")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_essvh"]
atlas = ExtResource("2_vcmr0")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_4c8ee"]
atlas = ExtResource("2_vcmr0")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ryb4"]
atlas = ExtResource("3_mvdmt")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ie0y6"]
atlas = ExtResource("3_mvdmt")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vdfmb"]
atlas = ExtResource("3_mvdmt")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_m3mm6"]
atlas = ExtResource("6_cp1mx")
region = Rect2(128, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_651rh"]
atlas = ExtResource("6_cp1mx")
region = Rect2(192, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_pwqvs"]
atlas = ExtResource("6_cp1mx")
region = Rect2(256, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_1vc4x"]
atlas = ExtResource("6_cp1mx")
region = Rect2(320, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_qxesk"]
atlas = ExtResource("3_a03rx")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ardbr"]
atlas = ExtResource("3_a03rx")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yhaaq"]
atlas = ExtResource("3_a03rx")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_jjfaw"]
atlas = ExtResource("3_a03rx")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_snon0"]
atlas = ExtResource("3_a03rx")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_14kp5"]
atlas = ExtResource("3_a03rx")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_76poi"]
atlas = ExtResource("3_a03rx")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_rnnye"]
atlas = ExtResource("3_a03rx")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_wlxdo"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_uru55")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f8t0f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gsumc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5v4jf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ivq41")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tw2ob")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g8lv8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c26el")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_11ko7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_15v0y")
}],
"loop": false,
"name": &"death",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_tm0rm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yv45b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qcxh5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_32phs")
}],
"loop": false,
"name": &"hurt",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_etdvv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aj5ep")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qxp7n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8ypci")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r8hvl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_esrko")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y2vr2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yd3xy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_essvh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4c8ee")
}],
"loop": true,
"name": &"idle",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ryb4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ie0y6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vdfmb")
}],
"loop": false,
"name": &"jump",
"speed": 9.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_m3mm6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_651rh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pwqvs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1vc4x")
}],
"loop": false,
"name": &"punch",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qxesk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ardbr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yhaaq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jjfaw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_snon0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_14kp5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_76poi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rnnye")
}],
"loop": true,
"name": &"run",
"speed": 15.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_mcosy"]
[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_5qpif")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(0, -7)
sprite_frames = SubResource("SpriteFrames_wlxdo")
animation = &"idle"
autoplay = "idle"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_mcosy")
debug_color = Color(0.826895, 0.282133, 0.703752, 0.42)
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(19, 0)
collide_with_areas = true
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-19, 0)
collide_with_areas = true
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(22, 0)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-21, 0)
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]