Off Topic – A Work Trip To India

Hi All,

Recently, as part of my job that pays the bills, I was ask to travel to India to assist one of our major clients with a software migration. I was very honoured to be chosen and ready for what was going to be a very packed working week. Little did I know how busy I was going to be…

IMG_20160607_183532

On arrival, I was greeted with familiar hot and humid climate that I was accustomed having grown up in Darwin. And tired as I was I revelled in the variety of sites that the city of Mumbai had to offer. From construction on a very large apartment block to a thrown together shanty town-esque buildings with tarpaulins for roofs, but they still managed to have a satellite TV dish.

IMG_20160608_092146IMG_20160607_191828

Mumbai was a city that seemed to always be going somewhere and never had time to wait. As the work took me late into the night and we were often driving back to the hotel to see a world still full of hustle and bustle despite the hour. Having a Muslim population during Ramadan meant that even the street food stalls were still operating to cater for those in need of a good feed ahead of a whole day of fasting come the morning light.

IMG_20160609_024330

As you can see after a long flight and 2 nights of work on only a few hours sleep I was certainly a little worse for wear. But my gracious host were very good at looking after me and keeping me well fed on local cuisine. Even on the last day I was treated to a specially made prawn curry prepared by Alfred for me to which I was very grateful and enjoyed immensely, though next time I am looking forward to the extra hot version to really test my love of chilli!

IMG_20160611_020422

Any way I look forward to sharing more about the development of Little Bit Lost in my next post with more of a look at inventory and crafting system.

Grae

 

Building an Inventory System

Hi All

In a survival game what you have has a major impact on how well you survive. Over the last month I have begun working on my inventory system so as to prolong character’s life expectancy as well as appeal to the hoarder that keeps everything, or the player that has OCD and everything must have a place.

This has been an interesting bit of work for me as architecturally I have had to have quite a long think about various aspects of inventory systems and what I most wanted from my system. I considered element like an RPG style system where different items took up more slots than others, a custom GUI where items arent bound to slots and are instead bound to an area for that type, stacking items etc. Once I determined the things I wanted I went to my old reliable source of information to learn what I needed.

This month I used a tutorial series by Awful Media (https://www.youtube.com/watch?v=D5WEwG4L5HQ). It was great to come back to Austin’s videos as one of his videos was the first Game Development tutorial video I watched when learning how to use Unity for the first time. And though my system has functionally deviated significantly from what I learn in this series it is a great foundation for learning that all game developers considering using an inventory system should consider watching.

So after some though I decided to go with a simple system similar to MineCraft or 7 Days to Die. I have structured the code in a way that will also allow me to have multi slot items for larger items potentially in future but I chose not to do this in the short term.

Inventory

Instead of a drag an drop system I went for a click to pick up and click to drop. This gave me the ability with stacked items to right click while “dragging” to drop a single. I have included are control left click to split a stack (half stays in it current slot the other half is picked up. Shift click allows a player to transfer the item from the current item container to either equipable (for armour), an open loot container or to the belt.

StackingItem

I still have some more features to add and these include a right click menu, a tool tip and a help button for reminding the player of the short cut keys/combinations. I hope for now you like the look of it and I look forward to sharing more soon.

Cheers
Grae