Twinstick shooter
Twinstick shooter is a game made in 5 weeks together with 2 artists and 1 developer. The game is a top down shooter game where you collect keycards to advance in the level.
I was responsible for making the UI, player movement and shooting. The UI includes a main menu, settings menu with tabs, statistics screen and a credits screen.
Code snippets
Item represents the actual item and how many there can be in a stack. ItemStack is the actual item as it’s stored in an inventory.
The Inventory class hold the ItemStacks in an array, 3 slots for the hotbar and activeItem represents what is currently being held.
InventoryManager holds an instance of an Inventory and controls it. It will choose a item from the hotbar to be held, and the scroll wheel is used to cycle through the hotbar.