public void renderSprite(Sprite sprite, int xa, int ya, boolean fixed){
		if(fixed){
			xa -= xOffset;
			ya -= yOffset;
		}
		for(int x = 0; x < sprite.width; x++){
			for(int y = 0; y < sprite.height; y++){
				if((x+xa) < 0 || (x+xa >= width) || (y+ya) < 0 || (y+ya) >= height) continue;
				int col = sprite.pixels[x+y*sprite.width];
				if(col != 0xffff00ff) pixels[(x+xa)+(y+ya)*width] = col;
			}
		}
	}