Package org.sfsoft.jfighter2dx.characters

Examples of org.sfsoft.jfighter2dx.characters.Enemy.update()


    // Desplaza todos los enemigos por la pantalla
    for (int i = enemies.size - 1; i >= 0; i--) {
     
      // Desplaza al enemigo por la pantalla
      Enemy enemy = enemies.get(i);
      enemy.update(dt);
     
      if (enemy.getClass().getSimpleName().equals("ShooterEnemy"))
        ((ShooterEnemy) enemy).shoot(dt);
     
      if (enemy.getClass().getSimpleName().equals("StaticShooterEnemy"))
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.