Devlog #1: Tab-Targeting, Health, and Mana

Monday

To kick off this game, I created a new GitHub repository, added the Unity .gitignore, and downloaded a fresh installation of Unity (2020.2.0a12).


Tab-Targeting

The first task was to create the tab-targeting system. To do this, I put all of my targets into a parent game object called, creatively, “Targets” (I’m not using tags currently since I haven’t completely planned that out yet). Next, I created a list to store them, since I want to be able to add and remove targets, and put all of the children GameObjects of “Targets” into it. Then I made a simple function that keeps track of the target’s index and increments it every time the “tab” key is pressed to cycle through this list. The index then resets once it reaches the end of the list. Finally, I added a temporary indicator that I copied over from the jam version to highlight the current target. Every time the index is updated, the indicator will move to the transform of the target object.



Health & Mana

Next, I created the health and mana systems. Ever since Ludum Dare 43 (the jam where I definitely did not have time to finish a game, but attempted to nonetheless), I have always liked to go back and reference Code Monkey’s How to make a Health System Tutorial every time I make a health system. I made basic classes that manage health and mana for each character. Both can be initialized with a maximum amount, accessed, and edited.



More Planning

I realized that my roadmap was missing quite a bit, so I added some more things such as environment & save areas. I also started planning out the finer details of my next milestone. The class names and general concepts up to tier 3 are also completed.


Tuesday

Stat System

I created a simple system for storing character stats using Unity’s Scriptable Objects. This allows me to create assets that store all of the data for a specific character and easily attach them to an object.


Health & Mana Bars

Thanks to Brackeys’ Health Bar Tutorial, I was able to create some nice UI for the health and mana bars. I created the same border sprite in Aseprite for testing and I plan to change it later when I work on the UI. I also head to edit the health and mana system classes so that they could take in a health bar and change the filler internally.


Wednesday - Sunday


I’m actually going to be doing a competition for a while, so development on this game might pause for a bit :(