aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2026-01-07 04:20:34 +0000
committernathan <nathansmith@disroot.org>2026-01-07 04:20:34 +0000
commite27d509615ca48c8b007f66349f554ce2a9758f9 (patch)
tree96a7180ccd26d2ad69dbf516d83a0fd258816d1b /src/game.c
parentfd070849940355741b69fe5fbdf75a01dcc8f424 (diff)
downloadFindThings-e27d509615ca48c8b007f66349f554ce2a9758f9.tar.gz
FindThings-e27d509615ca48c8b007f66349f554ce2a9758f9.tar.bz2
FindThings-e27d509615ca48c8b007f66349f554ce2a9758f9.zip
Working on top status thingy
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 2acbb97..f471580 100644
--- a/src/game.c
+++ b/src/game.c
@@ -205,6 +205,11 @@ void updateGameEntityInfo(Game* game)
DrawText(getEntityName(selectedEntity->id), x, y, fontSize, BLACK);
}
+void updateGameTopStatus(Game* game)
+{
+ DrawText(TextFormat("Speed %.2f", game->player.speed), 150.0, 1.0, 20, GREEN);
+}
+
void updateGameScene(Game* game)
{
// Handle toggle cursor.
@@ -267,6 +272,7 @@ void updateGameScene(Game* game)
updateMap(&game->map, game);
updateGameEntityInfo(game);
+ updateGameTopStatus(game);
updateInteractionChat(&game->interactionChat, game);
updateInteractionMenu(&game->interactionMenu, game);
}