“cocos2d: JS: No ctor function found, please set `classes_need_extend` section at `ini` file as `tools/tojs/cocos2dx.ini`”
My project was created by 3.0 alpha1, I used bindings-generator to bind my cpp class. Recently I update to 3.0 beta, then this log appeared, what does this mean? Do I need to fix something?
Oh, I solved this problem。
I created class in JS, like this:
@
Controller = cc.Class.extend({
})
@
I didn’t write ctor() in it. After adding ctor(), it works OK!
@
Controller = cc.Class.extend({
ctor: function(){
},
})
@