For the first image it looks like you could do it with a bunch of sprite pieces. It could be tedious to place by hand. Using a tilemap would work if the tiles match up when placed on a grid. At first glance that tile set doesn't look like it would.
For the second image there are two parts to it: making something look like that and collisions. You could use the canvas object to draw stuff like that. The paster object could also do it using the draw quad action, although it would take some math to position the corners.
For collisions you could stretch a rectangular Sprite to make a line, although the corners would need more work to do.