A brief introduction to Rust, Amethyst game framework, and rust/WebAssembly. Focus on the ECS concept in amethyst framework and how to build a simple game by it.
33. Event Channel
Pass data between System
Make system simpler
33
1. Detect collision
2. Delete bullet and asteroid
3. Create explosion
4. End game if asteroid hit ship
Collision
System
38. WebAssembly
38
“Assembly language” for web
Higher performance than Javascript
Support by Firefox, Chrome/Edge, Safari.
C/C++ use emscripten
Rust has target wasm32-unknown-unknown