Package org.sfsoft.jfighter2dx.characters

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


    Bullet bullet = null;
   
    for (int i = bullets.size() - 1; i >= 0; i--) {
     
      bullet = bullets.get(i);
      bullet.update(dt);
     
      // Si el proyectil sale de la pantalla se elimina
      if ((bullet.getX() < 0) || (bullet.getX() > SCREEN_WIDTH) || (bullet.getY() < 0) || (bullet.getY() > SCREEN_HEIGHT))
        bullets.remove(i);
    }
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.