16/11/22 New platforms and refined falling platforms


Today I aimed to replace the texture for the platforms and create a working randomly generating falling platform system.

“previousy” is set to 620 as that is the middle of the bounds where the platforms should spawn, therefore 1 jump height below or above should yield 1 of 3 platform positions that spawn throughout.

Platforms create a sort of stairs system to raise the player off the ground and the x positions are set so their is always a constant stream of in range platforms.

removed the previous random platform system

I encountered the issue that when colliding with a falling platform from the side, the platform would glide off the right screen. Therefore, I have set it so if the platform is going to be above, it will never be a falling platform (shown in lines 232 and 245)

randomly generates falling platforms

The result of these new platforms is this:


Leave a Reply

Your email address will not be published.