Package com.palepail.TestGame.Enemies

Examples of com.palepail.TestGame.Enemies.Boss


  }

  private void drawBossHealth(Enemy enemy) {

    Boss boss = (Boss) enemy;

    Image object = new Image(world.level.getTexture(boss.getHBSpriteName()));
    object.setPosition(boss.getHealthBar().getPosition().x, boss.getHealthBar().getPosition().y);
    object.setOrigin(boss.getHealthBar().getHeight() / 2, boss.getHealthBar().getHeight() / 2);
    object.setWidth(boss.getHealthBar().getHeight());
    object.setHeight(boss.getHealthBar().getWidth());
    object.setScale(.5f * Configuration.gameScale / 20, .5f * Configuration.gameScale / 20);
    object.setRotation(boss.getHealthBar().getRotation());

    stage.addActor(object);
 

  }
View Full Code Here


    enemyIterator = enemies.iterator();
    while (enemyIterator.hasNext()) {
      enemy = enemyIterator.next();
      sr.rect(enemy.getBounds().x, enemy.getBounds().y, enemy.getBounds().width, enemy.getBounds().height);
      if (enemy instanceof Boss) {
        Boss boss = (Boss) enemy;
        sr.rect(boss.getHealthBar().getPosition().x, boss.getHealthBar().getPosition().y, boss.getHealthBar()
            .getWidth(), boss.getHealthBar().getHeight());
      }

    }
    sr.setColor(Color.YELLOW);
    bulletIterator = bullets.iterator();
View Full Code Here

TOP

Related Classes of com.palepail.TestGame.Enemies.Boss

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.