A demo for arcade.js (view the source to learn more).
This sample shows how to implement moving objects, circle-circle and circle-polygon collisions.
This game requires HTML 5 support.