Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions source/olc_swe_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down