forked from team-sg/hero-mark-2
95 lines
2.8 KiB
Text
95 lines
2.8 KiB
Text
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://objects/enemy/boss/scrump.gd" type="Script" id=1]
|
|
[ext_resource path="res://audio/sounds/gover.wav" type="AudioStream" id=2]
|
|
[ext_resource path="res://audio/sounds/die.wav" type="AudioStream" id=3]
|
|
[ext_resource path="res://graphics/enemy/boss/scrump.png" type="Texture" id=4]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 5.5, 9.5 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
extents = Vector2( 20, 27 )
|
|
|
|
[node name="Boss1" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
move_direction = 1
|
|
flip_sprite = false
|
|
phase2_speed = 75
|
|
phase3_speed = 100
|
|
|
|
[node name="Sus" type="ColorRect" parent="."]
|
|
visible = false
|
|
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="Sus"]
|
|
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="Sus"]
|
|
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="Sus"]
|
|
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="Sus"]
|
|
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( 5.5, 14.5 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Hitbox" type="Area2D" parent="." groups=["blocks_arrow", "enemy_hitbox"]]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
position = Vector2( 32, 32 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="ShootTimer" type="Timer" parent="."]
|
|
wait_time = 0.5
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="Position2D" type="Position2D" parent="."]
|
|
position = Vector2( 14, 29 )
|
|
|
|
[node name="ArrowSpawnTimer" type="Timer" parent="."]
|
|
wait_time = 5.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
position = Vector2( 26, 27 )
|
|
texture = ExtResource( 4 )
|
|
|
|
[node name="BloodPosition" type="Position2D" parent="."]
|
|
position = Vector2( 0, 14 )
|
|
|
|
[node name="HurtSound" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 3 )
|
|
|
|
[node name="DeathSound" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 2 )
|
|
|
|
[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"]
|