Hi All
I’ve just started work on porting my Android game to Apple and have run into an issue with detecting the devices physical screen size. After searching the docs and forums for hours I can’t find a solution.
For Android I used this code.
\_GData.smallScreen = false local aDpi = system.getInfo("androidDisplayApproximateDpi") local wII, hII if aDpi then wII = display.pixelWidth / aDpi hII = display.pixelHeight / aDpi if (wII\*hII) \< 17 then \_GData.smallScreen = true end end
I really need to know if the screen is physically big or small because some of the puzzles in my game are impossible to play on small phone screens. Maybe there is another solution like detecting the type of device?
I’m sure I’m going to be asking more questions as this is my first time using any type of Apple device.
Your help would be greatly appreciated.