fix: styling

This commit is contained in:
2025-12-12 20:36:07 +01:00
parent 76516615d6
commit 1aa2f7897d
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -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
+4 -4
View File
@@ -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);