public void renderPlayer(double xPos, double yPos, float falseFall, Sprite sprite, boolean flip) {
		xPos -= cameraXCoord;
		yPos -= cameraYCoord;
		yPos += falseFall;
		for(int y = 0; y < sprite.getSizeY(); y++) {
			double yAbs = y + yPos;
			for(int x = 0; x < sprite.getSizeX(); x++) {
				double xAbs = x + xPos;
				int xs = x;
				if(flip) xs = (sprite.getSizeX() - 1) - x;
				if(xAbs < -sprite.getSizeX() || xAbs >= width || yAbs < 0 || yAbs >= height) break;
				if(xAbs < 0) xAbs = 0;
				int col = sprite.getSpritePixel(xs + y * sprite.getSizeX());
				if(!(col == 0xffff00ff)) {
					pixels[(int)xAbs + (int)yAbs * width] = col;
				}
			}
		}
	}