Skip to content

Fog of War research - solution demo

Latest
Compare
Choose a tag to compare
@peterMcP peterMcP released this 05 May 20:48
· 6 commits to master since this release
6fdb6b1

About the project

On this research of theory and code, i tried to compact the most relevant information that i found after a lot of internet diving.
I explain the most used approachs of Fog Of War on some succesfull videogames, why uses them and how implement the selected approach capable of:

  • Smooth Fog of War.
  • Put players with providing visibility sight based on radius.
  • Put example "Wards" that provides visibility on larger area with life time.
  • Capable of hide desired game entities outside player visibility sight range.
  • Manage multiple spots of visibility without uggly hacks and workarounds.

Installing

  • Download executable demo from here
  • Unzip the downloaded file.
  • Execute the .exe inside the uncompressed folder.

Controls

  • Mouse left click: Put new players on desired position
  • Mouse right click: Put wards that provides you a larger visibility zone on desired position.
  • Keyboard W,A,S,D:: Moves instantiated player/s.
  • Keyboard UP,DOWN,LEFT,RIGHT: Moves camera around.

Debug keys

  • F1: View debug fog tile draw