add boss enemy and refactor
This commit is contained in:
@@ -265,22 +265,18 @@ animation = &"die"
|
||||
autoplay = "default"
|
||||
offset = Vector2(0, -3.285)
|
||||
|
||||
[node name="HitBox" parent="." node_paths=PackedStringArray("animation_player", "animated_sprite") instance=ExtResource("4_pjw23")]
|
||||
[node name="HitBox" parent="." instance=ExtResource("4_pjw23")]
|
||||
collision_mask = 2
|
||||
animation_player = NodePath("../AnimationPlayer")
|
||||
animation_name = "die"
|
||||
animated_sprite = NodePath("../AnimatedSprite2D")
|
||||
animated_sprite_name = "die"
|
||||
player_bounce = -200
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"]
|
||||
position = Vector2(0, -11)
|
||||
position = Vector2(0, -12)
|
||||
shape = SubResource("RectangleShape2D_pjw23")
|
||||
|
||||
[node name="Killzone" parent="." instance=ExtResource("2_n6pvg")]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Killzone"]
|
||||
polygon = PackedVector2Array(-7, 0, 7, 0, 7, -4, 5, -9, -5, -9, -7, -4)
|
||||
polygon = PackedVector2Array(-7, 0, 7, 0, 7, -4, 5, -8, -5, -8, -7, -4)
|
||||
|
||||
[node name="RayCastRight" type="RayCast2D" parent="."]
|
||||
position = Vector2(0, -6)
|
||||
@@ -300,3 +296,5 @@ libraries = {
|
||||
[node name="Death" type="AudioStreamPlayer2D" parent="Sounds"]
|
||||
stream = ExtResource("5_2npkn")
|
||||
bus = &"SFX"
|
||||
|
||||
[connection signal="hit" from="HitBox" to="." method="_on_hit_box_hit"]
|
||||
|
||||
Reference in New Issue
Block a user