cykod / Quintus

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

isA function inheritence #111

Open hershko765 opened 10 years ago

hershko765 commented 10 years ago

i wonder if this function suppose to support inheritence ? i did someting like that:

define(['qapp'], function(Q){ Q.Sprite.extend('Weapon', {}) });

and some weapon sprites that extends it and i extend every weapon sprite from this sprite, it would make life alot easier to be able to do the obj.isA('Weapon') on any sprites that extends this sprite