cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

The fix for #125 breaks the Ball example #138

Open Dhekke opened 10 years ago

Dhekke commented 10 years ago

The fix for #125 (08e01d7e38a4fa0cbc08081191e6f3073b5c1e5a) added Q._generateCollisionPoints(this) to Sprite.update and now I get a cannot read property 'length' of undefined error on quintus_sprites.js:312.

From the Quintus site, it looks like the Ball example doesn't need collision detection and it might be wasteful to add p.points just to make Q._generateCollisionPoints(this) happy, so maybe it'd be better just check for p.pointsbefore calling it?

I'm very new to this stuff so I don't really know how to fix it.

jeronimo commented 9 years ago

:+1:

pointofpresence commented 9 years ago

Bug is still here. And http://www.html5quintus.com/quintus/examples/ball/ uses old version of quintus_sprites.js