itch.io is community of indie game creators and players

Devlogs

[Leapy] Repetitive background

Leapy
A browser game made in HTML5

I implemented the repetitive background, it works as follows:

I have a LevelManager script attached to an object that also has a reference to the frog object.

There are three background object that are displayed, as soon as the frog approachs the end of the last background, a new background object is created after the position of the last one and the first one is destroyed.

I achieved this with the following script:

Download Leapy
Leave a comment