what is it one more try of game coding with GLSL and box2d, not using any game engines
play live
original GLSL source in glsl folder
binary builds added binary builds for Linux_64bit(gcc), to launch on Linux use LD_LIBRARY_PATH=. ./2dgamii , and Windows_64bit(VS2017)
- clone this nanogui wasm
- put files from nanogui_mod folder to nanogui-GLES-wasm
- build nanovg.bc and nanogui.bc in nanogui-GLES-wasm and move them to this project
- clone this box2d.js and build box2d.bc
- build this project small-2d-game using this command
em++ -DNANOVG_GLES3_IMPLEMENTATION -DGLFW_INCLUDE_ES3 -DGLFW_INCLUDE_GLEXT -DNANOGUI_LINUX -Iinclude/ -Iext/Box2D/ -Iext/nanovg/ -Iext/eigen/ box2d.bc nanogui.bc mii2d.cpp --std=c++11 -O3 -lGL -lGLU -lm -lGLEW -s USE_GLFW=3 -s FULL_ES3=1 -s USE_WEBGL2=1 -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -o build/2dgamii.html --shell-file shell_minimal.html --no-heap-copy --preload-file ./shaders