easystarjs
easystarjs copied to clipboard
Is "setAcceptableTiles" always necessary?
I'm following the tutorial listed here
Say we declare a level like this:
var level =
[[0,0,1,0,0],
[1,0,1,0,1],
[0,0,1,0,0],
[0,0,1,1,0],
[0,0,0,0,0]];
is it required that we then call setAcceptableTiles
?
My understanding is that all the 0s in the above array signify a walkable tile. If that's the case, setAcceptableTiles
would be optional.