public void renderPlayer (int xp, int yp, Sprite sprite) {
		xp -= xOffset;
		yp -= yOffset;			
				for (int y = 0; y < 16; y++) {
					int ya = y + yp;
					for (int x = 0; x < 16; x++) {
						int xa = x + xp;
     					if (xa < -16 || xa >= width || ya < 0 || ya >= height) break;
						if (xa < 0) xa = 0;			
				int col = sprite.pixels[((x * 2) & 31) + ((y * 2) & 31) * sprite.SIZE];


		        if (col != 0xFFFF00FF) pixels[xa + ya * width] = col;

		//			}
	//			}
//			}
		}
		}
	}