SHARE
TWEET

Screen Edges Advanced

lvs Jul 7th, 2013 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _W = display.contentWidth -- Virtual width
  2. _H = display.contentHeight -- Virtual height
  3. _T = display.screenOriginY -- Top
  4. _L = display.screenOriginX -- Left
  5. _R = display.viewableContentWidth - _L -- Right
  6. _B = display.viewableContentHeight - _T -- Bottom
  7.  
  8. virtual_actual_width = _R - _L -- Screen width in virtual coordinate system
  9. virtual_actual_height = _B - _T -- Screen height in virtual coordinate system
  10.  
  11. screen_width = display.pixelWidth -- Device native width
  12. screen_height = display.pixelHeight -- Device native height
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top