Jump to content

A black box


Recommended Posts



I'm hoping someone with more experience with Phaser than myself can help shed some light onto what's happening with a game I'm working on.


I'm seeing a black box covering my game on Safari and Chrome in portrait mode (iphone if it matters).



On desktop and mobile landscape mode, screen starts off black briefly before game appears.  No big deal.


On mobile portrait mode, the black "screen" doesn't go away and I get a black box covering 99% of the screen with the game running behind it (I can see the edge of one of my sprites poking out from underneath).


Appreciate any thoughts!




Link to comment
Share on other sites

Could be anything, but most likely sounds like an orientation screen or div in the page that isn't being removed / positioned properly. Phaser itself won't randomly create a black box for you, so something is triggering it somewhere. As it's your code, only you can work out where I'm afraid. But I'd start by looking at orientation code.

Link to comment
Share on other sites

I agree it looks an awful lot like a div that isn't being hidden.  But the page in question has no elements on it, and only contains a few lines of javascript to start the game.


I'd swear it was a loading/splash screen since it appears briefly before the game finishes loading, except I haven't defined one.  Very perplexing.  


I'll keep messing with it.  Thanks for the response!

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.

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.


  • Recently Browsing   0 members

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