Skip to main content

Health Bars

Today I implemented health bars, which seems like an easy thing to do, but in a game like this health bars need to display quite a lot of information without becoming overwhelming.

I'm not quite happy with them yet, but I'm getting there:


There are 5 elements to look at here:

  1. The first is the health bar, a simple green bar with a black background. I'm not sure I like the shad of green though. Also there may be multiple health bars for vehicles to show engine damage, crew casualties etc... or I may leave that up to the info-icons.
  2. The second bar is the red one, this is the shock bar. As a unit comes under fire they will suffer shock. If the shock bar is too high the unit will become pinned. Enemy units might run away too. The bar will drop down naturally depending on the experience of the troops. Some other actions can clear the bar too.
  3. The third element is the group number. Using control and number keys you can set selection groups, and then select units by pressing a number key. If the agent is part of a group it will be shown here. The group badge can change shape (and maybe color) to show which stance the unit is in, aggressive, sentry, defending or flanking.
  4. The fourth element is the rank badge. Agents can level up and get access to more special abilities as they gain experience. You can get experience from beating enemy units but also from achieving objectives and just staying alive. Higher ranked units have better aim, resist shock better and for vehicles get a handling and reliability bonus so they can drive better and break down less often. 
  5. The last element is the info icons. Some effects and conditions need to be shown directly on the unit. Such as running out of ammo, being immobilized or carrying infantry on board. You need to see these on screen because otherwise it becomes too difficult to remember which units are in danger or ready for action.
I'm going to experiment with different visual styles for the health bars, I want them to be clear, but not too gaudy and I don't want them to take up too much space.

Comments

Popular posts from this blog

Advice needed on tilesets...

I need some advice on which is the best way to handle building the dungeon. Right now I'm using prefabs for my dungeon, they have a north south east and west section for each "room": The basic tileset. This has several advantages, and also several disadvantages. Firstly I can have curved rooms, I can have tunnels and other interesting shapes. The tilesets can look quite nice with a little work. On the other hand I can't easily get the navigation data before building the map and once the map has been built I can't make changes to the layout, like having active pit traps or believable secret doors. Although the rooms are interesting, they are quite repetitive, and it takes a lot of effort to make even a few different variations. Also rooms are constrained to one size. A newer version of the tileset with a lot of variant parts for making more interesting rooms. To create a tile set is a real headache too. Planning how to lay out the UVs, trying to cra...

Upstairs / Downstairs.

I've decided to make my prefabs multilevel. Later this should allow me to add pit traps and other great stuff. It also makes it easier to line up stairs so that you can exit them on the same co-ordinates where you entered them. The prefab editor is pretty much finished, it just needs some code for loading up prefabs from a saved dictionary, so that they can be checked or edited. The entries will need to be forwards compatible, so I'll be loading each tile and then translating the indexes to a new array, that way if I add extra indexes or extra info (like traps or puzzles) I'll be able to update existing prefabs to work with the new standard. Click for a video.

Video Diary 8

Things are moving along well, there's been a lot of progress on the action manager side of things. Actions have finally moved to the UI, so you can initiate actions by clicking the appropriate button. I've set up some dummy actions to show what happens visually when actions are taken, but the actual dice rolls and such are yet to be integrated. The UI objects are also being added, though some are non functional or empty at the moment. Click on the image to see this week's development video. Every time I add something big I also add about a dozen small things. Like the selection box visualization. Previously this was using render.drawline, and old fashioned Blender function which can be impossible to see at certain resolutions, or at certain frequencies. I replaced it with a function that adds planes of the right size and scale in the right location. I also made all characters a little bigger. I still need to do some work with vectors and final target locations t...