Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualdeathwearer

Posted 11 December 2012 - 12:57 PM

// HANDLE MANY ENEMIES - FAIL
ArrayList<Rectangle> enemiesBounds = new ArrayList<Rectangle>();
for (int i = 0; i < enemies.size(); ++i){
enemiesBounds.add(enemies.get(i).getBounds());
}
for (int i = 0; i > blasterShots.size(); ++i){

You wrote > when I think it should be <

Not sure if this cause your problem, but that would be a good bug to fix first Posted Image

#1deathwearer

Posted 11 December 2012 - 12:57 PM

// HANDLE MANY ENEMIES - FAIL
ArrayList<Rectangle> enemiesBounds = new ArrayList<Rectangle>();
for (int i = 0; i < enemies.size(); ++i){
enemiesBounds.add(enemies.get(i).getBounds());
}
for (int i = 0; i > blasterShots.size(); ++i){

You wrote > when I think it should be <

Not sure if this cause your problem, but that would be a good bug to fix first :)

PARTNERS