[Questions at the end of post]
Last time, I had just introduced the concept of player & enemy health, as well as currency (and I showed off my amazing art skills in a breath-taking video). However, player health & currency was only ever displayed in Unity's console as debug output.
So, wIth that in mind, I added some HUD/GUI to display the player's health and currency.
I made it ever so slightly more fancy than just displaying the raw data -- I tick the value from the currently displayed value to the actual value in a fraction of a second. I think it looks a bit cooler than just snapping between values, and it's a quick effect that doesn't inconvenience the player. Currently, there is a lot of duplicated code both currency and health, so I'm going to extract the common functionality and refactor this so I can reuse it more easily.
Related to all of this is one of the next things I'll be adding -- a health bar above each enemy. I'll be wanting to use the same logic for updating/ticking the value to display (hence the refactor), but I want it to feed into a health bar drawing instead of just a number print. I have a plan that I think will work fine, and then we'll see if Unity agrees with me or not :)
Another feature I'm adding sooner rather than later is to restart the level, while keeping progress (i.e. currency). This might mean I have to split things into multiple scenes, one that's a persistent scene, while the game/level scene can just be reloaded as needed to restart.
After that, the main thing is adding a shop, allowing you to fork over your hard-earned currency. Initially, this will be probably just be accessed by a keypress and have some basic health refill item. More involved upgrades and unlocks to come at a later point.
- Is any of this interesting to you?
- Would you be more interested in a different type of journal entry?
- Journal entry length -- too long, too short or just right?
- Is there anything you feel is missing or could be added to my journal entries? Or something you don't like/care about at all that could be removed?
- Do you like short videos showing the functionality I describe, even in its currently incredibly rudimentary form (refer to the previous post for an example here)?