Cranberry/Actors/Player.tscn

74 lines
1.7 KiB
Plaintext

[gd_scene load_steps=7 format=2]
[ext_resource path="res://Assets/player-sprite.png" type="Texture" id=1]
[ext_resource path="res://Actors/Player.gd" type="Script" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 6.05681
height = 8.53165
[sub_resource type="Animation" id=2]
resource_name = "diagonal"
length = 0.4
tracks/0/type = "value"
tracks/0/path = NodePath("player-sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ 4, 5 ]
}
[sub_resource type="Animation" id=3]
resource_name = "stop"
tracks/0/type = "value"
tracks/0/path = NodePath("player-sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0 ]
}
[sub_resource type="Animation" id=4]
length = 0.4
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("player-sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ 1, 2 ]
}
[node name="Player" type="KinematicBody2D"]
visible = false
script = ExtResource( 2 )
[node name="player-sprite" type="Sprite" parent="."]
rotation = -1.5708
texture = ExtResource( 1 )
vframes = 6
frame = 1
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/diagonal = SubResource( 2 )
anims/stop = SubResource( 3 )
anims/straight = SubResource( 4 )