microsoft / arcade-grid

https://microsoft.github.io/arcade-grid/
MIT License
1 stars 1 forks source link

Wall support for grid.moveWithButtons() #3

Open chihinchan opened 3 years ago

chihinchan commented 3 years ago

It looks like the grid.moveWithButtons() does not support walls on the tilemap. Is it possible to get it to work with walls?

Tech bits that I tried:

I wanted to see if I can solve this on my own, however it looks like the only way to check walls is to ask TileMapData: https://github.com/microsoft/pxt-common-packages/blob/master/libs/game/tilemap.ts#L196

And that you cannot get TileMapData directly from the TileMap because it's protected: https://github.com/microsoft/pxt-common-packages/blob/master/libs/game/tilemap.ts#L232

Any suggestion to get pass this issue?