Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxbittker/sandspiel
Creative cellular automata browser game
https://github.com/maxbittker/sandspiel
game rust wasm webassembly webgl
Last synced: about 1 month ago
JSON representation
Creative cellular automata browser game
- Host: GitHub
- URL: https://github.com/maxbittker/sandspiel
- Owner: MaxBittker
- License: mit
- Created: 2018-10-20T18:48:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-30T18:03:49.000Z (7 months ago)
- Last Synced: 2024-10-14T10:41:15.517Z (about 1 month ago)
- Topics: game, rust, wasm, webassembly, webgl
- Language: Rust
- Homepage: https://sandspiel.club
- Size: 19.4 MB
- Stars: 2,976
- Watchers: 27
- Forks: 203
- Open Issues: 126
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sandspiel
"Imagine the cool phenomenon when the wind blows the falling leaves. This game simulates the phenomenon with powder (dots)!" -DAN-BALL
![](Screenshot.png)
This is a [falling sand](https://en.wikipedia.org/wiki/Falling-sand_game) game built in rust (via wasm), webgl, and some JS glueing things together.
You can [play online](https://sandspiel.club) or read [a longer post on the project](https://maxbittker.com/making-sandspiel)
The goal was to produce an cellular automata environment that's interesting to play with and supports the sharing and forking of fun creations with other players.
Ultimately, I want the platform to support editing and uploading of your own elements via a programmable cellular automata API.### 🛠️ Build:
```
# build the wasm once:
cd crate && wasm-pack build && cd ..;
npm install;
npm run start;# then in a separate terminal:
cargo watch -s 'wasm-pack build'
```a successor to my previous efforts in [javascript](https://github.com/MaxBittker/dust) and [lua](https://github.com/MaxBittker/sand-toy)
Fluid simulation code adopted from
https://github.com/PavelDoGreat/WebGL-Fluid-Simulation