2020-01-29 21:51:40 +01:00
|
|
|
[gd_scene load_steps=6 format=2]
|
2020-01-14 22:20:17 +01:00
|
|
|
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
2020-01-21 17:00:57 +01:00
|
|
|
[ext_resource path="res://res/sprites.png" type="Texture" id=2]
|
2020-01-14 22:20:17 +01:00
|
|
|
|
2020-01-29 21:51:40 +01:00
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
|
|
atlas = ExtResource( 2 )
|
|
|
|
region = Rect2( -4, 488, 84, 16 )
|
|
|
|
|
2020-01-21 17:00:57 +01:00
|
|
|
[sub_resource type="Animation" id=3]
|
2020-01-29 21:51:40 +01:00
|
|
|
length = 0.8
|
2020-01-21 17:00:57 +01:00
|
|
|
loop = true
|
2020-01-29 21:51:40 +01:00
|
|
|
step = 0.2
|
2020-01-21 17:00:57 +01:00
|
|
|
tracks/0/type = "value"
|
2020-02-08 11:36:48 +01:00
|
|
|
tracks/0/path = NodePath("Node2D/Sprite:frame")
|
2020-01-21 17:00:57 +01:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
2020-01-29 21:51:40 +01:00
|
|
|
"times": PoolRealArray( 0, 0.2, 0.4, 0.6 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
2020-01-21 17:00:57 +01:00
|
|
|
"update": 1,
|
2020-02-08 11:36:48 +01:00
|
|
|
"values": [ 0, 1, 2, 1 ]
|
2020-01-21 17:00:57 +01:00
|
|
|
}
|
|
|
|
|
2020-02-08 11:36:48 +01:00
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
|
|
radius = 12.8837
|
|
|
|
height = 4.07484
|
|
|
|
|
|
|
|
[node name="Area2D" type="Area2D"]
|
2020-01-21 17:00:57 +01:00
|
|
|
position = Vector2( 9.25964, 6.09653 )
|
2020-01-14 22:20:17 +01:00
|
|
|
script = ExtResource( 1 )
|
2020-01-15 14:43:08 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_group_": true
|
|
|
|
}
|
2020-01-14 22:20:17 +01:00
|
|
|
|
2020-01-21 17:00:57 +01:00
|
|
|
[node name="Node2D" type="Node2D" parent="."]
|
|
|
|
|
2020-02-08 11:36:48 +01:00
|
|
|
[node name="Sprite" type="Sprite" parent="Node2D"]
|
|
|
|
position = Vector2( -3.46641, -2.14102 )
|
|
|
|
scale = Vector2( 2.14565, 2.14019 )
|
2020-01-29 21:51:40 +01:00
|
|
|
texture = SubResource( 2 )
|
|
|
|
hframes = 3
|
|
|
|
frame = 1
|
2020-01-21 17:00:57 +01:00
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Node2D"]
|
|
|
|
root_node = NodePath("../..")
|
|
|
|
autoplay = "fly"
|
|
|
|
anims/fly = SubResource( 3 )
|
2020-01-29 21:51:40 +01:00
|
|
|
|
2020-02-08 11:36:48 +01:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
rotation = 1.5708
|
|
|
|
shape = SubResource( 1 )
|
|
|
|
|
2020-01-29 21:51:40 +01:00
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
|
|
current = true
|
|
|
|
limit_top = 0
|
|
|
|
limit_bottom = 0
|
2020-01-15 14:43:08 +01:00
|
|
|
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]
|