So I heard you like inventories

Hi all and sorry for my English,



I really don’t know if will find this interesting, but anyway. I made a lib (LGPL licensed) to implement a game inventory that it a pretty common element of many games. You can download it in http://lib.horizontedesucesos.net/



It’s independent from any game engines but I made the adaptation to JMonkey. The bad news: It’s not for Nifty GUI (My laziness give me headaches each time a read “layers”, so I still didn’t learn it). So if you implement it, please let me know.



Feel free to share with me comments and questions.

2 Likes

I forgot to the keys for the inventory and the example:


  • I → Open / Close the inventory window. It’s hardcoded right now so you have to override the class to assign your. I have to work in change this for the next version.



    For the example class:


  • N → Create a cube in a random point
  • Space / left click → Add the cube in the cursor to the inventory
  • Right click → Select the cube or put the selected cube in the inventory’s slot pointed by the cursor. You can see the selected cube in the upper right corner.
  • L → Load last saved inventory status
  • S → Save the status of the inventory to disk
@sesino said:
So if you implement it, please let me know.


Probably won't happen, we're all pretty lazy here. :roll:

Thanks fro sharing

@madjack said:
Probably won't happen, we're all pretty lazy here. :roll:


Great! I will feel like home, then!