diff --git a/CHANGELOG.md b/CHANGELOG.md index cde4cca..14a36cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **core/debug:** add log functions +- **core:** add a way to activate easily debug mode directly + ### Changed - **world:** extract map module from the world module diff --git a/gamecore/init.lua b/gamecore/init.lua index 67b5204..5a8da4c 100644 --- a/gamecore/init.lua +++ b/gamecore/init.lua @@ -47,8 +47,8 @@ require(cwd .. "callbacks") -- INIT FUNCTIONS -- Initialize and configure the core object -function CoreSystem:new() - self.debug = DebugSystem(self) +function CoreSystem:new(DEBUGMODE) + self.debug = DebugSystem(self, DEBUGMODE) self.options = Options(self) self.input = Input(self) self.screen = Screen(self)