Examples of EnemySquiggleBullet


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

  }

  public void shootFullSquiggleBurst(World world, Ship ship, float bulletScale) {
    for (float i = 0; i <= 360; i += 30) {
      float angle = i;
      EnemySquiggleBullet bullet = (EnemySquiggleBullet) getSquiggleBullet(ship, bulletScale);
      bullet.setOriginalAngle(angle);
      world.addEnemyBullet(bullet);
    }

  }
View Full Code Here

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

  private Bullet getSquiggleBullet(Ship ship , float bulletScale) {
    int amplitude = 45;
    float frequency = 5;

    return new EnemySquiggleBullet(EnemySquiggleBullet.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()), amplitude,
        frequency, 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.