summaryrefslogtreecommitdiff
path: root/scenes/levels/pixel
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/levels/pixel')
-rw-r--r--scenes/levels/pixel/PixelDefender.gd5
-rw-r--r--scenes/levels/pixel/spaceship.gd2
2 files changed, 4 insertions, 3 deletions
diff --git a/scenes/levels/pixel/PixelDefender.gd b/scenes/levels/pixel/PixelDefender.gd
index 2667238..3b01148 100644
--- a/scenes/levels/pixel/PixelDefender.gd
+++ b/scenes/levels/pixel/PixelDefender.gd
@@ -63,9 +63,8 @@ func _on_enemy_area_shape_entered(area_id, area, area_shape, local_shape, e):
return
if area is Bullet:
area.queue_free()
- elif area.team == Bullet.CHAOS:
- return
- e.queue_free()
+ elif area is Spaceship and area.team == Bullet.ORDER:
+ e.queue_free()
func _on_spaceship_area_shape_entered(area_id, area, area_shape, local_shape):
if area is Bullet:
diff --git a/scenes/levels/pixel/spaceship.gd b/scenes/levels/pixel/spaceship.gd
index 3c39665..ab6fc49 100644
--- a/scenes/levels/pixel/spaceship.gd
+++ b/scenes/levels/pixel/spaceship.gd
@@ -1,2 +1,4 @@
extends Area2D
+
+class_name Spaceship
var team = Bullet.ORDER