Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. //Отрисовка пуль
  2. for(Iterator<Bullet> bull = bullets.iterator(); bull.hasNext(); ) {  
  3.            Bullet bl = bull.next();
  4.            for(Iterator<Enemy> e = enemys.listIterator(); e.hasNext(); ) {
  5.                 Enemy en = e.next();
  6.         if (bl.isPlayers && (bl.shoot && bl.x < en.x + enSize && bl.x > en.x - enSize) &&
  7.           (bl.y < en.y + enSize && bl.y > en.y - enSize)){
  8.             exps.add(new Explotion(en.x, en.y, exp_anim));
  9.             e.remove();
  10.             bull.remove();
  11.             sounds.play(sEnExplosion, 1.0f, 1.0f, 0, 0, 1.0f);
  12.         }
  13.                                
  14.          }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement