Jump to content

May 2017 »

S M T W T F S
 123456
78910111213
14151617181920
21222324 25 2627
28293031   

Recent Comments

- - - - -

UI updates + questions to you!



4: Adsense

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

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

May 16 2017 01:32 AM

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 09:21 AM
  • 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 17 2017 04:29 AM
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 19 2017 07:03 PM

<snip>

 

<snip>

 

<snip>

 

Thanks for feedback :)

Note: GameDev.net moderates comments.