06/11/22 parallax ground test and Jumping test


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.

new variables for jumping and a parallax ground
new coordinates for ground image and new animations for jumping and flipping

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.

added the ground parallax code and code to control which animation is played

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:


Leave a Reply

Your email address will not be published.