My goal for this session was to make the ground move left slowly and add a jumping animation with a flip at the max height.


Initially, I coded in a system similar to the background images’ parallax effect for the ground. However, I found it too difficult to manage with objects, compared to images. Therefore, I instead doubled the ground image length in Photoshop to make the process easier.

The result of this code is a parallax ground that has constant collision with the player and infinitely repeats. However, the result of the jumping animation wasn’t as I anticipated, instead the player was stuck in a flip frame. I took this factor into consideration when coding my next version.
Here is the output: