Changed camera.x to camera.offsetX