Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

How to see the area behind the device screen (flanks)
Started by stalxerhd Jun 15 2019 10:18 PM

1 reply to this topic
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 11 posts
  • Corona SDK

For my first project, I use objects that are spawned on the sides of the screen, in the unseen area.
But... I also don't see it.
For testing idea, to see how everything going I made a 1280-1280 screen-area and manually spawn everything as-if it was a 480-720 device screen. Now I need to go further, for the whole screen
Is it possible to configure emulator to see around 500 px of each side of the screen size, set in the config?

[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,197 posts
  • Enterprise

This can be done by using a content area (the size defined in config.lua) that's an aspect ratio different that the device you're testing. If you use something with a 1.5:1 aspect ratio like width 600, height 900 and then you test on a skin that has a 16:9 aspect ratio, (and assuming you are building a landscape app), you should end up with a 600x1066 area where 0, 0, is 83 pixels from the left edge and 900 is 83 pixels from the right edge. That would get you some of screen outside of the 600x900 space, but...


Most devices today are either 16:9 or more extreme for phones and desktops or 4:3 (ipads)  or 1.6:1 for many Android tablets. 


It's useful to read and understand this:




  • stalxerhd likes this