Jump to content

Help


Raiper34
 Share

Recommended Posts

Hi i have two problems with my game.
iPhone 7.1: I rotated game to landscape, a grey bar appeared at bottom of screen, cutting the game canvas. 

Android 4.1.2: On Android, I did not encounter the grey bar at bottom of screen. However, when I clicked to play game, the game canvas zoomed in. At second click, the game canvas zoomed out, making play difficult and confusing.

Link here: http://games.raiper34.net/tresensa/index.html

Can anybody help me please? It is report from publisher... Can anybody test it on iPhone? Thanks

Link to comment
Share on other sites

iPhone 7.1: I rotated game to landscape, a grey bar appeared at bottom of screen, cutting the game canvas. 

 

 

I can confirm that. Game loaded in portrait mode, after rotate grey bar is visible (also when game is loaded in landspace)

When you touch and scroll down grey area, game looks OK. But after rotating back and forth problem is still there.

PM me if you need further info

 

raiper.png

Link to comment
Share on other sites

Nah, problem is that you are detecting iOS6 only.

 

Add

this.isiPhoneiOS7 = (this.isiPhone && /OS 7/i.test(navigator.userAgent)); 

and then in 

Runtime.prototype["setSize"] = function (w, h, force)

change

var tryHideAddressBar = ((this.isiPhoneiOS6 || this.isiPhoneiOS7) && this.isSafari && !navigator["standalone"] && !this.isDomFree && !this.isPhoneGap);

For those interested, user agent string for 7.1 is :

 

Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D167 Safari/9537.53

Link to comment
Share on other sites

Bug is still there in Safari, no changes. Chrome shows one pixel thin line at the bottom, Mercury browser no problem at all also in full screen mode

 

http://www.enea.sk/tmp/photo0.png

http://www.enea.sk/tmp/photo1.png

http://www.enea.sk/tmp/photo2.png

Can you test this last test in safari please? http://games.raiper34.net/test/test/index.html

Thank you very much for your help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...