Tips
Create “Entity” classes for “Settings” classes during playmode. It prevents from modifying predefined map data and provides an opportunity to reset to default values
MapEntity for MapSettings
TileEntity for TileData
It could be easily done by calling constructor. Example could be observed at ExampleStart.cs
Most useful methods are located at MapEntity class
Converting tile coordinates to world space coordinates and vice versa
Calculating distance in tile space
Calculating paths
Outline of walkable border
Etc..
Numbers which are located inside tiles during painting mode at Scene view indicate separate move zone areas
0 index – predefined for NotMovable zone
Indices greater 0 - different movable zones
For example.
There is no walkable path from zone 1 to zone 2,3 and 4 |
There is no walkable path from zone 3 to zone 1,2 and 4
Created with the Personal Edition of HelpNDoc: Full-featured Help generator