feat: add engine SaveStorageData and LoadStorageData and started saving stats of player

This commit is contained in:
2026-03-08 15:25:20 +01:00
parent 40d48b4f2f
commit 341b675fa9
6 changed files with 90 additions and 2 deletions
+3
View File
@@ -97,6 +97,9 @@ void RenderGame(App *app) {
(Rectangle){0, 0, g->mouse.cursorTexture.width,
g->mouse.cursorTexture.height},
(Vector2){g->mouse.screenPosition.x, g->mouse.screenPosition.y}, WHITE);
Player *player = GetPlayer();
DrawText(TextFormat("Gold: %d", player->gold), 0.0f, 0.0f, 12.0f, YELLOW);
EndTextureMode();
BeginDrawing();