GameSalad

HTML5 Black Screen

neomanneoman Posts: 812Member, PRO

Hello All,

I am having an issue with HTML5 games if I publish any project then load it on a web server it will not display anything except a black screen. The game will run as you can hear the music but all you see is a black screen. You can hear the hero die … etc The issue is that nothing is displayed except a black screen.

I have tested with multiple projects. I get the same result. The only project that I managed to get to work with no issues was a very simple project which didn’t have logic. It only had moving objects that you could destroy when you click them with the mouse.

I searched the forum but could not find anything about this issue. Did anyone have this issue? Did anyone pinpoint which behaviour causes this? Any help would be greatly appreciated.

I will start testing when time permits by stripping down a simple project then building it up bit by bit till I find what causes the black screen issue.

Thanks in advance.

Cheers,

neoman

Answers

  • neomanneoman Posts: 812Member, PRO

    @adent42 Can you shed some light on the above? Any help would be greatly appreciated as it will save me hours and hours of work. If the behaviour or behaviours that are causing the issues can be pinpointed I can implement a work around if possible. Thank you in advance ... :wink:

  • froptfropt Posts: 9Member, PRO

    Hi, I've faced that exact same issue. But I could 'kinda' workaround it:
    First, I've deployed my game in a folder right next to my website. I got that black screen.
    Then (because I'm using https) I've transfered the game into a sub-domain not affected by the SSL, and now it works.
    I don't know if it has something to do with it, but it worked. Maybe this will help you...

    The UTF-8 although still doesn't work and my text is full of errors..
    You can see that silly game here:
    http://eco.portugalmultimedia.pt

  • neomanneoman Posts: 812Member, PRO

    @fropt Thank you very much for your reply. I really appreciate your comment and nice game by the way. My issue had nothing to do with https. My site is a http site. If I make a game with simple logic it works fine but if it has complicated logic I get the back screen or it does not run properly. I will try running the html5 game on a sub-domain on the weekend when time permits. I don't think it will work but hey it is worth a try. I will update you with the results ... Once again thanks and happy new year ... :wink:

Sign In or Register to comment.