Hi, I am trying to use the logical height in drawing for my game but I get two different sizes. The code:
Screen = gideros.class(Sprite)
S_HEIGHT = application:getLogicalHeight()
function Screen:init(lvl)
print("application:getLogicalHeight()="..application:getLogicalHeight())
print("S_HEIGHT="..S_HEIGHT)
should print the same value for both prints but instead prints:
application:getLogicalHeight()=960
S_HEIGHT=480
The properties of my game specify the logical coordinates of 480x320
Any ideas?
Comments
http://appcodingeasy.com/Gideros-Mobile/Difference-between-content-logical-and-device-dimensions-in-Gideros-Mobile