bsergent / overmorrow

Typescript canvas game engine
http://challengercity.com/v4/projects/overmorrow/
0 stars 1 forks source link

Inventory system #8

Closed bsergent closed 5 years ago

bsergent commented 6 years ago

Inventory, abstract. Array of slots, each with null or an Item. Implement the dragging between slots and the rendering for each slot. Leave the positioning of the slots up to child inventories.

bsergent commented 5 years ago

Support positional inventories as one implementation of Inventory where items can take up multiple slots. Store an array of item locations and sizes, and then populate a map of all slots and whether they're occupied or not for finding new placements. Look at new projects page of my website for examples. This would also require the ability to rotate items within the inventory.

bsergent commented 5 years ago

Going to wait on positional inventories until another day, probably milestone v2.0.0 RPG.