I am looking for a tutorial that will show me how to do simple 2d physics such as this ( http://www.teagames.com/games/tgmotocross/play.php ). The part that interests me the most is how collision detection is performed between the character / player and the terrain, and how to store / generate the terrain.
The language of the textbook does not matter - I'm just wondering how to do this in general.
Thank you very much.
EDIT . To clarify, I already know how to perform collision detection between two sprites and enough physics to write the 2nd game. I specifically look at a tutorial / example on how to implement with a smooth surface that you can encounter (I understand how landscapes collapse, and I believe that this will be somehow connected). In addition, I know the lessons of N, but use discrete figures, while I am interested in a smooth landscape.
source share