Changes to compile on android

This commit is contained in:
Eduardo Bart
2013-03-07 04:50:45 -03:00
parent b3b849000d
commit e6ee88af43
17 changed files with 92 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
local musicFilename = "/sounds/startup"
local musicChannel = g_sounds.getChannel(1)
local musicChannel = nil
function setMusic(filename)
musicFilename = filename
@@ -57,11 +57,14 @@ function init()
onExit = exit })
g_window.setMinimumSize({ width = 600, height = 480 })
musicChannel = g_sounds.getChannel(1)
g_sounds.preload(musicFilename)
-- initialize in fullscreen mode on mobile devices
if g_window.getPlatformType() == "X11-EGL" then
if g_app.getOs() == "android" then
g_window.setFullscreen(true)
g_window.maximize()
else
-- window size
local size = { width = 800, height = 600 }