From 7bcee4f662b20b8e2e7183bb6bd4cb061fa14e12 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sun, 22 Dec 2024 00:11:56 +0100 Subject: added menu buttons + scene switching --- src/crepe/api/Config.h | 2 +- src/crepe/api/Engine.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h index c53c2d6..3e9c9ef 100644 --- a/src/crepe/api/Config.h +++ b/src/crepe/api/Config.h @@ -85,7 +85,7 @@ struct Config final { * This config option is the font size at which all fonts will be loaded initially. * */ - unsigned int size = 32; + unsigned int size = 40; } font; //! Configuration for click tolerance. struct { diff --git a/src/crepe/api/Engine.cpp b/src/crepe/api/Engine.cpp index 2e9d35a..4add4e1 100644 --- a/src/crepe/api/Engine.cpp +++ b/src/crepe/api/Engine.cpp @@ -54,6 +54,7 @@ void Engine::loop() { try { systems.frame_update(); + this->scene_manager.load_next_scene(); } catch (const exception & e) { Log::logf(Log::Level::WARNING, "Uncaught exception in frame update function: {}\n", e.what()); -- cgit v1.2.3