Examples of LargeEnemy


Examples of com.palepail.TestGame.Enemies.LargeEnemy

    enemyTimes.add(690);

    enemyQueue.add(getFollowerLerp(getMidLeft(), 0, 0, Entity.VARIATION_BLUE));
    enemyTimes.add(690);

    LargeEnemy largeEnemy = getLargeEnemyBurst(5, 23, 100, 0, Entity.VARIATION_BLUE);
    largeEnemy.setLeftDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(850);

    largeEnemy = getLargeEnemyBurst(16, 23, 100, 0, Entity.VARIATION_BLUE);
    largeEnemy.setRightDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(850);

    for (int x = 1000; x < 1300; x += 20) {
      Shooter shoot = getShooterSingle(0, 12, 75, 0, Entity.VARIATION_BLUE);
      shoot.setSplineLoopLeftScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSingle(0, 12, 75, 0, Entity.VARIATION_BLUE);
      shoot.setSplineLoopRightScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x + 10);
    }

    for (int x = 1500; x < 1700; x += 20) {
      Shooter shoot = getShooterSquiggle(0, 12, 100, 10, Entity.VARIATION_RED);
      shoot.setSplineLoopLeftScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSquiggle(0, 12, 100, 10, Entity.VARIATION_RED);
      shoot.setSplineLoopRightScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x + 10);
    }

    largeEnemy = getLargeEnemySquiggle(5, 23, 100, 10, Entity.VARIATION_RED);
    largeEnemy.setLeftDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(2000);

    largeEnemy = getLargeEnemySquiggle(16, 23, 100, 10, Entity.VARIATION_RED);
    largeEnemy.setRightDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(2000);

    Follower follower = getFollowerDoubleShot(-1, 14, 0, 5, Entity.VARIATION_RED);
    follower.setVelocity(.5f, 0);

    enemyQueue.add(follower);
    enemyTimes.add(2400);

    follower = getFollowerDoubleShot(21, 14, 0, 5, Entity.VARIATION_RED);
    follower.setVelocity(-.5f, 0);
    enemyQueue.add(follower);
    enemyTimes.add(2400);

    follower = getFollowerDoubleShot(5, 23, 0, 5, Entity.VARIATION_RED);
    follower.setVelocity(0, -.5f);

    enemyQueue.add(follower);
    enemyTimes.add(2600);

    follower = getFollowerDoubleShot(14, 23, 0, 5, Entity.VARIATION_RED);
    follower.setVelocity(0, -.5f);
    enemyQueue.add(follower);
    enemyTimes.add(2600);

    enemyTimes.add(WAIT_FOR_ENEMIES);
    boolean alternate = false;
    for (int x = 2900; x < 3500; x += 20) {
      Shooter shoot = getShooterSingle(0, 12, 100, 0, Entity.VARIATION_BLUE);
      if (alternate) {
        shoot.setSplineLoopLeftScript();
      } else {
        shoot.setSplineLoopRightScript();
      }
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSquiggle(0, 12, 100, 10, Entity.VARIATION_RED);
      if (alternate) {
        shoot.setSplineLoopRightScript();
      } else {
        shoot.setSplineLoopLeftScript();
      }
      enemyQueue.add(shoot);
      enemyTimes.add(x);
      alternate = !alternate;
    }

    largeEnemy = getLargeEnemySquiggle(5, 23, 100, 10, Entity.VARIATION_RED);
    largeEnemy.setLeftDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(3700);

    largeEnemy = getLargeEnemyBurst(16, 23, 100, 10, Entity.VARIATION_BLUE);
    largeEnemy.setRightDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(3700);
    enemyTimes.add(WAIT_FOR_ENEMIES);

    for (int x = 3900; x < 4400; x += 20) {
      Shooter shoot = getShooterSplit(0, 12, 100, 0, Entity.VARIATION_GREEN);

      shoot.setSplineLoopLeftScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSplit(0, 12, 100, 10, Entity.VARIATION_GREEN);

      shoot.setSplineLoopRightScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x);

    }
    enemyTimes.add(WAIT_FOR_ENEMIES);

    follower = getFollowerSplit(10, 24, 0, 5, Entity.VARIATION_GREEN, 3);

    enemyQueue.add(follower);
    enemyTimes.add(4750);
    enemyTimes.add(WAIT_FOR_ENEMIES);

    for (int x = 5000; x < 5500; x += 20) {
      Shooter shoot = getShooterSplit(0, 12, 100, 0, Entity.VARIATION_GREEN);
      if (alternate) {
        shoot.setSplineLoopLeftScript();
      } else {
        shoot.setSplineLoopRightScript();
      }
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSquiggle(0, 12, 100, 10, Entity.VARIATION_RED);
      if (alternate) {
        shoot.setSplineLoopRightScript();
      } else {
        shoot.setSplineLoopLeftScript();
      }
      enemyQueue.add(shoot);
      enemyTimes.add(x);
      alternate = !alternate;
    }

    largeEnemy = getLargeEnemySplit(5, 23, 100, 10, Entity.VARIATION_GREEN);
    largeEnemy.setLeftDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(6000);

    largeEnemy = getLargeEnemySplit(16, 23, 100, 10, Entity.VARIATION_GREEN);
    largeEnemy.setRightDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(6000);
    enemyTimes.add(WAIT_FOR_ENEMIES);

    BossOne boss = new BossOne(5f, 0, 2 * Configuration.gameScale, 2 * Configuration.gameScale, new Vector2(
View Full Code Here

Examples of com.palepail.TestGame.Enemies.LargeEnemy

    enemyTimes.add(690);

    enemyQueue.add(getFollowerLerp(getMidLeft(), 0, 0, Entity.VARIATION_BLUE));
    enemyTimes.add(690);

    LargeEnemy largeEnemy = getLargeEnemyBurst(5, 23, 100, 0, Entity.VARIATION_BLUE);
    largeEnemy.setLeftDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(850);

    largeEnemy = getLargeEnemyBurst(16, 23, 100, 0, Entity.VARIATION_BLUE);
    largeEnemy.setRightDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(850);

    for (int x = 1000; x < 1300; x += 20) {
      Shooter shoot = getShooterSingle(0, 12, 75, 0, Entity.VARIATION_BLUE);
      shoot.setSplineLoopLeftScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSingle(0, 12, 75, 0, Entity.VARIATION_BLUE);
      shoot.setSplineLoopRightScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x + 10);
    }

    for (int x = 1500; x < 1700; x += 20) {
      Shooter shoot = getShooterSquiggle(0, 12, 100, 10, Entity.VARIATION_RED);
      shoot.setSplineLoopLeftScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSquiggle(0, 12, 100, 10, Entity.VARIATION_RED);
      shoot.setSplineLoopRightScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x + 10);
    }

    largeEnemy = getLargeEnemySquiggle(5, 23, 100, 10, Entity.VARIATION_RED);
    largeEnemy.setLeftDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(2000);

    largeEnemy = getLargeEnemySquiggle(16, 23, 100, 10, Entity.VARIATION_RED);
    largeEnemy.setRightDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(2000);

    Follower follower = getFollowerDoubleShot(-1, 14, 0, 5, Entity.VARIATION_RED);
    follower.setVelocity(.5f, 0);

    enemyQueue.add(follower);
    enemyTimes.add(2400);

    follower = getFollowerDoubleShot(21, 14, 0, 5, Entity.VARIATION_RED);
    follower.setVelocity(-.5f, 0);
    enemyQueue.add(follower);
    enemyTimes.add(2400);

    follower = getFollowerDoubleShot(5, 23, 0, 5, Entity.VARIATION_RED);
    follower.setVelocity(0, -.5f);

    enemyQueue.add(follower);
    enemyTimes.add(2600);

    follower = getFollowerDoubleShot(14, 23, 0, 5, Entity.VARIATION_RED);
    follower.setVelocity(0, -.5f);
    enemyQueue.add(follower);
    enemyTimes.add(2600);

    enemyTimes.add(WAIT_FOR_ENEMIES);
    boolean alternate = false;
    for (int x = 2900; x < 3500; x += 20) {
      Shooter shoot = getShooterSingle(0, 12, 100, 0, Entity.VARIATION_BLUE);
      if (alternate) {
        shoot.setSplineLoopLeftScript();
      } else {
        shoot.setSplineLoopRightScript();
      }
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSquiggle(0, 12, 100, 10, Entity.VARIATION_RED);
      if (alternate) {
        shoot.setSplineLoopRightScript();
      } else {
        shoot.setSplineLoopLeftScript();
      }
      enemyQueue.add(shoot);
      enemyTimes.add(x);
      alternate = !alternate;
    }

    largeEnemy = getLargeEnemySquiggle(5, 23, 100, 10, Entity.VARIATION_RED);
    largeEnemy.setLeftDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(3700);

    largeEnemy = getLargeEnemyBurst(16, 23, 100, 10, Entity.VARIATION_BLUE);
    largeEnemy.setRightDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(3700);
    enemyTimes.add(WAIT_FOR_ENEMIES);

    for (int x = 3900; x < 4400; x += 20) {
      Shooter shoot = getShooterSplit(0, 12, 100, 0, Entity.VARIATION_GREEN);

      shoot.setSplineLoopLeftScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSplit(0, 12, 100, 10, Entity.VARIATION_GREEN);

      shoot.setSplineLoopRightScript();
      enemyQueue.add(shoot);
      enemyTimes.add(x);

    }
    enemyTimes.add(WAIT_FOR_ENEMIES);

    follower = getFollowerSplit(10, 24, 0, 5, Entity.VARIATION_GREEN, 3);

    enemyQueue.add(follower);
    enemyTimes.add(4750);
    enemyTimes.add(WAIT_FOR_ENEMIES);

    for (int x = 5000; x < 5500; x += 20) {
      Shooter shoot = getShooterSplit(0, 12, 100, 0, Entity.VARIATION_GREEN);
      if (alternate) {
        shoot.setSplineLoopLeftScript();
      } else {
        shoot.setSplineLoopRightScript();
      }
      enemyQueue.add(shoot);
      enemyTimes.add(x);

      shoot = getShooterSquiggle(0, 12, 100, 10, Entity.VARIATION_RED);
      if (alternate) {
        shoot.setSplineLoopRightScript();
      } else {
        shoot.setSplineLoopLeftScript();
      }
      enemyQueue.add(shoot);
      enemyTimes.add(x);
      alternate = !alternate;
    }

    largeEnemy = getLargeEnemySplit(5, 23, 100, 10, Entity.VARIATION_GREEN);
    largeEnemy.setLeftDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(6000);

    largeEnemy = getLargeEnemySplit(16, 23, 100, 10, Entity.VARIATION_GREEN);
    largeEnemy.setRightDownUpScript();
    enemyQueue.add(largeEnemy);
    enemyTimes.add(6000);
    enemyTimes.add(WAIT_FOR_ENEMIES);

    BossOne boss = new BossOne(5f, 0, 2 * Configuration.gameScale, 2 * Configuration.gameScale, new Vector2(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.