Closed VRushLP closed 8 years ago
I'll poke around at fixing that bug tomorrow morning before merging.
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
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.
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.