Exporting game to HTML5 but it shows a black screen

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jiwooyun_

So recently I decided to export my game to HTML5. When I finished exporting, I opened up the html file and then it starts to load but after it is done, it shows a black screen. I then tried exporting some of my other games to HTML5 but nothing really worked. If anyone could tell me what I’m doing wrong or how do I fix getting rid of the black screen?
Any help is appreciated.

:bust_in_silhouette: Reply From: bloodsign

you need to setup a servlet…or something to run your game in your localhost, or so I think.
But there’s two options you can do to test your game in a browser.

  1. If your game has an export option towards HTML5, you’ll see on the run options on the top right of the editor a run option for HTML5. If you click that, it’ll open your browser to run your game.

  2. You can upload your game to itch.io

It worked for my 2D game. Does it work for 3D games if possible??

jiwooyun_ | 2021-02-14 19:06

:bust_in_silhouette: Reply From: yrtv