I didn't know the Line2D node and the autotilling ability of the tilemap, I will look into it. Thank you very much for your answers !