GodotTutorial/player.tscn

126 lines
3.2 KiB
Plaintext

[gd_scene load_steps=16 format=3 uid="uid://bguqy4rmdkgcn"]
[ext_resource type="Texture2D" uid="uid://i8naxj4e757h" path="res://sprites/CharacterSprite.png" id="1_r1rn1"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ont3v"]
atlas = ExtResource("1_r1rn1")
region = Rect2(0, 0, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_7axox"]
atlas = ExtResource("1_r1rn1")
region = Rect2(376, 0, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_mrbs0"]
atlas = ExtResource("1_r1rn1")
region = Rect2(0, 188, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_bxq4p"]
atlas = ExtResource("1_r1rn1")
region = Rect2(188, 188, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_iumh0"]
atlas = ExtResource("1_r1rn1")
region = Rect2(376, 188, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_8b1ni"]
atlas = ExtResource("1_r1rn1")
region = Rect2(564, 188, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_0pi6b"]
atlas = ExtResource("1_r1rn1")
region = Rect2(752, 188, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_02e04"]
atlas = ExtResource("1_r1rn1")
region = Rect2(940, 188, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_7hx43"]
atlas = ExtResource("1_r1rn1")
region = Rect2(0, 376, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_f6rod"]
atlas = ExtResource("1_r1rn1")
region = Rect2(376, 376, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_o4umm"]
atlas = ExtResource("1_r1rn1")
region = Rect2(752, 376, 188, 188)
[sub_resource type="AtlasTexture" id="AtlasTexture_74s64"]
atlas = ExtResource("1_r1rn1")
region = Rect2(1128, 376, 188, 188)
[sub_resource type="SpriteFrames" id="SpriteFrames_q70xl"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ont3v")
}],
"loop": true,
"name": &"falling",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7axox")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_mrbs0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bxq4p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iumh0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8b1ni")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0pi6b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_02e04")
}],
"loop": true,
"name": &"stand up",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7hx43")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f6rod")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o4umm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_74s64")
}],
"loop": true,
"name": &"walk",
"speed": 8.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_m7kql"]
radius = 41.0
height = 174.0
[node name="player" type="CharacterBody2D"]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_q70xl")
animation = &"walk"
frame_progress = 0.0296892
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(9, 7)
shape = SubResource("CapsuleShape2D_m7kql")