public void renderTile(int xp, int yp, Tile tile) {
		xp -= xOffset;
		yp -= yOffset;
		Sprite sprite = tile.getSprite();
		for (int y = 0; y < sprite.SIZE; y++) {
			int ya = y + yp;
			for (int x = 0; x < sprite.SIZE; x++) {
				int xa = x + xp;
				if (xa < -sprite.SIZE || xa >= width || ya < 0 || ya >= height) break;
				if (xa < 0) xa = 0;
//				pixels[xa+ya*width] = tile.sprite.pixels[x+y*tile.sprite.SIZE];
				int col = sprite.pixels[x+y*sprite.SIZE];
				if (col != 0xFFFF00D0) pixels[xa + ya * width] = col;
//				} else {
//					pixels[xa + ya * width] = pixels[(xa + ya * width) - 32];
//				}
			}
		}
	}