if (System.currentTimeMillis() > lastBom + bomInterval)
{
switch (direction)
{
case UP:
game.getScene().addNewGObject(new Bomb(game, x + 2, y - 16));
break;
case DOWN:
game.getScene().addNewGObject(new Bomb(game, x + 2, y + getHeight()));
break;
case LEFT:
game.getScene().addNewGObject(new Bomb(game, x - 13, y + 7));
break;
case RIGHT:
game.getScene().addNewGObject(new Bomb(game, x + getWidth(), y + 7));
break;
}
lastBom = System.currentTimeMillis();
}