Thursday, March 21, 2019

New Endless World Approach

I'm changing my approach. I've tried building and endless game world of random items using panels, related to each other and with their own coordinate systems. This has resulted in stuttering and glitchy positioning and lag. My new approach uses the idea of an exploration history. If the player goes into new territory, by about half the display width/height, random checks are made and possibly new elements spawned.

I'm not yet certain of how long a player can explore before the element count is too much for the game, resulting in lag. That will be one of my first tests. But surely I can mitigate this much easier than trying to make the panel techniques work.

My next steps are to store the created elements for restarting and saving games. I also need to code the starfield and planet surfaces, which will be tiled images. That will also be a challenge, I will have to store surface features like craters etc so the planets look the same when restarting or returning to them. It should be similar to tracking any other element type though.

No comments:

Post a Comment

From Shotcut to Kdenlive

So I've been using Shotcut for a while now, for my YouTube videos... and music videos. I love the application. Slicing clips, doing fade...