Help needed regarding car side scroller...

I want to create something like we can see here in this video:

https://www.youtube.com/watch?v=JhcFBYLdWUg

Is there any sample code which can be used as a starting point? Especially for the moving ground? I can’t figure out how to create this using physics.

Any help welcome!