Endless.

For this week’s game, I spent most of my efforts on figuring out the code. The inspiration of this project came from a horror game I saw some streamer playing on Twitch, where the player goes through an infinite loop unless a condition is triggered. I initially planned to have doors on each room, but that requires some more coding I’m not familiar with yet, though the main reason is short on time.

As on how I got the code to work, I calculated how much distance I have to advance among the Z axis to create the next room, and generate the whole scene again upon colliding with the trigger at the door. A variable keeps track of the times of new rooms generated, so each time a new room is triggered, the whole scene is pushed forward by (fixed distance*how many rooms generated so far) along the Z axis. As for the furniture in the room, I have them placed within a random range of the current room, and assigned them different ranges among the X axis to avoid overlapping.

The feedback i received are good ideas to polish the project further, and I would definitely try if I had enough time.

Leave a Reply

Your email address will not be published. Required fields are marked *