/falling-sand

Let it rain sand.

Primary LanguageTypeScript

Falling Sand

Demo

Status

This is very WIP. I am following through some content before porting to my ECS.

Recordings

Press r to start recording, r again to stop recording. The recording will be saved as sand.webm. MediaRecorder is used to record the canvas.

⚠️ The recording is not ready to play on all media players, you should run it through ffmpeg to fix it.

For example I like to scale it up:

ffmpeg -i "sand.webm" -vf scale=1024:576:flags=neighbor -r 60 sand-output.webm

Performance

Currently, the simulation is locked to 60 FPS.

Kudos

Heavily inspired by Jason McGhee's Falling Sand series.