Ebiten Sandpiles

This repository is an example of using Ebitengine to draw ‘sandpiles’ on screen.

Algorithm

Each tick we increase the middle of the matrix by 1, once a cell in the matrix goes over the model threshold, the cell ‘topples’ to the surrounding cells and empties itself.

Video (press to follow link)

Sample Video

GitHub

View Github