forked from team-sg/hero-mark-2
added the scrump
This commit is contained in:
parent
e5151c4a28
commit
5d7a5a1d29
9 changed files with 70 additions and 58 deletions
|
@ -1,18 +1,13 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://graphics/enemy/boss/scrump.png" type="Texture" id=1]
|
||||
[ext_resource path="res://objects/enemy/boss/boss1.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 12, 8 )
|
||||
extents = Vector2( 5.5, 9.5 )
|
||||
|
||||
[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 )
|
||||
extents = Vector2( 20, 27 )
|
||||
|
||||
[node name="Boss1" type="Node2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
@ -20,6 +15,7 @@ move_direction = 1
|
|||
flip_sprite = false
|
||||
|
||||
[node name="Sprite" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
margin_left = 8.0
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
@ -55,36 +51,32 @@ 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 )
|
||||
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( 24, 36 )
|
||||
position = Vector2( 32, 32 )
|
||||
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 )
|
||||
position = Vector2( 14, 29 )
|
||||
|
||||
[node name="ArrowSpawnTimer" type="Timer" parent="."]
|
||||
wait_time = 5.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="Sprite2" type="Sprite" parent="."]
|
||||
position = Vector2( 26, 27 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue