Advertisement
lvs

Pixel perfect config.lua

lvs
Dec 26th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local w, h = display.pixelWidth, display.pixelHeight
  2. if w >= 480 then
  3.     w = w * 0.5
  4.     h = h * 0.5
  5. end
  6. if w >= 480 then
  7.     w = w * 0.5
  8.     h = h * 0.5
  9. end
  10. application = {
  11.     content = {
  12.         width = w, height = h,
  13.         scale = 'letterbox',
  14.         imageSuffix = {['@2x'] = 1.2, ['@4x'] = 2.5},
  15.         fps = 60
  16.         }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement