Sunday, July 29, 2018

Things can be crafted!

Wow. Check it out! I seem to have gotten a rudimentary crafting system working.


"Stella's Cauldron" is a cheat station that lets me "craft" basic items muahahaha.

Haven't gotten the list on the left to actually be scroll-able yet. That would be a thing to work on. Also maybe some sparkly particle effects when you craft something?

Then there's also designing the... UX of it? The plan for the future of crafting is that initially, recipes will only show up when you collect enough items for them to show up. Then, when you craft something once, you "learn" the recipe for it and it'll be saved in that station even if you don't have all the ingredients (it'll be a lower opacity option if you don't have enough to craft an item.) I'll add a "hide unavailable items" checkbox or something as well.

By the way, I don't think I've ever shown Stella Portabella, here is some art of her:


"hey that mushroom on her head isn't a Portabella!" yeah well whatever.

Tuesday, July 24, 2018

More crafting

Woweee wow wow. I got the placeholder crafting interface to pull data from the crafting.xml, which is pretty cool. I followed the same code design as I did for the inventory; view, controller, and data.


The first crafting station (Stella's Cauldron) is just a test one, so it has items that can't actually be crafted, which is why it has that weird bar in the middle. And the other station has ones that have ingredients but no icons for them yet.

There's a bug when I had on my toggle code to enable/disable the crafting UI (it's been disabled for now) where I have to click on something twice in order to hide/show the interface. Need to figure that out. Or you just can't toggle the crafting menu on/off with the button, can only turn it on with the crafting button and have to close it with the "x" button I'll add later.

Can't actually craft anything yet. I need to figure out how to have the inventory system communicate with the crafting system.

Here's a WIP of the crafting menu design:


I'm going to make the background look like a wooden table from the face down. The list of options on the left will look like a scroll on the table. The potion bottle will also be something that changes based on the crafting station you're at (potion bottle for a generic station, sewing machine for clothing, mixing bowl for cooking, and so on.)