Skip to content

A small boid flocking simulation written in Rust for the WASM-4 fantasy console

License

Notifications You must be signed in to change notification settings

lukki15/wasm4-boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm4-boids

Run Tests Deploy Pages

A boids flock simulation written in Rust for the WASM-4 fantasy console.

RESULT

Setup

install w4 and wasm-opt

sh .devcontainer/postCreateCommand.sh

add wasm32 target

rustup target add wasm32-unknown-unknown

Building

Build the cart by running:

cargo build --release

Then run it with:

w4 run target/wasm32-unknown-unknown/release/cart.wasm

For more info about setting up WASM-4, see the quickstart guide.

Publish

cargo build --release

wasm-opt target/wasm32-unknown-unknown/release/cart.wasm -o boids-cart-opt.wasm -Oz --strip-dwarf --strip-producers --zero-filled-memory

w4 bundle boids-cart-opt.wasm --title "wasm-4 boids" --html index.html

Tests

cargo run_tests

Links

  • Documentation: Learn more about WASM-4.
  • Snake Tutorial: Learn how to build a complete game with a step-by-step tutorial.
  • GitHub: Submit an issue or PR. Contributions are welcome!

About

A small boid flocking simulation written in Rust for the WASM-4 fantasy console

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published