1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[gd_scene load_steps=5 format=2]

[ext_resource path="res://enemy/scripts/FInalBOss.gd" type="Script" id=1]
[ext_resource path="res://sprites/bossfinal.png" type="Texture" id=2]
[ext_resource path="res://bullets/scenes/Fireball.tscn" type="PackedScene" id=3]

[sub_resource type="CircleShape2D" id=1]
radius = 8.0

[node name="FInalBOss" type="Area2D"]
position = Vector2( 270, 73 )
collision_layer = 34
script = ExtResource( 1 )
drop_power_up = true
ARMOR = 500
score_on_kill = 500
Laser = ExtResource( 3 )
shootspeed = 0.3
stop_pos = Vector2( 300, 0 )

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

[node name="Timer" type="Timer" parent="."]
wait_time = 1.5
autostart = true

[node name="sidestep" type="Timer" parent="."]
wait_time = 2.0
autostart = true

[node name="Tween" type="Tween" parent="."]

[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
position = Vector2( -2.38419e-07, 0 )
scale = Vector2( 0.5, 0.7 )

[connection signal="area_entered" from="." to="." method="_on_Enemy_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_Enemy_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
[connection signal="timeout" from="sidestep" to="." method="_on_sidestep_timeout"]
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]