This project was developed to illustrate the mechanic of combining two sine waves. It uses a CPU computations to calculate the height of the wave at multiple coordinates, as well as the GPU to render the visuals by impmplementing VERTEX and FRAGMENT shaders.
A simple game of tug of war. The demo is configued to allow two users to enter their desired wave configuration. Once the wave configuration is locked in the users can use a sensor to aid in getting the boat to the opposite side.
Resources and Inspiration:
Nvidia GPU Gems - Effective Water Simulation Physical Models
Acerola - How Games Fake Water
Crigz Vs Game Dev - How to make things float in Godot 4
You can play with or without the sensors hooked up.
Depending on your machines configuration you may need to modify the serial port being monitored.
To modify the port navigate to the file ocean.gd and modify the port and baud rate.
serial.open("/dev/ttyACM0", 115200)
Open the project in Godot and click the "play" button
