Jump to content
  • entries
    6
  • comments
    32
  • views
    8830

UI updates + questions to you!

Sign in to follow this  
Lactose

2570 views

[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)?

Sign in to follow this  


4 Comments


Recommended Comments

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.

Share this comment


Link to comment
  • 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.

Share this comment


Link to comment
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.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!