This is very WIP. I am following through some content before porting to my ECS.
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.
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
Currently, the simulation is locked to 60 FPS.
Heavily inspired by Jason McGhee's Falling Sand series.