VRushLP / RigorMortisGame

A game made for TCSS491 Computational Worlds, Winter 2016
2 stars 0 forks source link

Health bar #100

Closed VRushLP closed 8 years ago

VRushLP commented 8 years ago

Known issue: The health bar appears over the title screen Potential solution: Have health bar be unable to draw until the canvas has focus, then enable it to draw in the listener.

tjsg1992 commented 8 years ago

I'll poke around at fixing that bug tomorrow morning before merging.

VRushLP commented 8 years ago

Here's an outline of how I planned to fix it then: -Move the health bar to it's own entity. I believe it is currently drawing as part of the game engine. -As part of the focus listener that is currently removing the title screen, tell the health bar it is able to draw now

tjsg1992 commented 8 years ago

We should probably talk about whether or not to make the health bar its own entity at some point. In the meantime, I moved the logic into a new game engine function, and set a flag that indicates whether or not the health bar should be drawn.