|
|
|
[gd_scene load_steps=16 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://Sprites/mc/front.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://Sprites/mc/right.png" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://Sprites/mc/left.png" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://Sprites/mc/back.png" type="Texture" id=5]
|
|
|
|
[ext_resource path="res://Sprites/mc/frontl1.png" type="Texture" id=6]
|
|
|
|
[ext_resource path="res://Sprites/mc/frontr1.png" type="Texture" id=7]
|
|
|
|
[ext_resource path="res://Sprites/mc/left-2.png" type="Texture" id=8]
|
|
|
|
[ext_resource path="res://Sprites/mc/right2.png" type="Texture" id=10]
|
|
|
|
[ext_resource path="res://Sprites/mc/right-2.png" type="Texture" id=12]
|
|
|
|
[ext_resource path="res://Sprites/mc/left2.png" type="Texture" id=13]
|
|
|
|
[ext_resource path="res://Sprites/mc/backr1.png" type="Texture" id=14]
|
|
|
|
[ext_resource path="res://Sprites/mc/backl1.png" type="Texture" id=15]
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id=2]
|
|
|
|
animations = [ {
|
|
|
|
"frames": [ ExtResource( 2 ), ExtResource( 6 ), ExtResource( 2 ), ExtResource( 7 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "MoveDown",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 4 ), ExtResource( 13 ), ExtResource( 4 ), ExtResource( 8 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "MoveLeft",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 5 ), ExtResource( 14 ), ExtResource( 5 ), ExtResource( 15 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "MoveUp",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 3 ), ExtResource( 10 ), ExtResource( 3 ), ExtResource( 12 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "MoveRight",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 4 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "IdleLeft",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 3 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "IdleRight",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 2 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "IdleDown",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 5 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "IdleUp",
|
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
|
|
extents = Vector2( 22, 4.75 )
|
|
|
|
|
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
|
|
position = Vector2( 4, 4 )
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
|
|
position = Vector2( -1, -1 )
|
|
|
|
frames = SubResource( 2 )
|
|
|
|
animation = "IdleDown"
|
|
|
|
playing = true
|
|
|
|
offset = Vector2( 1, 1 )
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
position = Vector2( 0, 32 )
|
|
|
|
shape = SubResource( 1 )
|
|
|
|
|
|
|
|
[node name="RayCast2D" type="RayCast2D" parent="."]
|
|
|
|
enabled = true
|
|
|
|
cast_to = Vector2( 0, 60 )
|