1
0
Fork 0
Cleanomancer/Player.tscn

67 lines
1.4 KiB
Plaintext

[gd_scene load_steps=9 format=2]
[ext_resource path="res://character.png" type="Texture" id=1]
[ext_resource path="res://Player.gd" type="Script" id=3]
[sub_resource type="AtlasTexture" id=3]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 112, 210 )
[sub_resource type="AtlasTexture" id=4]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 224, 0, 112, 210 )
[sub_resource type="AtlasTexture" id=5]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 112, 0, 112, 210 )
[sub_resource type="AtlasTexture" id=6]
flags = 4
atlas = ExtResource( 1 )
region = Rect2( 336, 0, 112, 210 )
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ SubResource( 3 ) ],
"loop": true,
"name": "left",
"speed": 5.0
}, {
"frames": [ SubResource( 4 ) ],
"loop": true,
"name": "right",
"speed": 5.0
}, {
"frames": [ SubResource( 5 ) ],
"loop": true,
"name": "front",
"speed": 5.0
}, {
"frames": [ SubResource( 6 ) ],
"loop": true,
"name": "back",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 32.0
height = 0.0
[node name="Player" type="Area2D"]
script = ExtResource( 3 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( 0, -96 )
frames = SubResource( 1 )
animation = "front"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, -16 )
shape = SubResource( 2 )