對照着Cocos2d 2.0.3的捕魚代碼移植到cocos2d 3.0code
C++的屬性方法get
int _index; int getIndex(); void setIndex(int index);
也能夠用CC_PROPERTY的宏it
CC_PROPERTY(CannonType, _type, Type);class
類的初始化方法方法
CREATE_FUNC(Bullet); bool init();