Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Need help on creating a Inventory for a game using a simple Class — Gideros Forum

Need help on creating a Inventory for a game using a simple Class

DoradoLabDoradoLab Member
edited April 2014 in General questions
Hi Team,

I am new to Gideros/Lua.. I must need help from you guys. I am doing a sample game where i need to create a inventory system. I created all containers but i am having trouble in creating a simple class for Inventory container where each inventory holds some boolean, posX, posY etc. If you could either edit or give me a proper example it will be good for me to move further. I will attach my class file below. Do the needful.

The main code i have commented inside CommonAssets.lua as below...


-- Need to create the common groups above each Inventory box Images using a single class

inventoryHandler:addGroupOnInventory()

--Endv


Thanks,

DoradoLab
lua
lua
CommonAssets.lua
6K
lua
lua
InventoryHandler.lua
594B

Likes: DoradoLab

+1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.