setCollision(left, right, up, down)
Sets the collision flags for each side of this tile and updates the interesting faces list.
Parameters
Name Type Description left boolean Indicating collide with any object on the left. right boolean Indicating collide with any object on the right. up boolean Indicating collide with any object on the top. down boolean Indicating collide with any object on the bottom.
Source code: tilemap/Tile.js (Line 233)