reorganize some stuff

This commit is contained in:
Eduardo Bart
2012-01-04 23:28:29 -02:00
parent a92af44eb6
commit 30ce5e2ba9
69 changed files with 143 additions and 131 deletions

View File

@@ -1,8 +1,9 @@
Client = { }
Client = {}
-- TODO: load and save configurations
function Client.init()
g_window.show()
g_window.setMinimumSize({ width = 550, height = 450 })
-- initialize in fullscreen mode on mobile devices
if g_window.getPlatformType() == "X11-EGL" then
@@ -19,8 +20,11 @@ function Client.init()
end
g_window.setTitle('OTClient')
g_window.setIcon('clienticon.png')
return true
g_window.setIcon(resolvepath('clienticon.png'))
if not g_sprites.isLoaded() or not g_thingsType.isLoaded() then
fatal("spr and dat files are not loaded, did you loaded them?")
end
end
function Client.terminate()

View File

@@ -16,7 +16,7 @@ Module
onLoad: |
require 'client'
return Client.init()
Client.init()
onUnload: |
Client.terminate()