public void render(int xPos, int yPos, Tile tile, boolean flip) {
	xPos -= xOffset;
	yPos -= yOffset;
	for (int y = 0; y < tile.sprite.SIZE; y++) {
	    int yp = yPos + y;
	    for (int x = 0; x < tile.sprite.SIZE; x++) {
		int xp = xPos + x;
		if (xp < 0 || xp >= width || yp < 0 || yp >= height) {
		    continue;
		}
		int col = tile.sprite.pixels[x + y * tile.sprite.SIZE];
		if (col != 0xffff00ff) {
		    pixels[xp + yp * width] = col;
		}
	    }
	}

    }