63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://Scenes/Enemies/Enemy.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://Scenes/Enemies/FlyingEnemy.gd" type="Script" id=2]
|
|
[ext_resource path="res://Assets/Enemies/FlyingEnemy.png" type="Texture" id=3]
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
radius = 4.0
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
resource_name = "Fly"
|
|
length = 0.6
|
|
loop = true
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Sprite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 0, 1, 2, 3, 4, 5 ]
|
|
}
|
|
|
|
[sub_resource type="CircleShape2D" id=3]
|
|
radius = 4.0
|
|
|
|
[sub_resource type="CircleShape2D" id=4]
|
|
radius = 4.0
|
|
|
|
[node name="FlyingEnemy" instance=ExtResource( 1 )]
|
|
script = ExtResource( 2 )
|
|
MAX_SPEED = 40
|
|
|
|
[node name="Sprite" parent="." index="0"]
|
|
texture = ExtResource( 3 )
|
|
flip_h = true
|
|
hframes = 6
|
|
frame = 1
|
|
|
|
[node name="Collider" parent="." index="1"]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="AnimationPlayer" parent="." index="2"]
|
|
autoplay = "Fly"
|
|
anims/Fly = SubResource( 2 )
|
|
|
|
[node name="Hurtbox" parent="." index="3"]
|
|
collision_layer = 8
|
|
collision_mask = 0
|
|
|
|
[node name="Collider" parent="Hurtbox" index="0"]
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="Collider" parent="Hitbox" index="0"]
|
|
shape = SubResource( 4 )
|
|
|
|
[editable path="Hurtbox"]
|
|
|
|
[editable path="Hitbox"]
|