That is an interesting way of doing it, might give that try. As far as browser compatibility goes I am not support any version of IE, in fact I don't want it to work in IE. This is is just a little stress relief game I am making when I get frustrated with IE. It is a game where I get to shoot and kill IE.
My collision detection is done during the Fx.Morph when the weapon is fired, at this point performance is not a big concern. It is VERY VERY VERY early in development, http://www.f**ckinie.com, replace the ** with uk :) I am by no means a designer so it is pretty ugly right now. Always looking to improve things so I think I might run some tests to see which way works better. On Thu, Aug 4, 2011 at 11:55 AM, Sanford Whiteman < [email protected]> wrote: > Hey Trevor, I know it's late, but I was just looking at this and > wondering what kind of performance enhancement you might get by using > elementFromPoint: > > http://jsfiddle.net/EuL8t/10/ > > Where natively supported (not IE pre-9) I would think this could > reduce the number of computations, since you don't care about the > dimensions of anything but the dragged element. Obviously suitability > depends on your game design -- I don't know what it actually looks > like -- but this is a mockup. > > -- Sandy > >
