Lab 05 Program a Side-scrolling Platform Game

Explanation of Recycling Spinning Coin

Click inside the graphic below. Hold down LEFT or RIGHT arrow key to scroll until the spinning coin is off the stage.
Note the coin is relocated to the other side.

Also try mouse down to make the character jumps up to catch the spinning coin. The coin disappears from the stage.
But the coin is relocated. Note where the coin is relocated to.--which side it is relocated depends on the direction of the character is facing.