Flash oxygen when low.
This commit is contained in:
parent
7affe23a99
commit
daeaa28e88
|
@ -155,6 +155,10 @@ static void drawOxygen(void)
|
||||||
w = world.bob->oxygen / 5;
|
w = world.bob->oxygen / 5;
|
||||||
|
|
||||||
drawRect(65, 58, w, 18, 0, 112, 225, 255);
|
drawRect(65, 58, w, 18, 0, 112, 225, 255);
|
||||||
|
if (world.frameCounter % 60 < 30 && getPercent(world.bob->oxygen, MAX_OXYGEN) <= 33)
|
||||||
|
{
|
||||||
|
drawRect(65, 58, w, 18, 255, 225, 255, 255);
|
||||||
|
}
|
||||||
|
|
||||||
w = MAX_OXYGEN / 5;
|
w = MAX_OXYGEN / 5;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue