Week 20 and 21 - Save & Load Game


I'm combining the last two weeks into one devlog because almost all of that time re-writing code to make saving and loading possible. I originally though it'd take me more than a month, and now I can't believe I got it done in only 8 days. 

Saving and Loading


I've been using Easy Save 3 for saving and loading, and I'd highly recommend it to anyone looking to add this functionality to their game. I wish I'd added saving from the start of the project, because what I had to do, was go back and re-write a TON of code this last week, to make saving and loading work smoothly and efficiently. Just look at my git commits from the last two weeks:

Anyway, it works, and I'm extremely happy with it. There's still some stuff that needs to be added to the save/load system, like particle effects, animation states, some grid data, walls, invasion and squad meta-data, etc. 

Walls

Okay, so I finally thought it was worth adding this feature. If you've ever played Dungeon Keeper, you know that the little imps run around making the walls look pretty, wherever you've built your lair. Well, in Beneath the Mountain, the Engineer's do the same thing:


Soon i'll also be adding floor tiles to  the list of what the engineer does in his spare time. Also, more engineers means more walls get built faster. Oh, something neat about the wall system. I'm actually shrinking the wall cube, and moving its position slightly when we add  a wall. You can see that here: 


The Axeguard

I wanted to add another unit type, so now we've got a 2-handed variant of the dwarf warrior, the Axeguard:

Okay, thats pretty much it for the last two weeks. Tons of code to to make save/load work, and a few other small features. Next week I've got more save/load bugs to fix, as well as lots of other features. Here's what my to-do board looks like:


Thanks for reading/following, 

-Max

Files

Beneath the Mountain v1.0.7.zip 521 MB
Jun 12, 2021

Leave a comment

Log in with itch.io to leave a comment.