Working on generation
My first in-progress devlog! Yay?
Ok, so since each loop's buildings are randomly generated, we need some sort of way to spawn the buildings on the platform. Before this update, there were just a bunch of game objects as the floor, i think there were about 80 to 100 game objects acting as the floor. The gap between these is likely why you can sometimes fall through the floor, even though you technically shouldn't anyway.
To fix this, we need a single game object as the floor. However, by changing this we also need to rework our level generation slightly, as before it worked by spawning a building on a random platform, and since there were many, there wasn't any big problem. Now that we're trying to work with one large platform, there is an overlap possible between buildings where they would spawn inside one another, like this:
To fix this, I am going with a lambda expression to retry getting the spawn position until the position chosen is far enough away from any other building that it won't cause any problems.
Get Fractured: A Time Odyssey
Fractured: A Time Odyssey
GET ALL THE ITEMS! MASSACRE! AHHHHHHH
Status | In development |
Author | TriTorus |
Genre | Platformer, Action |
Tags | 2D, Roguelike, Shoot 'Em Up, Unity |
More posts
- Zell, the Time ChiefJun 28, 2021
- SKILLS!Jun 17, 2021
- Little updateJun 16, 2021
- All the enemies!Jun 11, 2021
- All the items!Jun 11, 2021
- Ghom, Devourer of EarthJun 06, 2021
- BallBoyJun 05, 2021
- Gamefeel! OOOJun 03, 2021
- Items!May 30, 2021
Leave a comment
Log in with itch.io to leave a comment.