Mario example includes two tile layers. All that you need to do to draw the tiles background is:
B4X:
Public Sub Tick (GS As X2GameStep)
TileMap.DrawScreen(Array("Tile Layer 1", "Tile Layer 2"), GS.DrawingTasks)
End Sub
Public Sub DrawingComplete
TileMap.DrawingComplete
End Sub