From 25e346070eed819f5d08864a3fe37b7a0189d0ba Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Thu, 22 Apr 2021 20:11:32 -0400 Subject: Realized ellipse interactions were not easy, going to try and at least finish rectangle and circles before end of month --- frontend/2d/_collisions/rectangle_line/build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 frontend/2d/_collisions/rectangle_line/build.sh (limited to 'frontend/2d/_collisions/rectangle_line/build.sh') 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 -- cgit v1.2.1