76 lines
2.1 KiB
Plaintext
76 lines
2.1 KiB
Plaintext
[gd_scene load_steps=11 format=3 uid="uid://pldxcq54fei5"]
|
|
|
|
[ext_resource type="Script" uid="uid://ddiwahqiekcqp" path="res://scripts/new_player.gd" id="1_j1k7i"]
|
|
[ext_resource type="Texture2D" uid="uid://cfst1xv0quili" path="res://assets/top-down-adam-idle.png" id="1_ykc1o"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_j1k7i"]
|
|
atlas = ExtResource("1_ykc1o")
|
|
region = Rect2(288, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tidp7"]
|
|
atlas = ExtResource("1_ykc1o")
|
|
region = Rect2(304, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_eotbk"]
|
|
atlas = ExtResource("1_ykc1o")
|
|
region = Rect2(320, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vdid1"]
|
|
atlas = ExtResource("1_ykc1o")
|
|
region = Rect2(336, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_40y4h"]
|
|
atlas = ExtResource("1_ykc1o")
|
|
region = Rect2(352, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xoay6"]
|
|
atlas = ExtResource("1_ykc1o")
|
|
region = Rect2(368, 0, 16, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_11i01"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_j1k7i")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tidp7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_eotbk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vdid1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_40y4h")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xoay6")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle_down",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ykc1o"]
|
|
radius = 7.0
|
|
height = 16.0
|
|
|
|
[node name="NewPlayer" type="CharacterBody2D"]
|
|
script = ExtResource("1_j1k7i")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_11i01")
|
|
animation = &"idle_down"
|
|
autoplay = "idle_down"
|
|
frame = 2
|
|
frame_progress = 0.91331923
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 8)
|
|
shape = SubResource("CapsuleShape2D_ykc1o")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
zoom = Vector2(4, 4)
|