Пример #1
0
 @Override
 public void objectCollision(Object entity1, Object entity2, double x, double y) {
   if ((facade.isBullets(entity1) && !facade.isBullets(entity2))
       || (facade.isBullets(entity2) && !facade.isBullets(entity1))) {
     game.getSound().play("explosion");
     explosions.add(new Explosion(x, facade.getWorldHeight(world) - y));
   }
 }