revo-jailbreak/objects/enemy/boss/boss1.tscn
2023-02-16 00:07:31 -05:00

90 lines
2.5 KiB
Text

[gd_scene load_steps=6 format=2]
[ext_resource path="res://objects/enemy/boss/boss1.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 12, 8 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 16, 12 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 16, 4 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 8, 8 )
[node name="Boss1" type="Node2D"]
script = ExtResource( 2 )
move_direction = 1
flip_sprite = false
[node name="Sprite" type="ColorRect" parent="."]
margin_left = 8.0
margin_right = 40.0
margin_bottom = 40.0
color = Color( 0.960784, 0.2, 0.258824, 1 )
[node name="BackPack" type="ColorRect" parent="Sprite"]
margin_left = 24.0
margin_top = 8.0
margin_right = 40.0
margin_bottom = 32.0
color = Color( 0.960784, 0.2, 0.258824, 1 )
[node name="LegR" type="ColorRect" parent="Sprite"]
margin_top = 40.0
margin_right = 8.0
margin_bottom = 48.0
color = Color( 0.960784, 0.2, 0.258824, 1 )
[node name="LegL" type="ColorRect" parent="Sprite"]
margin_left = 24.0
margin_top = 40.0
margin_right = 32.0
margin_bottom = 48.0
color = Color( 0.960784, 0.2, 0.258824, 1 )
[node name="Visor" type="ColorRect" parent="Sprite"]
margin_left = -8.0
margin_top = 8.0
margin_right = 16.0
margin_bottom = 24.0
color = Color( 0.27451, 0.796078, 0.756863, 1 )
[node name="WeakSpot" type="Area2D" parent="." groups=["boss_weakspot", "enemy_hitbox"]]
[node name="CollisionShape2D" type="CollisionShape2D" parent="WeakSpot"]
position = Vector2( 12, 16 )
shape = SubResource( 1 )
[node name="Hitbox" type="Area2D" parent="." groups=["blocks_arrow", "enemy_hitbox"]]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( 24, 36 )
shape = SubResource( 2 )
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( 24, 4 )
shape = SubResource( 3 )
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( 32, 16 )
shape = SubResource( 4 )
[node name="ShootTimer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
autostart = true
[node name="Position2D" type="Position2D" parent="."]
position = Vector2( 8, 32 )
[node name="ArrowSpawnTimer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
autostart = true
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
[connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"]
[connection signal="timeout" from="ArrowSpawnTimer" to="." method="_on_ArrowSpawnTimer_timeout"]