• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Draw Fog - 2D or Draw Light at a dark map

A

ArchAngel

Guest
I want to do something like this :

Source : Found this image on google images


--
My game is also 2D.
However, my screen size is 1024 x 768 but i limited the view on room to 640x480.
And ir follows my main object ( the pacman). However, the pacman is not always in center of the screen.

So how should i approach this?

I made this image below, however, i cant use it as foreground since the image have to stretch to the view ( 640x480) and not the whole map.

 
Top