Skip to content

Instantly share code, notes, and snippets.

@Lerg
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lerg/9518747 to your computer and use it in GitHub Desktop.
Save Lerg/9518747 to your computer and use it in GitHub Desktop.
Hex LED config.lua
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