What people usually do is pretend the object is in 3d, so it has a screen position (x and y) and a 'z' position, where the z is the distance away from the viewer. Then one simple way to make the thing look smaller as it is further away is to divide x and y by z, and scale it to fit the screen, so
screenx = scale * x / z
screeny = scale * y / z
Jim