diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f6ec892..30a3c8c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,6 +41,17 @@ jobs: cp wasm/example.html wasm/${example}.html sed -i'' "s/name-of-example/${example}/g" wasm/${example}.html done + for example in "layers" + do + echo "Building $example" + cargo build --target wasm32-unknown-unknown --release --example $example --features "bevy/webgl2,avian2d,avian3d,detailed-layers" + wasm-bindgen --no-typescript --out-dir wasm --target web target/wasm32-unknown-unknown/release/examples/$example.wasm + wasm-opt -Oz wasm/${example}_bg.wasm --output wasm/${example}-opt.wasm + rm wasm/${example}_bg.wasm + mv wasm/${example}-opt.wasm wasm/${example}_bg.wasm + cp wasm/example.html wasm/${example}.html + sed -i'' "s/name-of-example/${example}/g" wasm/${example}.html + done - name: Copy Assets run: cp -r assets wasm/ diff --git a/screenshots/layers.png b/screenshots/layers.png new file mode 100644 index 0000000..793192d Binary files /dev/null and b/screenshots/layers.png differ diff --git a/wasm/index.html b/wasm/index.html index f89a063..4deac52 100644 --- a/wasm/index.html +++ b/wasm/index.html @@ -184,9 +184,9 @@

Examples

alt="NavMesh updated using primitive shapes" />
NavMesh updated using primitive shapes (rectangle, circle, ...)
- - Demo to test NavMesh settings -
Demo to test NavMesh settings
+
+ Overlapping layers +
Overlapping layers
@@ -227,10 +227,9 @@

Others

Navmesh from random obstacles
Navmesh from random obstacles
- - NavMesh automatically updated from obstacles using Aabb -
NavMesh automatically updated from obstacles using `Aabb`
+
+ Demo to test NavMesh settings +
Demo to test NavMesh settings