public void renderPlayer(int xp, int yp, StaticSprite staticSprite) {
		xp -= Xoff;
		yp -= Yoff;
		for (int y = 0; y < staticSprite.HEIGHT; y++) {
			int ya = y + yp;
			for (int x = 0; x < staticSprite.WIDTH; x++) {
				int xa = x + xp;
				if (xa < -staticSprite.WIDTH || xa >= width || ya < 0 || ya >= height) break;
				if (xa < 0) xa = 0;

				int pix = staticSprite.pixels[x + y * staticSprite.WIDTH];
				if (pix == 0xffff00ff) continue;
				int place = xa + ya * width;
				pixels[place] = pix;
			}
		}
	}