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