aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
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);
}