Devlogs
Login

Adding a Day-Night Cycle and More Realistic Wave Simulation | Unity Multiplayer Game Devlog #20

Multiplayer Pirate Game Devlogs EP 4 12/01/19
Login to Follow

In this Unity multiplayer game devlog, I continue working on making ships sink. After that, I improve the wave simulation and I add a decent-looking day night cycle.

Next devlog: https://youtu.be/nrBGdfnPtLo
Pirate game playlist: https://www.youtube.com/playlist?list=PLXkn83W0QkfmQI9lUzi--TxJaOFYIN7Q4

⎯⎯⎯⎯⎯⎯

Discord server: https://tomweiland.net/discord
Support me on GitHub Sponsors: https://github.com/sponsors/tom-weiland
Support me on Ko-fi: https://tomweiland.net/kofi
GitHub: https://tomweiland.net/github
Project's Trello board: https://trello.com/b/vJwk0iwS/pirate-game
Website: https://tomweiland.net/

⎯⎯⎯⎯⎯⎯

After I finished making ships sink, I got to work on my wave simulation code. I replaced my sine wave-based formula with Gerstner waves, as they look a lot more realistic. This was something I had wanted to do for quite a while, but I never really got around to it. I'm super happy with the way the water has turned out, it looks so much better now!

Next, I added a day night cycle to the game. Although I decided to tackle the procedural skybox shader at a later point in time, I managed to get some nice looking sunsets going in Unity—simply by making the sun color, ambient light color, and the fog density and color dependent on the time of day. This has really made the world feel more alive, and I can't wait until I reach the point where the game is playable!

#Devlog #GameDev #IndieDev #Multiplayer #Unity3D

"Interplanetary Forest" by Meydän is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)
Artist: https://soundcloud.com/meydansound

Contributors

Tags