public void renderCracks(int xPos, int yPos, int damage) {
	xPos -= xOffset;
	yPos -= yOffset;
	int damageSprite = damage / 10;
	if (damageSprite > 7) {
	    damageSprite = 7;
	}

	for (int y = 0; y < Sprite.CRACKS.SIZE; y++) {
	    int yp = yPos + y;
	    for (int x = 0; x < Sprite.CRACKS.SIZE; x++) {
		int xp = xPos + x;
		if (xp < 0 || xp >= width || yp < 0 || yp >= height) {
		    continue;
		}
		int col = Sprite.CRACKS.pixels[x + (y + damageSprite * Sprite.CRACKS.SIZE) * Sprite.CRACKS.SIZE];
		if (col == 0xff000000) {
		    pixels[xp + yp * width] = col;
		}
	    }
	}
    }