|
group2 0.1.0
CSE 125 Group 2
|
Floating HP/shield bar above each on-screen enemy. More...
Go to the source code of this file.
Classes | |
| struct | EnemyWorldHealthBar |
| struct | EnemyWorldHealthBar::EnemyState |
Floating HP/shield bar above each on-screen enemy.
Mirrors EnemyHpBar from the prototype: name + numeric on top, optional thin cyan shield bar, then a thicker red HP bar with the same ghost-trail drain animation as the local-player vitals. Each enemy in the HudGameState::worldEnemies span is projected to screen space; bars are drawn only when the projected point is in front of the camera and inside the viewport.