Chunk Update (WIP download available)
Hello, here's on update on the game. I worked on it a lot today as I'm happy about launching on itch.
tl;dr I wrote up a chunk system today to allow for infinite worlds, and ran into a lot of issues so I didn't get to add the other things I wanted (world gen settings). However there's a WIP build attached with the infinite world gen if you want to download it. It's running well for me but I'd like to know if it lags for others, and also let me know if there are any bugs. Thanks.
Notes on the prebuild
If you unload a chunk everything in it will be lost. The chunk will regenerate with the same landscape (but different trees... will be fixed). In the actual update, the chunks will save changes that you make.
Details
Today I wanted to get some world gen settings added along with saving and loading. Unfortunately, I realized I should go ahead and set up chunks before bothering with a save/load system (because I'd have to completely rewrite the saving/loading to work with the chunks).
Chunks are something I've wanted to add because I can have a map of any size without massive lag issues. I started writing them up, and went ahead and just created infinite world generation at the same time. I spent a while just working on code without being able to see the results, and eventually I got to a place where I could see the chunks. It worked great for a bit, and then I ran into this.
After loading anything more than the starter area, the framerate would drop to <1 fps. Each frame was taking like, 6 seconds. To summarize, creating and deleting colliders in unity can be slow. Doing that with many large colliders is REALLY slow. To combat this I threw together a queue system to split the work up to 1 chunk load/unload per frame. This caused my game to constantly freeze at seemingly random times, so I tried optimizing more things. After a while (3 hours+) I realized my code had a few bugs (an infinite loop), and also that Unity REALLY doesn't want you to move colliders on a static object. Once I made the tiles on the chunks kinematic.. everything worked. Yay
I want to add saving and loading and world gen settings before releasing a full v0.4. v0.5 will be more content focused.
And if you're reading this, thanks for showing interest in my game. I decided to launch this on itch cause it's absolutely the best project I've made and I want to share it. I've made a lot of dead projects that nobody ever saw. Let me know if you have feedback on the game or on this WIP build.
Files
Get Boom 2023
Boom 2023
An explosion and building sandbox.
Status | In development |
Author | Tendi3us |
Genre | Simulation |
Tags | 2D, blocks, Explosions, Indie, Physics, Procedural Generation, Sandbox, Voxel |
Languages | English |
More posts
- Boom 0.5 is finally out62 days ago
- Boom 0.5 is in progressSep 14, 2023
- Boom 0.4 is out!Jul 29, 2023
- Chunk Update Progress (new prebuild available)Jul 21, 2023
- Quick Update v0.3.1Jul 19, 2023
Leave a comment
Log in with itch.io to leave a comment.