This will require creating an array to which all game objects are added. When the ship would move to the right, it's horizontal velocity is set to zero and the horizontal velocities of all other game objects will be modified to give the illusion of the camera panning to the next part of the world.
This will require creating an array to which all game objects are added. When the ship would move to the right, it's horizontal velocity is set to zero and the horizontal velocities of all other game objects will be modified to give the illusion of the camera panning to the next part of the world.