public void renderTile(int xp, int yp, Tile tile) {
		for (int y = 0; y < tile.sprite.SIZE; y++) {
			int ya = y + xp;
		
			for (int X = 0; y < tile.sprite.SIZE; X++) {
				int Xa = X + xp;
				if (Xa < 0 || Xa >= width || ya < 0 || ya >= width)break;
			pixels[Xa+ya*width]= tile.sprite.pixels[X+y*tile.sprite.SIZE];
			}
		}
	}