V
VenomSX
Guest
Hi all,
I've been following the tech blog article on HTML5 scaling, and to my delight, it has worked great for my HTML5 game. However, it only seems to work on desktop browsers. When I try to test the game on my iPhone 7 iOS (12?) Safari or my partner's Samsung S9 with Chrome, the game viewports seem to change to something incredibly small. Around 3-4 times as small as the resolution of the actual phones. The iPhone 7 I believe is 1334x750 and the S9 is 2960x1440. What I'm getting are values like 375x555 on my iPhone. Bizarre! This makes the games unplayable due to the viewport being so tiny.
It seems that window_get_width() and display_get_width() (I've tried both) return wrong values for the screen/browser resolution. WHY? They work perfectly on my desktop.
This is a new account, but I've been part of the GMC since 2009. I love GM so much so that I purchased the mobile modules and the HTML5 with hopes to publish games to those platforms. But at this stage, it's looking like I won't be doing any of that.
Please can someone suggest what might be the problem. I can post code, but it's pretty much the exact same script as the one featured in the YYG tech blog.
Thanks.
I've been following the tech blog article on HTML5 scaling, and to my delight, it has worked great for my HTML5 game. However, it only seems to work on desktop browsers. When I try to test the game on my iPhone 7 iOS (12?) Safari or my partner's Samsung S9 with Chrome, the game viewports seem to change to something incredibly small. Around 3-4 times as small as the resolution of the actual phones. The iPhone 7 I believe is 1334x750 and the S9 is 2960x1440. What I'm getting are values like 375x555 on my iPhone. Bizarre! This makes the games unplayable due to the viewport being so tiny.
It seems that window_get_width() and display_get_width() (I've tried both) return wrong values for the screen/browser resolution. WHY? They work perfectly on my desktop.
This is a new account, but I've been part of the GMC since 2009. I love GM so much so that I purchased the mobile modules and the HTML5 with hopes to publish games to those platforms. But at this stage, it's looking like I won't be doing any of that.
Please can someone suggest what might be the problem. I can post code, but it's pretty much the exact same script as the one featured in the YYG tech blog.
Thanks.