Examples
The package includes two example scenes that demonstrate different aspects of the fog of war system.
Example Scenes
Performance Test
A stress test scene designed to showcase the system's ability to handle large numbers of units.
Features:
- Unit Count Slider - Adjust how many units are active on the map in real-time
- Random Movement - Units randomly move around the map, revealing fog as they go
- Minimap - Shows the fog state on a minimap overlay
- Camera Controls - WASD to move, Q/E to zoom in/out
- Fog Toggle - Button to enable/disable the fog system
- FPS Counter - Top-right corner displays current framerate to observe performance
This scene is perfect for testing performance limits and seeing how the system handles hundreds or thousands of units simultaneously.
Simple Example
A practical demonstration showing typical fog of war configuration in a game scenario.
Features:
- Player Unit - A unit that randomly moves around the scene and reveals the map
- Enemy Units - Several enemy units placed on the map with fade transitions enabled
- Fade Effect - Enemies smoothly fade in when the player unit sees them and fade out when vision is lost
This scene demonstrates the basic setup you would use in a real game, including entity visibility and smooth fade transitions.