|
|
|
[gd_scene load_steps=17 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://Scripts/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( 5 ), ExtResource( 14 ), ExtResource( 5 ), ExtResource( 15 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "MoveUp",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 4 ), ExtResource( 13 ), ExtResource( 4 ), ExtResource( 8 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "MoveLeft",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 3 ), ExtResource( 10 ), ExtResource( 3 ), ExtResource( 12 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "MoveRight",
|
|
|
|
"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
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 4 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "IdleLeft",
|
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id=4]
|
|
|
|
radius = 8.0
|
|
|
|
height = 32.0
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id=3]
|
|
|
|
radius = 30.0
|
|
|
|
|
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
|
|
position = Vector2( 4, 4 )
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
|
|
position = Vector2( -4, -4 )
|
|
|
|
frames = SubResource( 2 )
|
|
|
|
animation = "IdleDown"
|
|
|
|
playing = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
position = Vector2( -4, 30.5 )
|
|
|
|
rotation = 1.5708
|
|
|
|
shape = SubResource( 4 )
|
|
|
|
one_way_collision = true
|
|
|
|
|
|
|
|
[node name="RayCast2D" type="RayCast2D" parent="."]
|
|
|
|
position = Vector2( -4, -4 )
|
|
|
|
enabled = true
|
|
|
|
cast_to = Vector2( 0, 60 )
|
|
|
|
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
|
|
position = Vector2( -4, -4 )
|
|
|
|
shape = SubResource( 3 )
|