50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
[gd_scene load_steps=6 format=3 uid="uid://bkppr8vsso41l"]
|
|
|
|
[ext_resource type="Script" path="res://Player.gd" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://1wdcw8ne7j5w" path="res://res/sprites.png" id="2"]
|
|
|
|
[sub_resource type="Animation" id="2"]
|
|
length = 0.8
|
|
loop_mode = 1
|
|
step = 0.2
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [0, 1, 2, 1]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_s168r"]
|
|
_data = {
|
|
"fly": SubResource("2")
|
|
}
|
|
|
|
[sub_resource type="AtlasTexture" id="1"]
|
|
atlas = ExtResource("2")
|
|
region = Rect2(-4, 488, 84, 16)
|
|
|
|
[node name="Area2D" type="Area2D"]
|
|
position = Vector2(9.25964, 6.09653)
|
|
scale = Vector2(1, 1.02134)
|
|
script = ExtResource("1")
|
|
speed = null
|
|
jump_speed = null
|
|
speed_inc = null
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_s168r")
|
|
}
|
|
autoplay = "fly"
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
position = Vector2(-3.46641, -2.14102)
|
|
scale = Vector2(2.14565, 2.14019)
|
|
texture = SubResource("1")
|
|
hframes = 3
|