From 855fe70255e55ac1d760151cad6fb9dbcca7d733 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Thu, 25 Aug 2022 16:05:18 -0500 Subject: [PATCH] Update olc_swe_template.h Include compile instructions for emscripten. --- source/olc_swe_template.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/olc_swe_template.h b/source/olc_swe_template.h index 18255cd..5d426a1 100644 --- a/source/olc_swe_template.h +++ b/source/olc_swe_template.h @@ -118,6 +118,19 @@ */ +/* + + Compiling with Emscripten + ~~~~~~~~~~~~~~~~~~~~~~~~~ + When compiling with Emscripten, you will include SDL mixer in your setting flags: + Add: -s USE_SDL_MIXER=2 + + Your command should look something like: + + em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_SDL_MIXER=2 -s USE_LIBPNG=1 ./YourSource.cpp -o pge.html + +*/ + /* Using in multiple-file projects ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~