Add info bar

This commit is contained in:
Miloslav Číž 2018-09-10 00:22:06 +02:00
parent a53c357ac3
commit e2894c2a79

View file

@ -18,6 +18,7 @@
Player player;
#define SHOT_SPEED 5 * UNITS_PER_SQUARE
#define INFO_BAR_START 70
const unsigned char level[] =
{
@ -539,6 +540,9 @@ void draw()
pos.position.y,pos.depth,
perspectiveScale(64,pos.depth));
}
pokitto.display.setColor(0xFF);
pokitto.display.fillRect(0,INFO_BAR_START,SCREEN_WIDTH,SCREEN_HEIGHT - INFO_BAR_START);
}
int main()
@ -551,6 +555,8 @@ int main()
player.setPositionSquare(6,5);
player.mCamera.height = CAMERA_COLL_HEIGHT_BELOW;
player.mCamera.resolution.y = INFO_BAR_START;
uint32_t previousTime = 0;
uint32_t dt;