Devlogs
v1.0-web - Mystery Tower is available directly in the browser!
Posted May 07, 2023 by GFM
This is a quick update after a long while...
Now Mystery Tower can be played directly in the browser! I was talking to a friend and remembered that Unity has the option to export to HTML5/webasm, so I decided to give it a go.
This game was made in Unity 2019.1.10f1. Even if back in the day that was a LTS version, it's not supported anymore. I ran into two issues:
- libtinfo5 was missing (http://answers.unity.com/answers/1793072/view.html)
- This version uses Python2 in the web build script (which is baffling considering that Python3 has been around since 2009, and Python2 reached its official end-of-life in 2020)
If, like me, you are using an obsolete Unity version, you may need to make these changes to build for the web:
- <Unity 2019 install dir>/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc.py: Change a few 'is not' operators to !=
- <Unity 2019 install dir>/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/tools/shared.py: Change a few 'is not' operators to !=
- <Unity 2019 install dir>/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/tools/shared.py: Change the 'from distutils.spawn import find_executable' import to 'from shutil import which as find_executable'