View source
enum abstract FlxTilemapDiagonalPolicy(Int)
package flixel.path
import flixel.path.FlxPathfinder
The policy to use with FlxDiagonalPathfinder
.
Available since
5.0.0
.Variables
inlineread onlyNONE:FlxTilemapDiagonalPolicy = 0
No diagonal movement allowed when calculating the path
inlineread onlyNORMAL:FlxTilemapDiagonalPolicy = 1
Diagonal movement costs the same as orthogonal movement
inlineread onlyWIDE:FlxTilemapDiagonalPolicy = 2
Diagonal movement costs one more than orthogonal movement