You can view a demo of the ‘collision detection’ and ‘keyboard movement’ here:
Or, better yet, you can view a ‘game’ written with the library here:
Anyone familiar with ‘Game Maker’ will most likely notice this game as ‘Evil Clutches’ from ‘The Game Makers Apprentice‘.
Some small notes on the Demo Game:
It does not seem to work in anything other then Firefox currently, and as I do not have a Mac to test with diligently, I will most likely not have Safari support any time soon — JSGameLib seems to work fine in IE, Safari and Firefox … however, the Demo Game has some problems (objects spawn in the wrong place) which is either related to a CSS issue and Firefox is just too forgiving, or it’s related to an issue with jQuery not having access to certain pieces of information at the time the values are being set. Either way, I intend to make it support Safari for Mac and hopefully IE for Windows as well.