Examples of EnemySplitBullet


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

  }

  public void shootFullSplitBurst(World world, Ship ship, float bulletScale, float splitAngle, float splitTime, boolean hasSplit) {
    for (float i = 0; i <= 360; i += 30) {

      EnemySplitBullet bullet = (EnemySplitBullet) getSplitBullet(ship, bulletScale, splitAngle, splitTime, hasSplit);
      bullet.getVelocity().setAngle(i);
      world.addEnemyBullet(bullet);
    }

  }
View Full Code Here

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

        frequency, this.variation);
  }

  private Bullet getSplitBullet(Ship ship, float bulletScale, float splitAngle, float splitTime, boolean hasSplit) {

    return new EnemySplitBullet(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()),
        this.variation, splitAngle, splitTime, hasSplit, bulletScale);

  }
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.