From 1aa2f7897d008b4c05f3adc364c17b2f0d797d45 Mon Sep 17 00:00:00 2001 From: Joaquin Gottlebe Date: Fri, 12 Dec 2025 20:36:07 +0100 Subject: [PATCH] fix: styling --- config/config.ini | 8 ++++---- src/app.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/config.ini b/config/config.ini index 638afe3..e5989a0 100644 --- a/config/config.ini +++ b/config/config.ini @@ -1,11 +1,11 @@ startView = 1 ; LOGO = 0, MENU = 1, GAMEPLAY = 2, SETTINGS = 3 -window_title = The Last Pirate -window_width = 1280 ; in Pixel -window_height = 720 ; in Pixel +windowTitle = The Last Pirate +windowWidth = 1280 ; in Pixel +windowHeight = 720 ; in Pixel showFPS = 0 ; OFF = 0, ON = 1 limitFPS = 1 ; OFF = 0, ON = 1 soundtrackOn = 1 ; OFF = 0, ON = 1 -font_path = assets/SproutLandsUI/fonts/pixelFont-7-8x14-sproutLands.fnt +fontPath = assets/font.fnt diff --git a/src/app.c b/src/app.c index 24c7ca5..f7a45d8 100644 --- a/src/app.c +++ b/src/app.c @@ -8,13 +8,13 @@ void ConfigApp(App* app){ app->flags.showFPS = GetConfigInt(&app->config, "showFPS"); app->flags.limitFPS = GetConfigInt(&app->config, "limitFPS"); app->flags.soundtrackOn = GetConfigInt(&app->config, "soundtrackOn"); - app->window.title = GetConfigString(&app->config, "window_title"); - app->window.width = GetConfigInt(&app->config, "window_width"); - app->window.height = GetConfigInt(&app->config, "window_height"); + app->window.title = GetConfigString(&app->config, "windowTitle"); + app->window.width = GetConfigInt(&app->config, "windowWidth"); + app->window.height = GetConfigInt(&app->config, "windowHeight"); } void InitApp(App *app){ - InitFont(&app->font, "assets/font.fnt"); + InitFont(&app->font, GetConfigString(&app->config, "fontPath")); InitLogo(&app->logo); InitMenu(&app->menu); InitGame(app);