sandspiel
“想象一下当风吹落落叶时的凉爽现象。该游戏用粉末(点)模拟这种现象!” -- DAN-BAL。
这是一款基于 rust(通过 wasm)、webgl 和一些 JS 粘合在一起的落沙游戏。
您可以在线玩游戏或阅读有关该项目的更长的文章。
我们的目标是创造一个有趣的细胞自动机环境,并支持与其他玩家分享有趣的创造。最终,我希望这个平台能够通过可编程的细胞自动机 API 支持编辑和上传你自己的元素。
构建
# build the wasm once: cd crate && wasm-pack build && cd ..; npm install; npm run start; # then in a seperate terminal: cargo watch -s 'wasm-pack build'
继承了我之前在 javascript 和 lua 方面的努力。
流体模拟代码采用了 https://github.com/PavelDoGreat/WebGL-Fluid-Simulation,感谢!
(The first version translated by vz on 2020.07.05)