Add info bar
This commit is contained in:
parent
a53c357ac3
commit
e2894c2a79
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
Player player;
|
Player player;
|
||||||
|
|
||||||
#define SHOT_SPEED 5 * UNITS_PER_SQUARE
|
#define SHOT_SPEED 5 * UNITS_PER_SQUARE
|
||||||
|
#define INFO_BAR_START 70
|
||||||
|
|
||||||
const unsigned char level[] =
|
const unsigned char level[] =
|
||||||
{
|
{
|
||||||
|
@ -539,6 +540,9 @@ void draw()
|
||||||
pos.position.y,pos.depth,
|
pos.position.y,pos.depth,
|
||||||
perspectiveScale(64,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()
|
int main()
|
||||||
|
@ -551,6 +555,8 @@ int main()
|
||||||
player.setPositionSquare(6,5);
|
player.setPositionSquare(6,5);
|
||||||
player.mCamera.height = CAMERA_COLL_HEIGHT_BELOW;
|
player.mCamera.height = CAMERA_COLL_HEIGHT_BELOW;
|
||||||
|
|
||||||
|
player.mCamera.resolution.y = INFO_BAR_START;
|
||||||
|
|
||||||
uint32_t previousTime = 0;
|
uint32_t previousTime = 0;
|
||||||
uint32_t dt;
|
uint32_t dt;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue