2014-12-29 05:51:49 +08:00
|
|
|
|
|
|
|
-- 0 - disable debug info, 1 - less debug info, 2 - verbose debug info
|
|
|
|
DEBUG = 2
|
|
|
|
|
|
|
|
-- use framework, will disable all deprecated API, false - use legacy API
|
2022-08-11 15:28:32 +08:00
|
|
|
AX_USE_FRAMEWORK = true
|
2014-12-29 05:51:49 +08:00
|
|
|
|
|
|
|
-- show FPS on screen
|
2022-08-11 15:28:32 +08:00
|
|
|
AX_SHOW_FPS = true
|
2014-12-29 05:51:49 +08:00
|
|
|
|
|
|
|
-- disable create unexpected global variable
|
2022-08-11 15:28:32 +08:00
|
|
|
AX_DISABLE_GLOBAL = true
|
2014-12-29 05:51:49 +08:00
|
|
|
|
|
|
|
-- for module display
|
2022-08-11 15:28:32 +08:00
|
|
|
AX_DESIGN_RESOLUTION = {
|
2014-12-29 05:51:49 +08:00
|
|
|
width = 960,
|
|
|
|
height = 640,
|
|
|
|
autoscale = "FIXED_HEIGHT",
|
|
|
|
callback = function(framesize)
|
|
|
|
local ratio = framesize.width / framesize.height
|
|
|
|
if ratio <= 1.34 then
|
|
|
|
-- iPad 768*1024(1536*2048) is 4:3 screen
|
|
|
|
return {autoscale = "FIXED_WIDTH"}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
}
|