3637383940414243444546
Enemy enemy = null; switch (type) { case SMALL_ENEMY: enemy = new SmallEnemy(Constants.SCREEN_WIDTH, new Random().nextInt(SCREEN_HEIGHT - ENEMY_HEIGHT), -160f); break; case SHOOTER_ENEMY: int location = new Random().nextInt(2); if (location == 0) {
8889909192939495969798
Enemy enemy = null; switch (type) { case SMALL_ENEMY: enemy = new SmallEnemy(x, y, -150f); break; case SHOOTER_ENEMY: enemy = new ShooterEnemy(x, y, -50f, BulletDirection.UP); ((ShooterEnemy) enemy).setEnemies(spriteManager.getEnemies()); break;