Hey fellas!We made a
blog post about
how to create a colorized fog in a 2D game, and I think it's a good moment to show you how we use fog in Degrees of Separation.
Our fog is
highly customizable, with the main parameters being 8 color gradients, 4 for each temperature:
-
Back fog is the one that you can see far away, in mountains and trees.
-
Front fog is the one for objects between the camera and the place where Rime and Ember are. It's normally dark, and it helps giving the scene a depth feeling.
-
Top and bottom make fog blend into 2 colors, so mountain peaks can have a darker color, for example.
Thanks to these options we can apply
different tones in each world, in order to change the ambiance depending on the context of the level. For example, the first part of the game and the first world have slightly different tones:
Meeting:
First World:
The fog helps standing up the
contrast between cold and warm, and makes the game gain depth and beauty. You can check how different a scene looks without fog and with fog:
Without Fog:
With Fog:
You can check the
entire blog post to know how the fog is made in-depth here.