You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
760 B

  1. -- 0 - disable debug info, 1 - less debug info, 2 - verbose debug info
  2. DEBUG = 2
  3. -- use framework, will disable all deprecated API, false - use legacy API
  4. CC_USE_FRAMEWORK = true
  5. -- show FPS on screen
  6. CC_SHOW_FPS = true
  7. -- disable create unexpected global variable
  8. CC_DISABLE_GLOBAL = false
  9. -- for module display
  10. CC_DESIGN_RESOLUTION = {
  11. width = 1280,
  12. height = 720,
  13. autoscale = "FIXED_WIDTH",
  14. callback = function(framesize)
  15. local ratio = framesize.width / framesize.height
  16. if ratio <= 1.34 then
  17. -- iPad 768*1024(1536*2048) is 4:3 screen
  18. return {autoscale = "FIXED_WIDTH"}
  19. elseif ratio > 1.775 then
  20. return {autoscale = "FIXED_HEIGHT"}
  21. end
  22. end
  23. }--config_lua--config.lua