UI Menu more or less done perfectly.

This commit is contained in:
2024-10-08 09:17:00 -05:00
parent 86feb7e56a
commit 9f4cb283c1
7 changed files with 153 additions and 81 deletions

View File

@@ -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();
}