Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm working on a racing game which will have a top view from the back camera. The image below displays a similar example. I am confused about how to achieve the movement of the road if parallax scrolling is used. The road gets narrow as we move forward whereas it is broader closer to the camera. Should I focus on parallax scrolling to achieve this or is there some other technique to work with such games?

p.s. I'm using cocos2d-x as the gaming engine.

enter image description here

share|improve this question

marked as duplicate by John McDonald, Sean Middleditch, bummzack, Byte56 Sep 27 '13 at 18:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Thanks for pointing me to some similar queries..I can't add comment there (don't have as many points)..Is it possible to achieve this with a 2d engine like cocos2dx..it seems that the perspective thing works in 3 dimensions? any more help? –  Haider Sep 25 '13 at 19:19