unnamed-topdown-game/scenes/player.tscn
2026-04-27 20:23:25 -04:00

170 lines
4.4 KiB
Plaintext

[gd_scene format=3 uid="uid://dhe3138du1cy"]
[ext_resource type="Script" uid="uid://433o2c0j2ci7" path="res://scripts/playerController.gd" id="1_g2els"]
[ext_resource type="Texture2D" uid="uid://cw64cil0fdk45" path="res://assets/player_sprite.png" id="2_qhqgy"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_8cj0n"]
radius = 5.0
height = 14.0
[sub_resource type="AtlasTexture" id="AtlasTexture_lnu2h"]
atlas = ExtResource("2_qhqgy")
region = Rect2(17, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_lbhrr"]
atlas = ExtResource("2_qhqgy")
region = Rect2(17, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_iywne"]
atlas = ExtResource("2_qhqgy")
region = Rect2(17, 16, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ssvqc"]
atlas = ExtResource("2_qhqgy")
region = Rect2(17, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_264po"]
atlas = ExtResource("2_qhqgy")
region = Rect2(17, 32, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_p57ef"]
atlas = ExtResource("2_qhqgy")
region = Rect2(1, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_u5sy4"]
atlas = ExtResource("2_qhqgy")
region = Rect2(1, 16, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_gee14"]
atlas = ExtResource("2_qhqgy")
region = Rect2(1, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_0tnpc"]
atlas = ExtResource("2_qhqgy")
region = Rect2(1, 32, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_vtaks"]
atlas = ExtResource("2_qhqgy")
region = Rect2(49, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_kvpfn"]
atlas = ExtResource("2_qhqgy")
region = Rect2(49, 16, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_dinhu"]
atlas = ExtResource("2_qhqgy")
region = Rect2(49, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_kvuet"]
atlas = ExtResource("2_qhqgy")
region = Rect2(49, 32, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ir15t"]
atlas = ExtResource("2_qhqgy")
region = Rect2(33, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_trtic"]
atlas = ExtResource("2_qhqgy")
region = Rect2(33, 32, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_rysoc"]
atlas = ExtResource("2_qhqgy")
region = Rect2(33, 0, 12, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ca42v"]
atlas = ExtResource("2_qhqgy")
region = Rect2(33, 16, 12, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_lnu2h"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lnu2h")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lbhrr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iywne")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ssvqc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_264po")
}],
"loop": true,
"name": &"walk_down",
"speed": 8.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_p57ef")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u5sy4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gee14")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0tnpc")
}],
"loop": true,
"name": &"walk_left",
"speed": 8.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vtaks")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kvpfn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dinhu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kvuet")
}],
"loop": true,
"name": &"walk_right",
"speed": 8.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ir15t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_trtic")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rysoc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ca42v")
}],
"loop": true,
"name": &"walk_up",
"speed": 8.0
}]
[node name="player" type="CharacterBody2D" unique_id=151121176]
script = ExtResource("1_g2els")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1008512841]
shape = SubResource("CapsuleShape2D_8cj0n")
[node name="Camera2D" type="Camera2D" parent="." unique_id=1569990257]
zoom = Vector2(10, 10)
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=2090459176]
sprite_frames = SubResource("SpriteFrames_lnu2h")
animation = &"walk_up"
frame_progress = 0.04671712