Package com.badlogic.gdx.math

Examples of com.badlogic.gdx.math.Vector2


     * Gets the left-bottom corner.
     *
     * @return The left-bottom corner.
     */
    public Vector2 lb() {
        return new Vector2(left(), bottom());
    }
View Full Code Here


     * Gets the left-top corner.
     *
     * @return The left-top corner.
     */
    public Vector2 lt() {
        return new Vector2(left(), top());
    }
View Full Code Here

     * Gets the right-bottom corner.
     *
     * @return The right-bottom corner.
     */
    public Vector2 rb() {
        return new Vector2(right(), bottom());
    }
View Full Code Here

     * Gets the right-top corner.
     *
     * @return The right-top corner.
     */
    public Vector2 rt() {
        return new Vector2(right(), top());
    }
View Full Code Here

      }
    } else {

      position.lerp(
          new Vector2((ship.getPosition().x + ship.getWidth() / 2) - getWidth() / 2,
              (ship.getPosition().y + ship.getHeight() / 2) - getHeight() / 2), Gdx.graphics
              .getDeltaTime() * 15);

    }
    position.add(velocity.tmp().mul(Gdx.graphics.getDeltaTime() * SPEED));
 
View Full Code Here

    Power power = new Power(
        Power.SPEED,
        0,
        1f * Configuration.gameScale,
        1f * Configuration.gameScale,
        new Vector2(enemy.getPosition().x + enemy.getWidth() / 2, enemy.getPosition().y + enemy.getHeight() / 2),
        new Vector2(new Vector2(enemy.getPosition().x, 3600 * Configuration.gameScale).sub(enemy.getPosition())
            .nor()), value);
    return power;
  }
View Full Code Here

    Points points = new Points(
        Points.SPEED,
        0,
        1f * Configuration.gameScale,
        1f * Configuration.gameScale,
        new Vector2(enemy.getPosition().x + enemy.getWidth() / 2, enemy.getPosition().y + enemy.getHeight() / 2),
        new Vector2(new Vector2(enemy.getPosition().x, 3600 * Configuration.gameScale).sub(enemy.getPosition())
            .nor()), value);
    return points;
  }
View Full Code Here

    BombItem bomb = new BombItem(
        BombItem.SPEED,
        0,
        1f * Configuration.gameScale,
        1f * Configuration.gameScale,
        new Vector2(enemy.getPosition().x + enemy.getWidth() / 2, enemy.getPosition().y + enemy.getHeight() / 2),
        new Vector2(new Vector2(enemy.getPosition().x, 3600 * Configuration.gameScale).sub(enemy.getPosition())
            .nor()));
    return bomb;
  }
View Full Code Here

    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(
        10 * Configuration.gameScale, 23 * Configuration.gameScale));
    enemyQueue.add(boss);
    enemyTimes.add(6300);

    enemyTimes.add(WAIT_FOR_ENEMIES);
 
View Full Code Here

    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(
        10 * Configuration.gameScale, 23 * Configuration.gameScale));
    enemyQueue.add(boss);
    enemyTimes.add(6300);

    enemyTimes.add(WAIT_FOR_ENEMIES);
 
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.