2019-05-18 Build (preview-14)
A short changelog for a whole bunch of work! Saving and loading functionality is finally in (although there's no main menu to drive it, so you're stuck with shortcuts for now)!
This particular task ate up the past couple of days, and it's probably the least enjoyable part of game development for me. Even though saving and loading are pretty essential features, they don't really contribute anything that is intrinsically a part of the game experience.
There's a lot of maintenance work involved in this kind of code, since anything that's added to the game is likely to need to be added to save/load code, or at least cleared before loading. For this reason, it's hard to front-load save/load work at the beginning of a project, and as a result, by the time I get to it, I've usually made a lot of decisions that didn't really take into account or prioritise persistent saving/serialisation.
It's usually not difficult, but it is long, slow, tedious work, which usually requires a few changes here and there that aren't necessarily in the best interests of what the game itself is doing. A degree of focus is needed to keep track of everything and a lot of extra testing is needed to make sure that bugs don't creep in (last night, I spotted and fixed a bug that I only spotted by chance that would only occur after loading a save that have been saved from a previously loaded game).
Godot has some documented patterns for serialising, instantiating and restoring its nodes, which is nice, but as noted in the docs, doesn't scale to scene trees more than one node deep. The pattern of for i in current_line.keys(): new_object.set(i, current_line[i])
for populating newly created instances with saved data is nice, but the moment you want to do extra munging/processing on the way in or out, it ends up requiring as much work as writing manual import/export functions for every class you care about. These approaches are a good start, and are great to have documented, but they don't meaningfully simplify the work for me.
For me, save/load code is like the fish of gamedev (apologies to my vegan/vegetarian friends) - you have to eat it slowly and be constantly wary of bones, otherwise you risk choking to death. Chewing for bones isn't really that hard, it just isn't any fun, and that's really not the relationship I want to have with food or with games :D
Anyway, enough rambling about the bits I don't enjoy. Time to get back onto the bits I do enjoy!
P.S. Ignore the "-dirty" on the end of the version number. I forgot to commit the removal of some whitespace before uploading and didn't think it was worth cutting new builds for.
Full changelog:
- Added initial implementation of saving/loading games
- Added temporary interface events for saving/loading
- Added save shortcut (S)
- Added load shortcut (L)
- Removed forced-perspective scaling for bees leaving the hive
- Fixed effects not being cleared after starting a new game/loading (resolves those cheeky nanobees)
- Fixed unbuilt cells list not being cleared when starting a new hive
- Fixed stock multiplier effects being added instead of multiplied
- Fixed stock not being rounded after effect multipliers and offsets are applied
- Fixed Queen move and turn speed not being set correctly
Files
Get Hive Time
Hive Time
A cute and zany bee themed management sim/base builder.
Status | Released |
Authors | Cheeseness, Mimness |
Genre | Simulation |
Tags | bee, City Builder, Cute, Hex Based, hive, Management |
Languages | English |
Accessibility | Configurable controls |
More posts
- Happy 5th beethday, Hive Time!1 day ago
- World Bee Day 2024 & v1.2-149, v1.2-150 changelogsMay 20, 2024
- Happy 4th beethday, Hive Time!Dec 12, 2023
- World Bee Day 2023 & v1.2-138, v1.2-139 changelogsMay 20, 2023
- Happy 3rd beethday and v1.2-129 changelogDec 12, 2022
- World Bee Day and v1.2-118, v1.2-119 changelogsMay 20, 2022
- v1.2-100 changelogJan 02, 2022
- Hive Time turns 2, and v1.2-95, v1.2-96 changelogDec 15, 2021
- v1.2-78 changelogSep 26, 2021
- v1.2-76 & v.12-77 changelogJun 05, 2021
Leave a comment
Log in with itch.io to leave a comment.