run-examples:
cargo run --example entity_basics
cargo run --example entity_hierarchy
cargo run --example entity_iterate_components
cargo run --example prefabs
cargo run --example relations
cargo run --example filters
cargo run --example hello_world
cargo run --example queries_basics
cargo run --example systems
cargo run --example systems_basics
cargo run --example systems_delta_time
cargo run --example dynamic_components
setup_emsdk:
@if [ -d $(EMSDK) ]; then echo "emsdk '$(EMSDK)' directory already exist, please delete-it manually"; exit 1; fi
mkdir -p `dirname $(EMSDK)` && \
cd `dirname $(EMSDK)` && \
git clone https://github.com/emscripten-core/emsdk.git $(EMSDK) && \
cd $(EMSDK) && \
git checkout tags/3.1.10 && \
echo "13e29bd55185e3c12802bc090b4507901856b2ba" > ./emscripten-releases-tot.txt && \
./emsdk install tot && \
./emsdk activate tot
source $(EMSDK)/emsdk_env.sh
sudo echo "source $(EMSDK)/emsdk_env.sh" >> ~/.bashrc
sudo echo "source $(EMSDK)/emsdk_env.sh" >> ~/.zshrc