Silent hill like fog system
Hey folks!
Recently I've been working on a sprite based fog system. It's quite fast and I'm very happy with how I got things working!
I generate fixed amount of fog sprites at the random position within the seedbox, which can be moved with any given position (camera view, or any entity as shown on the video below). When a sprite goes out of the seedbox, I cycle it's position back on the opposite side of the seedbox and since sprites are faded out on distance, this is nearly seamless to the player. This also helps to optimise things a lot, since I don't constantly create/remove fog sprites.
Best regards!