Creators
This Fog of War module was created for the University of Washington Bothell class CSS 452: Game Engine Development, Winter Quarter 2021.
Authors: Victor Avelar Daniel Lorentz Noah Reiniger
Module Functionality
This module creates a fog of war effect. Users can use this module to hide areas that a player has not yet visited and and not see Rendreables of the user’s choosing outside of the player’s field of view. Our module provides the FogOfWar, FogOfWarViewer, and FogRenderable classes. The only class a user will need to work with is the FogOfWar class, and through simple commands set up and execute this module for their game development.
When an object that the user has specified has a Field of View changes positions on the world map, the field of view will automatically follow that object as it moves. The user can set what the radius for the field of view and how shaded the unexplored and foggy areas are during the update function. On top of that, users can decide what image to use to cover unexplored areas and have multiple objects with their own unique field of view.