Update template
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
c1b9f2e17d
commit
a20d2b4fce
@ -1,3 +1,3 @@
|
||||
build.sh:530634457ea9041267c05d4ced95eee1 -
|
||||
commit.sh:d03a46e721060c22ccb146e19d27e70a -
|
||||
web.sh:3fdcf079bbabf079cc24c32fa7133c40 -
|
||||
web.sh:3229cb0053cd0ca4ea08cc90e0d50ad0 -
|
||||
|
@ -6,4 +6,9 @@ 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
|
||||
|
||||
emrun ${PROJECT_NAME}.html
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user