Package com.palepail.TestGame.Model.Items

Examples of com.palepail.TestGame.Model.Items.Power


  // =====items

  public Item getDroppedPower() {
    Random random = new Random();
    float angle = 50 - random.nextInt(100);
    Power power = new Power(Power.SPEED, 0, 1f * Configuration.gameScale, 1f * Configuration.gameScale,
        new Vector2(getPosition().x + getWidth() / 2, getPosition().y + getHeight() / 2), new Vector2(
            new Vector2(getPosition().x + angle, getPosition().y + 90 - Math.abs(angle)).sub(getPosition())
                .nor()), .1f);
    return power;
  }
View Full Code Here

TOP

Related Classes of com.palepail.TestGame.Model.Items.Power

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.