x += Constants.BRICK_WIDTH;
continue;
}
if (brickId.trim().equals("a")) {
Enemy enemy = new Enemy(x, y, "enemy_blue", Enemy.Direction.RANDOM, spriteManager);
spriteManager.enemies.add(enemy);
x += Constants.BRICK_WIDTH;
continue;
}
if (brickId.trim().equals("u")) {
Enemy enemy = new Enemy(x, y, "enemy_ugly", Enemy.Direction.VERTICAL, spriteManager);
spriteManager.enemies.add(enemy);
x += Constants.BRICK_WIDTH;
continue;
}
if (brickId.trim().equals("b")) {
Enemy enemy = new Enemy(x, y, "enemy_barrel", Enemy.Direction.VERTICAL, spriteManager);
spriteManager.enemies.add(enemy);
x += Constants.BRICK_WIDTH;
continue;
}
if (brickId.trim().equals("c")) {
Enemy enemy = new Enemy(x, y, "enemy_cookie", Enemy.Direction.VERTICAL, spriteManager);
spriteManager.enemies.add(enemy);
x += Constants.BRICK_WIDTH;
continue;
}
if (brickId.trim().equals("c")) {
Enemy enemy = new Enemy(x, y, "enemy_cookie", Enemy.Direction.HORIZONTAL, spriteManager);
spriteManager.enemies.add(enemy);
x += Constants.BRICK_WIDTH;
continue;
}