Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Thanks for the feedback!
What I use to merge the water particles is an algorithm called metaballs, in short you go through all the pixels on the screen and sum the distance between the particles and that pixel. If the sum value is high enough then the pixel is rendered as water.

I completely forgot the source code, if you want to check it out: https://github.com/GuilOliveira/MyWaterBox

(+1)

Oh wonderful! Thanks for the detailed description of metaballs :)