September 2018
Intermediate to advanced
328 pages
9h 10m
English
Instead of using serve or browser-sync, we're going to use a built-in feature of Emscripten's toolchain, emrun. It provides the added benefit of capturing stdout and stderr (if you pass the --emrun linker flag to the emcc command) and printing them to the terminal if desired. We're not going to use the --emrun flag, but having a local web server available without having to install any additional dependencies is a nice added feature to be aware of. Open up a terminal instance within your project folder and run the following command to start the game:
emrun --browser chrome --no_emrun_detect public/index.html
You can specify firefox for the browser if that's what you're using for development. The --no_emrun_detect flag hides ...
Read now
Unlock full access