generated from sigonasr2/CPlusPlusProjectTemplate
The good old Neggs are back.
https://sigonasr2.itch.io/meerca-chase-clone
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
675 B
14 lines
675 B
#Compiles emscripten instance of this project for the web.
|
|
#C++
|
|
if [ -d "assets" ]; then
|
|
em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 $(find . -type f -name "*.cpp") -o ${PROJECT_NAME}.html -I pixelGameEngine.h --preload-file ./assets
|
|
else
|
|
em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 $(find . -type f -name "*.cpp") -o ${PROJECT_NAME}.html -I pixelGameEngine.h
|
|
fi
|
|
|
|
if [ "$1" == "headless" ]; then
|
|
echo "Running as headless web server"
|
|
emrun --no_browser ${PROJECT_NAME}.html
|
|
else
|
|
emrun --serve_after_close ${PROJECT_NAME}.html
|
|
fi
|
|
|