Huge thanks to Griffpatch and his grid list tutorial none of this would be possible without it! This is my take on the grid list physics Controls: use D to cycle through different Materials. Click to place materials. Press B to activate delete mode Press R to reset the game. Press S to hide and show settings.
Most of the code goes to me but i did use Griffpatchs grid list tutorial. Update 2/9/2022: fixed smoke Update 12/8/2021: added lava Update 12/8/2021: sand now displaces water correctly.