I spent some time over the weekend adding Box2D physics to the JavaScript version of my endless runner prototype. As you can see from the video below, you can now interact with our little hero, making him run and jump between platforms (once again, apologies about the terrible camera work).

The demo may still be fairly rudimentary but I was nevertheless suitably impressed by the performance of Box2dWeb. While it’s certainly not as fast as the ActionScript 3 port of Box2D, my ageing PC with its i3 processor was still able to comfortably run everything at 60fps. If asm.js ever gains some traction however, there’s a real possibility that we could start to see near native-like speeds from certain JavaScript libraries in the future. Now that would be a mouth watering prospect.