UI Menu more or less done perfectly.
This commit is contained in:
@@ -16,7 +16,7 @@ void drawStateOverworld() {
|
||||
map_t *map = GAME.currentMap;
|
||||
if(map == NULL) return;
|
||||
|
||||
// Try get player
|
||||
// Draw the map, based on player position
|
||||
entity_t *player = mapEntityGetByType(map, ENTITY_TYPE_PLAYER);
|
||||
uint16_t cameraPositionX, cameraPositionY;
|
||||
if(player == NULL) {
|
||||
@@ -27,14 +27,14 @@ void drawStateOverworld() {
|
||||
cameraPositionY = player->y;
|
||||
}
|
||||
|
||||
drawMap(
|
||||
GAME.currentMap,
|
||||
cameraPositionX, cameraPositionY,
|
||||
0, 0,
|
||||
FRAME_WIDTH, FRAME_HEIGHT
|
||||
);
|
||||
// drawMap(
|
||||
// GAME.currentMap,
|
||||
// cameraPositionX, cameraPositionY,
|
||||
// 0, 0,
|
||||
// FRAME_WIDTH, FRAME_HEIGHT
|
||||
// );
|
||||
|
||||
// Draw UI
|
||||
drawUITextbox();
|
||||
// drawUITextbox();
|
||||
drawUITestMenu();
|
||||
}
|
Reference in New Issue
Block a user