easystarjs icon indicating copy to clipboard operation
easystarjs copied to clipboard

Is "setAcceptableTiles" always necessary?

Open maxwade-argodesign opened this issue 2 years ago • 0 comments

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.

maxwade-argodesign avatar Feb 02 '22 16:02 maxwade-argodesign