diff --git a/src/tanks/Tanks.java b/src/tanks/Tanks.java index b6e82bb..8ad44f2 100644 --- a/src/tanks/Tanks.java +++ b/src/tanks/Tanks.java @@ -81,7 +81,16 @@ public class Tanks */ private class Zombie extends Enemy { - + public void move() + { + direction = angleToPlayer(p); + super.move(-1); + if(this.checkCollision(p)) + { + enemy.remove(this); + p.takeDamage(); + } + } }