40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://Art/player_walk1.png" type="Texture" id=2]
|
|
[ext_resource path="res://Art/player_walk2.png" type="Texture" id=3]
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 2 ), ExtResource( 3 ) ],
|
|
"loop": true,
|
|
"name": "PlayerWalk",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
extents = Vector2( 3, 12 )
|
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
position = Vector2( 493, 165 )
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_group_": true
|
|
}
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
scale = Vector2( 2, 2 )
|
|
frames = SubResource( 1 )
|
|
animation = "PlayerWalk"
|
|
|
|
[node name="BodyHitBoxShape" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 0, 2 )
|
|
scale = Vector2( 2, 2 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="AttackHitBox" type="Area2D" parent="."]
|
|
|
|
[node name="AttackHitBoxShape" type="CollisionPolygon2D" parent="AttackHitBox"]
|
|
disabled = true
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|