i finallyyyyyy got the hell's half-acre plant data loader working. this wasn't really all that complex from a code angle, but jumping back into java, into my poorly-organized java code, after several months away, took some getting used to.
the code is still a little unsteady and parts of it are really unintuitive, but given that it's working now, i can tweak it in bits and pieces and see how it goes.
it's kind of funny how the game plays ("plays") basically identically to the original demo of two/three months ago, except that now instead of having hardcoded hotbar callbacks written by hand, it's like, okay there's an inventory, and here are the items in your inventory, and the first ten things in your inventory have their use callbacks set to your hotbar keys, and what they do is determined by these plant data files that have been loaded.
the next thing to do is to get item icons loaded and then let the player swap items around in the inventory. well, maybe before that is make planting seeds actually reduce your number of seeds + make harvesting crops actually give you crop items. either/or; it all needs to be done at some point. the thing with game programming is that there's always more to be doing. but this is one thing that's done, so, gj me @ finally getting it done.
the code is still a little unsteady and parts of it are really unintuitive, but given that it's working now, i can tweak it in bits and pieces and see how it goes.
it's kind of funny how the game plays ("plays") basically identically to the original demo of two/three months ago, except that now instead of having hardcoded hotbar callbacks written by hand, it's like, okay there's an inventory, and here are the items in your inventory, and the first ten things in your inventory have their use callbacks set to your hotbar keys, and what they do is determined by these plant data files that have been loaded.
the next thing to do is to get item icons loaded and then let the player swap items around in the inventory. well, maybe before that is make planting seeds actually reduce your number of seeds + make harvesting crops actually give you crop items. either/or; it all needs to be done at some point. the thing with game programming is that there's always more to be doing. but this is one thing that's done, so, gj me @ finally getting it done.