How to create a fog of war effect to give the right atmosphere for a dungeon crawler.

Posted on 12th Jul 2021. Follow @phaser_ and get the Phaser World newsletter.

image

Tommy Leung from Ourcade writes: "If you are making a roguelike or dungeon crawler then you'll want the right atmosphere.

Being in a dark dungeon where the only light is from your torch means you should not be able to see the whole room.

It should be revealed to you as you move around.

Enemies won't be visible until they get close.

You'll need to search around and keep a mental map of where everything is.

Isn't this how a dungeon crawler should be?

In this article, we'll show you a relatively simple and efficient way to create that kind of atmosphere for a roguelike or dungeon crawler."

Read More

Learn to code and lead your intrepid crew on a mission to save The Cloud in TwilioQuest, a PC role-playing game inspired by classics of the 16-bit era. Free forever, and available now for Windows, Mac, and Linux.

The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
  • By Emanuele Feronato
  • 155 Pages
  • 28 Source Code Examples
  • Build a complete game from start to finish
  • Cross Platform
  • Scaling for devices
Buy Now
$19