This is a basic simulation of classic sand and water The basics are: sand will fall until hitting a surface, then will move diagonally bottom-left or bottom-right. Water is similar, but instead of moving diagonally, it moves straight left or right when hitting something. 1 for sand 2 for water 3 for stone/concrete
my brother for helping me best performance on turbowarp https://turbowarp.org/595624669?stuck&hqpen