Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / From resolution to aspect ratio

Author
Message
Kozax
9
Years of Service
User Offline
Joined: 28th Jul 2015
Location: London, UK
Posted: 5th Sep 2015 16:46
Hi!

My game is almost complete and throughout the development process I was testing it on my Nexus 7 1st gen. I built the game in 640x960 and it was fullscreen without borders. I finally managed to export the AppGameKit player .ipa and tried the game on my iPhone 5c and the game was cropped so I went and changed the screen code from this:



and replaced it with this:



I know that I have to reposition all the sprites and scale them but the main problem is the game has a blank space on the top part of the screen. Before adding SetScissor is had another blank space below.
So I was wondering since my window resolution(720,1280) now is 16/9 as well as my aspect ratio, what is causing this blank space to both my pc and iphone?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 5th Sep 2015 16:53
did you try 16.0/9.0
i remember without i got integer division

the docu said SetWindowSize is not for mobile devices.

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-11-16 20:58:10
Your offset time is: 2024-11-16 20:58:10