@Override protected Enemy getSpawnedEnemy() { Enemy e = new EnemyGreenBlob(player); e.setX(x); e.setY(y); return e; }
@Override protected void resolveCollision() { if (mask.intersects(player.getCollisionMask())) player.resolveHit(x + 64, y + 64, 2); for (Enemy e : enemies) { if (e instanceof EnemyBlob) continue; if (mask.intersects(e.getCollisionMask())) { e.resolveHit(x, y, attackId, 2); } } }