55 lines
1.4 KiB
Text
55 lines
1.4 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://n8d1t160vvln"]
|
|
|
|
[ext_resource type="Script" uid="uid://dibk7l4v1bbm" path="res://bat/bat.gd" id="1_dj6ma"]
|
|
[ext_resource type="Texture2D" uid="uid://1gfwereeox0m" path="res://gren.png" id="4_eu2gq"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_libqc"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_eu2gq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_eu2gq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_eu2gq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_eu2gq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_eu2gq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_eu2gq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 30.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5bpm1"]
|
|
size = Vector2(16, 16)
|
|
|
|
[node name="Bat" type="Node2D"]
|
|
script = ExtResource("1_dj6ma")
|
|
speed = 2.0
|
|
sine_distance = 32.0
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_libqc")
|
|
autoplay = "default"
|
|
frame_progress = 0.659971
|
|
|
|
[node name="Area2D" type="Area2D" parent="." groups=["death", "enemy_hitbox"]]
|
|
collision_layer = 8
|
|
collision_mask = 17
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
shape = SubResource("RectangleShape2D_5bpm1")
|
|
|
|
[node name="ShootTimer" type="Timer" parent="."]
|
|
unique_name_in_owner = true
|
|
|
|
[connection signal="timeout" from="ShootTimer" to="." method="_on_shoot_timer_timeout"]
|