b.setVisible(false);
blocks.remove(i);
}
}
} else if(blocks.get(i) instanceof BonusLifeBlock) {
BonusLifeBlock b = (BonusLifeBlock) blocks.get(i);
int blockX = (int) b.getRect().getMinX();
int blockY = (int) b.getRect().getMaxY();
if(checkBoxPos(b)) {
b.timesHit++;
b.setImage(bonusLifeBlockDamImg);
if(b.timesHit == 2) {
//lives++;
blocks.remove(i);
b.setDestroyed();
b.setVisible(false);
drops.add(new BonusLifeItem(bonusLifeItemImg, blockX, blockY));
} else score += 10;
}
}
}