cykod / Quintus

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

Adding a "bump" event #151

Closed m93a closed 9 years ago

m93a commented 9 years ago

Adding obj.on("bump",f) as a shorthand for obj.on("bump.top, bump.bottom, bump.left, bump.right",f).

I'm not sure if it should be merged, but seems like a nice-to-have feature :)