When you start the game youre at full hp (All black) and whenever you lose hp the black part decreases, the white is just the background of the healthbar.
Yes, but usually it is the other way around in that the black is supposed to be the background part of the health bar. This is usually the case in video games I play. Since you made black be the foreground part of the health bar instead of the background part, I was initially confused as I thought I had close to no health when I had close to full health. I also initially thought I had close to full health when I had close to no health.