Skip to content

Instantly share code, notes, and snippets.

View flowstate's full-sized avatar

Eric Hibbs flowstate

View GitHub Profile
///@desc draw inventory menu
var _inventoryRows = 5; //***update to dynamically match inventoryCapacity
var _inventoryCols = 4;
var _inventorySlotSprite = spInventorySlot;
var _highlightedInventorySlotSprite = spInventorySlotHighlighted;
var _inventorySlotWidth = sprite_get_width(_inventorySlotSprite);
var _inventorySlotHeight = sprite_get_height(_inventorySlotSprite)
var _itemsInInventory = ds_list_size(oControllerEntity.player.inventory);