[html5] Image Collision Detection in Canvas

Ian Hickson ian at hixie.ch
Sun Mar 28 20:18:25 PDT 2010

On Sat, 27 Mar 2010, Saurabh Jain wrote:
> We want to port our 2D game from J2ME to HTML 5 Canvas immediately. We 
> could not find collision detection support in WhatWG specification. 
> Please tell us how we can check pixel level image collision which is a 
> necessity for developing 2D games.

You have to implement the collision detection in JS. Exactly how to do 
that is somewhat outside the scope of this group.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the Help mailing list