Package com.badlogic.gdx.math

Examples of com.badlogic.gdx.math.Vector2


  }

  public void setDownCrossRightScript() {

    script.add(new MoveTo(this, new Vector2(14, 19)));
    script.add(new ToggleShooting(this, true, 3));
    script.add(new MoveTo(this, new Vector2(12, 17)));
    script.add(new MoveTo(this, new Vector2(10, 15)));
    script.add(new MoveTo(this, new Vector2(9, 14)));
    script.add(new MoveTo(this, new Vector2(8, 13)));
    script.add(new MoveTo(this, new Vector2(6, 10)));
    script.add(new MoveTo(this, new Vector2(5, 6)));
    script.add(new MoveTo(this, new Vector2(4, 3)));
    script.add(new MoveTo(this, new Vector2(3, -3)));

  }
View Full Code Here


  }

  public void setRightDownUpScript() {

    script.add(new MoveTo(this, new Vector2(14 * Configuration.gameScale, 19 * Configuration.gameScale)));
    script.add(new ToggleShooting(this, true, 3));
    script.add(new MoveTo(this, new Vector2(12 * Configuration.gameScale, 17 * Configuration.gameScale)));
    script.add(new MoveTo(this, new Vector2(10 * Configuration.gameScale, 15 * Configuration.gameScale)));
    script.add(new MoveTo(this, new Vector2(10 * Configuration.gameScale, 19 * Configuration.gameScale)));
    script.add(new MoveTo(this, new Vector2(10 * Configuration.gameScale, 23 * Configuration.gameScale)));
    script.add(new MoveTo(this, new Vector2(10 * Configuration.gameScale, 25 * Configuration.gameScale)));

  }
 
View Full Code Here

  }

  public void setLeftDownUpScript() {

    script.add(new MoveTo(this, new Vector2(5 * Configuration.gameScale, 19 * Configuration.gameScale)));
    script.add(new ToggleShooting(this, true, 3));
    script.add(new MoveTo(this, new Vector2(8 * Configuration.gameScale, 17 * Configuration.gameScale)));
    script.add(new MoveTo(this, new Vector2(10 * Configuration.gameScale, 15 * Configuration.gameScale)));
    script.add(new MoveTo(this, new Vector2(10 * Configuration.gameScale, 19 * Configuration.gameScale)));
    script.add(new MoveTo(this, new Vector2(10 * Configuration.gameScale, 23 * Configuration.gameScale)));
    script.add(new MoveTo(this, new Vector2(10 * Configuration.gameScale, 25 * Configuration.gameScale)));

  }
 
View Full Code Here

    return new ShooterSquiggle(1f * Configuration.gameScale, 0, 1f * Configuration.gameScale,
        1f * Configuration.gameScale, spawnPoint, cooldown, fireRate, variation, ShooterSquiggle.BASE_HEALTH);
  }

  protected Shooter getShooterSingle(int x, int y, int cooldown, float fireRate, String variation) {
    Vector2 spawnPoint = new Vector2(x * Configuration.gameScale, y * Configuration.gameScale);
    return getShooterSingle(spawnPoint, cooldown, fireRate, variation);
  }
View Full Code Here

    Vector2 spawnPoint = new Vector2(x * Configuration.gameScale, y * Configuration.gameScale);
    return getShooterSingle(spawnPoint, cooldown, fireRate, variation);
  }

  protected Shooter getShooterSquiggle(int x, int y, int cooldown, float fireRate, String variation) {
    Vector2 spawnPoint = new Vector2(x * Configuration.gameScale, y * Configuration.gameScale);
    return getShooterSquiggle(spawnPoint, cooldown, fireRate, variation);
  }
View Full Code Here

    Vector2 spawnPoint = new Vector2(x * Configuration.gameScale, y * Configuration.gameScale);
    return getShooterSquiggle(spawnPoint, cooldown, fireRate, variation);
  }

  protected Shooter getShooterSplit(int x, int y, int cooldown, float fireRate, String variation) {
    Vector2 spawnPoint = new Vector2(x * Configuration.gameScale, y * Configuration.gameScale);
    return getShooterSplit(spawnPoint, cooldown, fireRate, variation);
  }
View Full Code Here

    return new FollowerLerp(10f * Configuration.gameScale, 0, 2.5f * Configuration.gameScale,
        2.5f * Configuration.gameScale, spawnPoint, cooldown, firerate, variation, FollowerLerp.BASE_HEALTH);
  }

  protected Follower getFollowerLerp(int x, int y, int cooldown, float firerate, String variation) {
    return getFollowerLerp(new Vector2(x * Configuration.gameScale, y * Configuration.gameScale), cooldown,
        firerate, variation);
  }
View Full Code Here

        2.5f * Configuration.gameScale, spawnPoint, cooldown, firerate, variation, FollowerLerp.BASE_HEALTH);

  }

  protected Follower getFollowerDoubleShot(int x, int y, int cooldown, float firerate, String variation) {
    return getFollowerDoubleShot(new Vector2(x * Configuration.gameScale, y * Configuration.gameScale), cooldown,
        firerate, variation);
  }
View Full Code Here

        2.5f * Configuration.gameScale, spawnPoint, cooldown, firerate, variation, timesToSplit, true,
        FollowerSplit.BASE_HEALTH);
  }

  protected Follower getFollowerSplit(int x, int y, int cooldown, float firerate, String variation, int timesToSplit) {
    return getFollowerSplit(new Vector2(x * Configuration.gameScale, y * Configuration.gameScale), cooldown,
        firerate, variation, timesToSplit);
  }
View Full Code Here

    return new LargeEnemyBurst(10f * Configuration.gameScale, 0, 2f * Configuration.gameScale,
        2f * Configuration.gameScale, spawnPoint, cooldown, fireRate, variation, LargeEnemyBurst.BASE_HEALTH);
  }

  protected LargeEnemy getLargeEnemyBurst(int x, int y, int cooldown, float fireRate, String variation) {
    Vector2 spawnPoint = new Vector2(x * Configuration.gameScale, y * Configuration.gameScale);
    return getLargeEnemyBurst(spawnPoint, cooldown, fireRate, variation);

  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.math.Vector2

Copyright © 2018 www.massapicom. 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.