Options
All
  • Public
  • Public/Protected
  • All
Menu

Fog of War class. Enables fog rendering in a dynamic manner.

Hierarchy

  • Fog

Index

Constructors

Properties

Constructors

constructor

  • new Fog(color: string, distance: number, engage: number): Fog

Properties

color

color: string

Color of the FOW (fog of war)

distance

distance: number

The distance (in wall 'blocks') after which the color will have 100% intensity.

engage

engage: number

Threshold that defines at what distance the fog gets blended in. Ranges from 0 to 1.

Generated using TypeDoc