LightSpriteBaseGenerateWalls Method |
Calculate based on this sprite's solidity where light walls should appear within a specified radius.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public void GenerateWalls(
int tileRadius
)
Parameters
- tileRadius
- Type: SystemInt32
How many tiles away a solid tile can cause a wall to be generated.
This is a square radius, so not, strictly speaking, a radius.
Remarks After this function completes,
WallCoordinates will contain information
about all the walls for this light source. Note that this information is shared among all
light sources, and so should be transferred to the
Display object before calculating
walls for other light sources. Large radiuses may harm performance without improving results
because there are a limited number of walls that the display can handle. Once this limit is
reached, no more walls are processed regardless of whether the information for them has been
calculated. However, it is possible with larger radius values to extend existing walls farther
because each wall is simply a line that can be extended for any length of colinear tiles.
See Also