public void render(int xMovement, int yMovement) {
		if(RenderWallSprite) {
			for (int y = 0; y < height; y++) {
				int yp = y + yMovement;
				if (yp < 0 || yp >= height) continue;
				for (int x = 0; x < width; x++) {
					int xp = x + xMovement;
					if (xp < 0 || xp >= width) continue;
					int PR = wall.SIZE - 1;
					pixels[xp + yp * width] = wall.pixels[(x & PR) + (y & PR) * (PR + 1)];
				}
			}
		} else {
			for (int y = 0; y < height; y++) {
				int yy = y + yMovement;
//				if (yy < 0 || yy >= height) break;
				for (int x = 0; x < width; x++) {
					int xx = x + xMovement;
//					if(xx < 0 || xx >= width) break;
					int tileIndex = ((xx >> 4) & PixelWidth - 1) + ((yy >> 4) & PixelHeight - 1) * PixelWidth;
						pixels[x + y * width] = tiles[tileIndex];
				}
			}
		}
	}