diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-04-22 20:11:32 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-04-22 20:11:32 -0400 |
commit | 25e346070eed819f5d08864a3fe37b7a0189d0ba (patch) | |
tree | 68b8f77ef0da3d2562c45be3f9b5fc53dae53ac9 /frontend/2d/_collisions/rectangle_line/build.sh | |
parent | 6d1f2aa2c3dd5db7a6435fe16e03d8df5e016775 (diff) |
Realized ellipse interactions were not easy, going to try and at least finish rectangle and circles before end of month
Diffstat (limited to 'frontend/2d/_collisions/rectangle_line/build.sh')
-rwxr-xr-x | frontend/2d/_collisions/rectangle_line/build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/2d/_collisions/rectangle_line/build.sh b/frontend/2d/_collisions/rectangle_line/build.sh new file mode 100755 index 0000000..892dddd --- /dev/null +++ b/frontend/2d/_collisions/rectangle_line/build.sh @@ -0,0 +1,16 @@ +filepaths="" + +for file in ../../../shared_cpp/*; do + if [ -f "$file" ]; then + if [[ "$file" == *.cpp ]]; then + filepaths+=" $file" + fi + fi +done + +if [ ! -d ./dist ]; then + mkdir ./dist +fi + +echo "$filepaths" +emcc -o dist/output.js main.cpp $filepaths -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s FULL_ES3=1 -s WASM=1 -s NO_EXIT_RUNTIME=1
\ No newline at end of file |