- new log function for debug

- clear metatable for the factory
This commit is contained in:
Alexey Gulev
2019-03-27 21:30:58 +01:00
parent 5e2dc34437
commit cb82acd5da
3 changed files with 126 additions and 113 deletions

View File

@@ -6,6 +6,8 @@ local lang = {
}
local function setup_druid(self)
druid_settings.is_debug = true
druid_settings.play_sound = function(name)
sound.play("sounds#" .. name)
end
@@ -19,7 +21,6 @@ function init(self)
setup_druid(self)
self.druid = druid.new(self)
self.druid:new_button("button_1", function()
print("On button 1")
end)