🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Minor refactoring

Published November 25, 2013
Advertisement
Today it was mostly a refactoring push. I've been sick, just a touch of a cold that caused me to skip church to babysit the kids (who are also a little bit snot-filled, like me) so I decided to just do a little bit of cleanup while they slept. Mostly rearranging skills and workbench recipes. Each workbench now has its own file, with recipes stored locally and defined at the top of the file for easy access. I also started work on a PlayerData structure, which will hold... well, player data. It'll be the central structure for all things player-related: the player's combat stats now live here, as well as his inventory and lists of known skills. Having the playerdata centralized like this makes it easier to save and hack on.

I've started work on "official" recipes for the various workbenches. And by official I mean, of course, skills that are very likely to completely change by the time I release a demo. But I am ripping out the duplicate skills, the inappropriate recipes for given workbenches, etc... each workbench, as I said, now has its own recipe/skill list that is appropriate for its function.

I also generated a utility function for generating Learning skills for the spell tomes. Spell tomes are used for research purposes: spend resources to learn new skills. So to help with the learning skill generation, I built a helper function similar to the already-existing GenerateCraftSkill() utility which, as can be guessed, generates craft skills, or skills that transform sets of resources into other resources.

As a final bit of labor, I just now started work on a new level generator. The existing one will be going bye-bye soon, since it was only ever intended as a testing ground and has fulfilled the meaning of its existence. Going forward, I'll be working more on actual "game" stuff: objectives and scenarios, encounters, etc...

No screenshots, since there really isn't anything new to show visually.
Next Entry Death
2 likes 4 comments

Comments

Navyman

LOL,

"official" recipes for the various workbenches.

November 25, 2013 04:52 AM
JTippetts

Ain't nothin' official until gold master, baby.

Oh, yeah. Just implemented a Light Torch spell. So now, if you want to explore the cave, you need to carry a supply of wood and tinder to light a torch that will last for 5 combat rounds (probably will tweak this). Don't have wood or tinder? Gonna get eaten by a grue.

November 25, 2013 05:02 AM
Navyman

Okay someone has played "Don't Strave", a great game.

November 25, 2013 05:07 AM
JTippetts

Heh, actually I haven't, though swiftcoder or someone has recommended it to me a few times. But I have played an absolute metric crapton of roguelikes, which is where I get most of my ideas for this thing.

November 25, 2013 05:17 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement