Anyone got an idea?
Also does someone know how I would implement jumper with my map?
roguelike help
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: roguelike help
Conceptually, you can give items an 'inventorySlot'-property, which tells it where it wants to go. For instance, a sword could have sword.inventorySlot = 'weapon'.
You can then have two different types of inventory - the 'equipped gear' inventory and the 'backpack' inventory. The 'equipped gear' inventory cares about the itemSlot-value on the items, whereas the backpack doesn't. The 'weapon' slot in the 'equipped gear' inventory can only receive an item which has inventorySlot = 'weapon', for example.
You can then have two different types of inventory - the 'equipped gear' inventory and the 'backpack' inventory. The 'equipped gear' inventory cares about the itemSlot-value on the items, whereas the backpack doesn't. The 'weapon' slot in the 'equipped gear' inventory can only receive an item which has inventorySlot = 'weapon', for example.
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 5 guests