aboutsummaryrefslogtreecommitdiffstats
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
parentfd070849940355741b69fe5fbdf75a01dcc8f424 (diff)
downloadFindThings-e27d509615ca48c8b007f66349f554ce2a9758f9.tar.gz
FindThings-e27d509615ca48c8b007f66349f554ce2a9758f9.tar.bz2
FindThings-e27d509615ca48c8b007f66349f554ce2a9758f9.zip
Working on top status thingy
-rw-r--r--src/game.c6
-rw-r--r--src/settings.c4
2 files changed, 8 insertions, 2 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);
}
diff --git a/src/settings.c b/src/settings.c
index 78aa0d6..848eea1 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -8,7 +8,7 @@ Settings defaultSettings()
.screenWidth = 596,
.screenHeight = 447,
.fov = 90.0,
- .maxFPS = 60,
+ .maxFPS = 0,
.showFPSDefault = true,
.backgroundColor = (Color){74, 42, 74, 255},
.useBackgroundTexture = true,
@@ -26,7 +26,7 @@ Settings defaultSettings()
.isBobbleEnabled = true,
.bobbleRate = 1.0,
.bobbleAmount = 0.07,
- .playerAcceleration = 15.0,
+ .playerAcceleration = 9.0,
.isMapPreviewEnabledDefault = true,
.mapPreviewWidth = 300.0,
.mapPreviewHeight = 300.0,