itrpg/scenes/units/player.tscn
2025-03-21 19:38:15 +01:00

126 lines
3.1 KiB
Plaintext

[gd_scene load_steps=16 format=3 uid="uid://wtijljokgpot"]
[ext_resource type="Texture2D" uid="uid://d3tfo61gemayy" path="res://assets/sprites/units/$Cat_Female (2).png" id="1_pkbir"]
[sub_resource type="AtlasTexture" id="AtlasTexture_esfxm"]
atlas = ExtResource("1_pkbir")
region = Rect2(0, 0, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_15tbu"]
atlas = ExtResource("1_pkbir")
region = Rect2(48, 0, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_55td2"]
atlas = ExtResource("1_pkbir")
region = Rect2(96, 0, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_rwmet"]
atlas = ExtResource("1_pkbir")
region = Rect2(0, 60, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_xovxq"]
atlas = ExtResource("1_pkbir")
region = Rect2(48, 60, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_174p4"]
atlas = ExtResource("1_pkbir")
region = Rect2(96, 60, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_ts5o2"]
atlas = ExtResource("1_pkbir")
region = Rect2(0, 120, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_olx12"]
atlas = ExtResource("1_pkbir")
region = Rect2(48, 120, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_gxusr"]
atlas = ExtResource("1_pkbir")
region = Rect2(96, 120, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_oti7e"]
atlas = ExtResource("1_pkbir")
region = Rect2(0, 180, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_ad5rf"]
atlas = ExtResource("1_pkbir")
region = Rect2(48, 180, 48, 60)
[sub_resource type="AtlasTexture" id="AtlasTexture_da23m"]
atlas = ExtResource("1_pkbir")
region = Rect2(96, 180, 48, 60)
[sub_resource type="SpriteFrames" id="SpriteFrames_0rwas"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_esfxm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_15tbu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_55td2")
}],
"loop": true,
"name": &"down",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_rwmet")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xovxq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_174p4")
}],
"loop": true,
"name": &"left",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ts5o2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_olx12")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gxusr")
}],
"loop": true,
"name": &"right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_oti7e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ad5rf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_da23m")
}],
"loop": true,
"name": &"up",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_m4w27"]
size = Vector2(36, 48)
[node name="player" type="CharacterBody2D"]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_0rwas")
animation = &"down"
frame = 1
frame_progress = 0.383158
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 6)
shape = SubResource("RectangleShape2D_m4w27")