31/10/22 More Platforms/ Backgrounds


My goal today was to improve upon my platform system and add a functional parallax background.

defining a new variable to implement the background
Two backgrounds make up the setting

This system uses two backgrounds to implement the effect of distance being travelled:

This background remains in the back of the screen to maintain a setting
This foreground element is mostly transparent and appears on a closer layer

When combined they produce this effect:

Creates platforms and adds them to the array so they can be updated in a loop
Code controls the updating of the platforms and how they are disposed of after they move enough across the screen

When ran the code produces platforms that move like this:


Leave a Reply

Your email address will not be published.