Hi, all!
I am trying to run my simple puzzle game on android phone and I found that windows sizes/coordinates on windows and on android work different way.
In my game I get window width (height of game board is same) using window.get_size, calculate scale for sprites for fit all sprites on the window and it works fine on windows. But on android phone I can see only little part of game board. I think, on Android Defold get me window width, that greater than screen width approximately 1.5 times.
I also tried to get window width using render.get_width/render.get_window_width but I can not get global variable with window width from render script in game object script on android because init function from render script does not call and I do not know why (it works fine on windows)
Any ideas how to get real screen size or get render.get_width/render.get_windows_width on android?
Thanks