Last active
          August 29, 2015 13:57 
        
      - 
      
- 
        Save Lerg/9518747 to your computer and use it in GitHub Desktop. 
    Hex LED config.lua
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | local h, w = display.pixelWidth, display.pixelHeight | |
| if (w == 1024 and h == 768) or (w == 960 and h == 640) or (w == 1136 and h == 640) or (w == 2048 and h == 1536) or (w == 1280 and h == 720) or (w == 480 and h == 320) then | |
| while w > 700 do | |
| w = w * 0.5 | |
| h = h * 0.5 | |
| end | |
| w, h = h, w | |
| else | |
| w = 320 -- w = 300 -- for kindle fire and nexus 7 like tablets (1024x600) | |
| h = 480 | |
| end | |
| application = { | |
| content = { | |
| width = w, | |
| height = h, | |
| scale = 'letterbox', | |
| fps = 60, | |
| imageSuffix = { | |
| ['@2x'] = 1.2 | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment