Create a gist now

Instantly share code, notes, and snippets.

@Lerg /config.lua
Last active Aug 29, 2015

What would you like to do?
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