From 4e9923b2ea13cc0918a1ff8df743b06a6854eb09 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 24 Jul 2019 11:21:12 +0200 Subject: [PATCH] feat(core): add a way to activate easily debug mode directly --- CHANGELOG.md | 2 ++ gamecore/init.lua | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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)