feat(core): add a way to activate easily debug mode directly

This commit is contained in:
Kazhnuz 2019-07-24 11:21:12 +02:00
parent 543247e721
commit 4e9923b2ea
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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)