Files
scrap-signal/entities/player/player.tscn

535 lines
15 KiB
Plaintext

[gd_scene format=3 uid="uid://mh3msmluve7p"]
[ext_resource type="Script" uid="uid://tuwu6hmfun0e" path="res://entities/player/player.gd" id="1_fkugw"]
[ext_resource type="Texture2D" uid="uid://dhmrfo4dfhbww" path="res://tests/assets/sprites/player_001/IDLE/idle_down.png" id="2_bectd"]
[ext_resource type="Texture2D" uid="uid://byy4h3q72guaj" path="res://tests/assets/sprites/player_001/IDLE/idle_left.png" id="3_wvtmh"]
[ext_resource type="Texture2D" uid="uid://bsdcjceiotf2y" path="res://tests/assets/sprites/player_001/IDLE/idle_right.png" id="4_7thud"]
[ext_resource type="Texture2D" uid="uid://3q718xogyij0" path="res://tests/assets/sprites/player_001/IDLE/idle_up.png" id="5_a1qjk"]
[ext_resource type="Texture2D" uid="uid://bx3l0csay8b8b" path="res://tests/assets/sprites/player_001/RUN/run_down.png" id="6_j3ovn"]
[ext_resource type="Texture2D" uid="uid://ctx7kmb6730oe" path="res://tests/assets/sprites/player_001/RUN/run_left.png" id="7_afbqv"]
[ext_resource type="Texture2D" uid="uid://saic6hvcajw0" path="res://tests/assets/sprites/player_001/RUN/run_right.png" id="8_gx6sm"]
[ext_resource type="Texture2D" uid="uid://dmijbmqm1ysft" path="res://tests/assets/sprites/player_001/RUN/run_up.png" id="9_yqrof"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_26q78"]
radius = 6.0
height = 12.0
[sub_resource type="AtlasTexture" id="AtlasTexture_3wlsy"]
atlas = ExtResource("2_bectd")
region = Rect2(0, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_b2kln"]
atlas = ExtResource("2_bectd")
region = Rect2(96, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_we0b7"]
atlas = ExtResource("2_bectd")
region = Rect2(192, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_mtric"]
atlas = ExtResource("2_bectd")
region = Rect2(288, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_eyb6c"]
atlas = ExtResource("2_bectd")
region = Rect2(384, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_221hk"]
atlas = ExtResource("2_bectd")
region = Rect2(480, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_ghoj8"]
atlas = ExtResource("2_bectd")
region = Rect2(576, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_t1t22"]
atlas = ExtResource("2_bectd")
region = Rect2(672, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_50fht"]
atlas = ExtResource("3_wvtmh")
region = Rect2(0, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_wuv6x"]
atlas = ExtResource("3_wvtmh")
region = Rect2(96, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_qpopc"]
atlas = ExtResource("3_wvtmh")
region = Rect2(192, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_wq0jh"]
atlas = ExtResource("3_wvtmh")
region = Rect2(288, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_gt4e4"]
atlas = ExtResource("3_wvtmh")
region = Rect2(384, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_24ehl"]
atlas = ExtResource("3_wvtmh")
region = Rect2(480, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_bwdx1"]
atlas = ExtResource("3_wvtmh")
region = Rect2(576, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_vewsg"]
atlas = ExtResource("3_wvtmh")
region = Rect2(672, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_2soq1"]
atlas = ExtResource("4_7thud")
region = Rect2(0, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_8q4fm"]
atlas = ExtResource("4_7thud")
region = Rect2(96, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_np63p"]
atlas = ExtResource("4_7thud")
region = Rect2(192, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_0eo6o"]
atlas = ExtResource("4_7thud")
region = Rect2(288, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_ttr27"]
atlas = ExtResource("4_7thud")
region = Rect2(384, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_13wue"]
atlas = ExtResource("4_7thud")
region = Rect2(480, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_wy7bt"]
atlas = ExtResource("4_7thud")
region = Rect2(576, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_geky7"]
atlas = ExtResource("4_7thud")
region = Rect2(672, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_qwspa"]
atlas = ExtResource("5_a1qjk")
region = Rect2(0, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_r633c"]
atlas = ExtResource("5_a1qjk")
region = Rect2(96, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_pacje"]
atlas = ExtResource("5_a1qjk")
region = Rect2(192, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_2h0qb"]
atlas = ExtResource("5_a1qjk")
region = Rect2(288, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_mmk7k"]
atlas = ExtResource("5_a1qjk")
region = Rect2(384, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_g3pa7"]
atlas = ExtResource("5_a1qjk")
region = Rect2(480, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_7otdo"]
atlas = ExtResource("5_a1qjk")
region = Rect2(576, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_c112w"]
atlas = ExtResource("5_a1qjk")
region = Rect2(672, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_u37te"]
atlas = ExtResource("6_j3ovn")
region = Rect2(0, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_ssgi7"]
atlas = ExtResource("6_j3ovn")
region = Rect2(96, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_rtlkk"]
atlas = ExtResource("6_j3ovn")
region = Rect2(192, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_a2brg"]
atlas = ExtResource("6_j3ovn")
region = Rect2(288, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_arp52"]
atlas = ExtResource("6_j3ovn")
region = Rect2(384, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_jjk8f"]
atlas = ExtResource("6_j3ovn")
region = Rect2(480, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_cnswy"]
atlas = ExtResource("6_j3ovn")
region = Rect2(576, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_q5bfg"]
atlas = ExtResource("6_j3ovn")
region = Rect2(672, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_p22ii"]
atlas = ExtResource("7_afbqv")
region = Rect2(0, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_7rgwd"]
atlas = ExtResource("7_afbqv")
region = Rect2(96, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_24so6"]
atlas = ExtResource("7_afbqv")
region = Rect2(192, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_sk710"]
atlas = ExtResource("7_afbqv")
region = Rect2(288, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_kbbq5"]
atlas = ExtResource("7_afbqv")
region = Rect2(384, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_akixf"]
atlas = ExtResource("7_afbqv")
region = Rect2(480, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_3y563"]
atlas = ExtResource("7_afbqv")
region = Rect2(576, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_sgfia"]
atlas = ExtResource("7_afbqv")
region = Rect2(672, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_sv458"]
atlas = ExtResource("8_gx6sm")
region = Rect2(0, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_pth52"]
atlas = ExtResource("8_gx6sm")
region = Rect2(96, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_4iu2e"]
atlas = ExtResource("8_gx6sm")
region = Rect2(192, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_0q7bw"]
atlas = ExtResource("8_gx6sm")
region = Rect2(288, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_qb5t2"]
atlas = ExtResource("8_gx6sm")
region = Rect2(384, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_qsjf6"]
atlas = ExtResource("8_gx6sm")
region = Rect2(480, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_k3n4f"]
atlas = ExtResource("8_gx6sm")
region = Rect2(576, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_gmffv"]
atlas = ExtResource("8_gx6sm")
region = Rect2(672, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_rqau1"]
atlas = ExtResource("9_yqrof")
region = Rect2(0, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_gv6fn"]
atlas = ExtResource("9_yqrof")
region = Rect2(96, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_2vqvu"]
atlas = ExtResource("9_yqrof")
region = Rect2(192, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_yb4xh"]
atlas = ExtResource("9_yqrof")
region = Rect2(288, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_ix1gt"]
atlas = ExtResource("9_yqrof")
region = Rect2(384, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_sym6v"]
atlas = ExtResource("9_yqrof")
region = Rect2(480, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_dnai7"]
atlas = ExtResource("9_yqrof")
region = Rect2(576, 0, 96, 80)
[sub_resource type="AtlasTexture" id="AtlasTexture_u8til"]
atlas = ExtResource("9_yqrof")
region = Rect2(672, 0, 96, 80)
[sub_resource type="SpriteFrames" id="SpriteFrames_ix1gt"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_3wlsy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b2kln")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_we0b7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mtric")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_eyb6c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_221hk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ghoj8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t1t22")
}],
"loop": true,
"name": &"idle_down",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_50fht")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wuv6x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qpopc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wq0jh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gt4e4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_24ehl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bwdx1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vewsg")
}],
"loop": true,
"name": &"idle_left",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2soq1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8q4fm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_np63p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0eo6o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ttr27")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_13wue")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wy7bt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_geky7")
}],
"loop": true,
"name": &"idle_right",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qwspa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r633c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pacje")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2h0qb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mmk7k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g3pa7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7otdo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c112w")
}],
"loop": true,
"name": &"idle_up",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_u37te")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ssgi7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rtlkk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_a2brg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_arp52")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jjk8f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cnswy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q5bfg")
}],
"loop": true,
"name": &"walk_down",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_p22ii")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7rgwd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_24so6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sk710")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kbbq5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_akixf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3y563")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sgfia")
}],
"loop": true,
"name": &"walk_left",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sv458")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pth52")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4iu2e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0q7bw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qb5t2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qsjf6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k3n4f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gmffv")
}],
"loop": true,
"name": &"walk_right",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_rqau1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gv6fn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2vqvu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yb4xh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ix1gt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sym6v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dnai7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u8til")
}],
"loop": true,
"name": &"walk_up",
"speed": 10.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bectd"]
size = Vector2(45.375, 49.6875)
[node name="Player" type="Node2D" unique_id=628518902]
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=92363508]
script = ExtResource("1_fkugw")
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=865652003]
shape = SubResource("CapsuleShape2D_26q78")
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D" unique_id=1653637445]
zoom = Vector2(0.75, 0.75)
position_smoothing_enabled = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D" unique_id=1859344504]
position = Vector2(-1, -12)
sprite_frames = SubResource("SpriteFrames_ix1gt")
animation = &"walk_right"
autoplay = "idle_down"
[node name="InteractionArea" type="Area2D" parent="CharacterBody2D/AnimatedSprite2D" unique_id=22124935]
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D/AnimatedSprite2D/InteractionArea" unique_id=51125783]
position = Vector2(2, 6)
shape = SubResource("RectangleShape2D_bectd")
debug_color = Color(0.9411765, 0, 0.29411766, 0.19607843)