roguelike help

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
imgifty
Prole
Posts: 13
Joined: Wed Nov 20, 2013 12:58 pm

Re: roguelike help

Post by imgifty »

Anyone got an idea?

Also does someone know how I would implement jumper with my map?
User avatar
deströyer
Prole
Posts: 32
Joined: Thu Jun 27, 2013 7:59 pm
Contact:

Re: roguelike help

Post by deströyer »

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.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 5 guests