Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Отрисовка пуль
- for(Iterator<Bullet> bull = bullets.iterator(); bull.hasNext(); ) {
- Bullet bl = bull.next();
- for(Iterator<Enemy> e = enemys.listIterator(); e.hasNext(); ) {
- Enemy en = e.next();
- if (bl.isPlayers && (bl.shoot && bl.x < en.x + enSize && bl.x > en.x - enSize) &&
- (bl.y < en.y + enSize && bl.y > en.y - enSize)){
- exps.add(new Explotion(en.x, en.y, exp_anim));
- e.remove();
- bull.remove();
- sounds.play(sEnExplosion, 1.0f, 1.0f, 0, 0, 1.0f);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement