Open chihinchan opened 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?
grid.moveWithButtons()
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
TileMapData
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
TileMap
Any suggestion to get pass this issue?
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#L196And that you cannot get
TileMapData
directly from theTileMap
because it's protected: https://github.com/microsoft/pxt-common-packages/blob/master/libs/game/tilemap.ts#L232Any suggestion to get pass this issue?