Sandspiel

创意细胞自动机浏览器游戏。(Creative cellular automata browser game)

Github stars Tracking Chart

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'

继承了我之前在 javascriptlua 方面的努力。

流体模拟代码采用了 https://github.com/PavelDoGreat/WebGL-Fluid-Simulation,感谢!

(The first version translated by vz on 2020.07.05)

Main metrics

Overview
Name With OwnerMaxBittker/sandspiel
Primary LanguageRust
Program languageRust (Language Count: 8)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2018-10-21 02:48:17
Pushed At2025-10-22 01:23:01
Last Commit At2025-06-19 23:53:54
Release Count0
用户参与
Stargazers Count3.1k
Watchers Count25
Fork Count210
Commits Count337
Has Issues Enabled
Issues Count162
Issue Open Count91
Pull Requests Count34
Pull Requests Open Count36
Pull Requests Close Count39
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

sandspiel

"Imagine the cool phenomenon when the wind blows the falling leaves. This game simulates the phenomenon with powder (dots)!" -DAN-BALL

This is a falling sand game built in rust (via wasm), webgl, and some JS glueing things together.

You can play online or read a longer post on the project

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 seperate terminal:
cargo watch -s 'wasm-pack build'

a successor to my previous efforts in javascript and lua

Fluid simulation code adopted from
https://github.com/PavelDoGreat/WebGL-Fluid-Simulation