R
R
RaMzz2016-02-24 00:09:06
Corona SDK
RaMzz, 2016-02-24 00:09:06

Why does the application display crookedly in the Corona SDK simulator?

The application is displayed crookedly in the CORONA SDK simulator, but on the device everything is as it should :( why so, who can clarify?

local centerX = display.contentCenterX
local centerY = display.contentCenterY

local background = display.newImage ("glassbg.png", centerX, centerY, true)
local image01 = display.newImage( "moon.png", 160, 80 )

local image02 = display.newImage("moon.png")
image02.x = 160; image02.y = 200

image03 = display.newImage("moon.png" )
image03.x = 160; image03.y = 320

here are two pictures ab25f3219eb345538fda011c9a2eb64f.png2798513885154416bc849bf701374b5d.png
And here is how it should
c41c53547c63410cb07b735d76bc211e.png
be displayed like this, on my device it is displayed through DropBox exactly like this, but on the Emulator in a different way ...
9d3b00a098e04f4c87086065e11fc1ba.png
why is that so please tell me who came across?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Lerg, 2016-02-24
@Lerg

You are not using auto-scaling in crown. You need to use the display.newImageRect function. Also make sure you use letterbox in your config.lua file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question