Faking 3d perspective in canvas

I am making a game with canvas, and I have a looping animated road that the player will appear to be moving down,
If I want other elements like enemies to appear to be standing on that road I need them to ease-in their scale and position towards the camera to match the perspective.

If I know the degree the road as been stretched from top to bottom is there some clever trigonometry solution to figure out the easing rate and sell the effect? thanks.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.