Examples of EnemyBasicBullet


Examples of com.palepail.TestGame.Model.Bullet.EnemyBasicBullet

  }

  public void shootFullBurst(World world, Ship ship, float bulletScale) {
    for (float i = 0; i <= 360; i += 30) {

      EnemyBasicBullet bullet = (EnemyBasicBullet) getBasicBullet(ship, bulletScale);
      bullet.getVelocity().setAngle(i);
      world.addEnemyBullet(bullet);
    }

  }
View Full Code Here

Examples of com.palepail.TestGame.Model.Bullet.EnemyBasicBullet

    world.addEnemyBullet(bullet);

  }

  private Bullet getBasicBullet(Ship ship, float bulletScale) {
    return new EnemyBasicBullet(EnemyBasicBullet.BULLETSPEED, 0, .5f * bulletScale * Configuration.gameScale,
        .5f * bulletScale* Configuration.gameScale, new Vector2(getPosition().x + getWidth() / 2, getPosition().y
            + getHeight() / 2), new Vector2(ship.getPosition().tmp().sub(getPosition()).nor()),
        this.variation);
  }
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.