forked from team-sg/hero-mark-2
116 lines
3.3 KiB
Text
116 lines
3.3 KiB
Text
[gd_scene load_steps=11 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/the_scrump.png" type="Texture" id=4]
|
|
[ext_resource path="res://audio/sounds/scrump_shot.ogg" type="AudioStream" id=5]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 5.5, 9.5 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
extents = Vector2( 20, 27 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 0, 0, 55, 64 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 55, 0, 55, 64 )
|
|
|
|
[sub_resource type="SpriteFrames" id=5]
|
|
animations = [ {
|
|
"frames": [ SubResource( 3 ), SubResource( 4 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 10.0
|
|
} ]
|
|
|
|
[node name="TheScrump" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
move_direction = 1
|
|
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="AnimatedSprite" parent="."]
|
|
position = Vector2( 26, 27 )
|
|
frames = SubResource( 5 )
|
|
playing = true
|
|
|
|
[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 )
|
|
|
|
[node name="ShootSound" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 5 )
|
|
volume_db = -8.0
|
|
|
|
[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"]
|