ippa / jaws

Jaws - HTML5 canvas javascript 2D Game Framework
https://jawsjs.ippa.se
GNU Lesser General Public License v3.0
364 stars 75 forks source link

Collide should always return a boolean value #81

Closed videlais closed 11 years ago

videlais commented 11 years ago

I've been working on QuadTree and noticed that the results from a call to jaws.collide varied depending on the combination of list or sprites.

This patch will always return either true or false no matter what combination is used, not just for sprite on sprite collision cases.