itch.io is community of indie game creators and players

Devlogs

Journal Entry 8: Finished Refactoring and Repeating World

Don't Be Afraid To Fall
A downloadable game for Windows and Linux

Date: 17. 9. 2021

My first task today was finishing the refactoring process I went through yesterday. I only had a little bit of work left mostly centralizing constants regarding building walls. I had this done relatively quickly.

I continued with implementing the repeating world mechanic. I created a collider under the platform and set it to trigger. Then I tagged all of the objects that should repeat with a special tag and did some scripting. When the under platform trigger is activated, all of the tagged objects are teleported some distance down. I also added a way to queue callbacks before and after moving the world. This is used to stop spawning meteors, getting rid of meteors and rubble and restarting meteor spawning with a bit of delay on level up. I had to rework the meteor spawning a bit to enable this.

While testing I had some trouble with the world teleporting seemingly randomly. Turns out pieces of rubble were falling down the hole and activating the trigger. I solved this by disabling collisions of rubble and the trigger in the Collision Matrix.

I also had some trouble with building walls. This was anticipated as I was fully aware I'm mixing local and global coordinate systems in the wall spawning script. Although this wall building system is temporary, I decided to fix as I will probably reuse this code later.

I will continue next time with some more testing of the world repeating mechanic, because I don't believe I got it right already.

Files

  • Day7BuildWindows.zip 22 MB
    Sep 17, 2021
  • Day7BuildLinux.zip 36 MB
    Sep 17, 2021
Download Don't Be Afraid To Fall
Leave a comment