UI updates + questions to you!

Published May 15, 2017
Advertisement

[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.

---

QUESTION TIME:


  1. Is any of this interesting to you?
  2. Would you be more interested in a different type of journal entry?
  3. Journal entry length -- too long, too short or just right?
  4. 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?
  5. 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)?

0 likes 4 comments

Comments

khawk

1. Always like to read about others' experiences.

2. Not necessarily. Each blog is unique.

3. It's not the length, it's the content. :) Powerful content beats length any day.

4. Code, pictures, video. More discussion on the problems you face and how you overcame them.

5. Yes.

May 16, 2017 07:32 AM
Awoken
  • Is any of this interesting to you?
    it's always interesting to see someones progress, especially if it's a personal project.
  • Would you be more interested in a different type of journal entry?
    different how?
  • Journal entry length -- too long, too short or just right?
    I tend to avoid long journal entries. I'm more of a picture person. Like they say a picture is worth a thousand words.
  • 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?
    It's what ever your preference is really.
  • 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)?
    I'll watch a video if I'm drawn to click on it for some reason. But a picture is no obligation when browsing.
May 16, 2017 03:21 PM
noisechip
I also think an image is better to create interest. Long entries make me move trough the text looking for something "interesting". A video with an interesting " cover " can also create some good feeling that can lead viewers to take a look. Is my first time seeing an entry from you. Letting the context apart i would prefer a few pics, even a video. Hope my opinion could help.
May 17, 2017 10:29 AM
Lactose

<snip>

<snip>

<snip>

Thanks for feedback :)

May 20, 2017 01:03 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement