вторник, 24 января 2017 г.

HP bar now displays damage taken by armor

Developing live structures now visible. Hit point bar displayed and dimmed by shader by percent amount of damage taken


As seen in details - it only dims core texture to see it as 'damaged'.


One interesting thing happens. When I tried to set shader constant value from 0 to 1 it does not works. After some investigation I found valid range of (0,61..0,68). So strange behaviour.

But this hack works and I should move to next part of game. Maybe I do not understand how shaders handled in AppGameKit, but currently it enough to make special effects.

Some workaround is small price for ease of development.