Okay this is my last modification to the engine for the next 4 days
So far I've rewritten the inventory system and gotten it much more simplistic and much more effective. it's now 1/3rd of it's original filesize.
Here's a trimmed down version of an item script. It's from my sword item. I've removed any additional code from it to avoid it being lengthy since I'm just trying to show what it looks like.
As you can see, each event is laid out along with a few other functions that are used in the inventory menu. OnSelect is used for when you select the item in the menu. If it's supposed to bring up another menu, it will be coded in there. Equip Step is what the item is supposed to do at *all* times while equipped, while the Step event is just for when it's used. It's all pretty self explanatory really.
var event;
event = argument0
switch event{
case Create:
sprite_index = spritmSword;
varParent.varCanMove = 0;
break;
case Step:
break;
case Destroy:
varParent.varCanMove = 1;
break;
case Draw:
break;
case ReturnImage:
return spritmSword;
break;
case ReturnLevel:
return 1;
break;
case OnSelect:
break;
case InvStep:
break;
case EquipStep:
break;
}
These events are read by a dummy object that performs each action of the item.
Anyway; this is the basic item template. Pretty simple stuff really. I'll have more updates when I come back on wednesday.
I apologize for the lack of a demo, however it's not my intention to release an open source demo of pureLA, since that's a full engine and I'd rather wait to release it's full code until it's done. I will however be releasing a compiled tech demo soon enough. If y'all wanna go through the effort of decompiling it you can, but really you'd be better off waiting until it's done.
I've got a few things yet to finish before I start working on the Deku Tree demo. Inventory system is like... So close to being finished. I just need my NPC system and dialog systems completed. I may even release a small teaser demo or something; I don't know.
EDIT:
I'm back at my moms again, so that marks 4 days I can do stuff with this.
A small preview of some WIP artwork for the OoTGB portion of this-