All,
Sorry for the wordy title, but I didn't know what to call it
I put together another little physics demo. If you go to my site www.ashatej.com, it is at the bottom of the demos section "Stickman Run" (physics chain terrain demo). The demo generates a random bunch of chain vertices to mimic random terrain. There is a stickman figure that you can make run over the terrain using the left and right arrow keys (no jumping) On rare occasions, the random terrain creates a section that the stickman can't run over. If that happens, just reload the page and run the app again. I tested it on a PC with firefox and chorme and it seems to work as advertised.
The demo uses the standard wade physics extension. Here are a couple of links about box2d chains https://docs.coronalabs.com/guide/physics/physicsBodies/index.html#edge-shape-chain-body and https://www.youtube.com/watch?v=oBcv_P_YDrw&index=6&list=PLRqwX-V7Uu6akvoNKE4GAxf6ZeBYoJ4uh .
The whole demo is available for download as a zip file. The stickman graphics are free to use but were NOT released under CC0, so there are some restrictions. If you go to the demo credits, you can load "Robert Brooks" web page and look at the licenising information. Please respect the rights of the graphics copyright holder. There is some standard copyright stuff in the source code, but that's mine so feel free to do with it what you like. I don't use the online editor, so you have to know a little code to understand what is going on.
If you have any questions regarding the demo, post them to this thread and I will try to get you an answer.
cheers - shri