Some quick water physics made in GMS2 in a bit less than 2 hours. Every 8 pixels along the surface is a point with displacement, velocity and acceleration. The points also take weight from neighbouring points using a normal distribution (exciting!). A sine wave is also applied to the surface to make it ripple when objects aren't interacting with the surface.
In the future I can see texturing the water and applying a distort shader to it. As well as getting the water to react a bit better to the player.
Charmful™️ Games
Copyright Charmful Pty Ltd 2023-2024
Subscribe to @Stuart-V and @CharmfulGames !
Those other stuff:
Instagram / charmfulgames
Twitter / charmfulgames
Facebook / charmfulgames
LinkedIn / charmful