This method is known as linear perspective.
When using linear perspective, artists use a set of drawn or imaginary lines which are made to converge at the horizon of the image. These lines change the viewer's perspective by providing a point through which the relative size, shape and position of objects is determined. This technique creates the illusion of depth.