修改cocos2dx的第一个代码就失败了,求指点。
采用生成的project,只是在最后加了一个空的函数/成员,报“IntelliSense: class “game1” 没有成员 “NewCallBack””的错误,请问这个成员要怎么加进去?
#include “game1Scene.h”
USING_NS_CC;
Scene* game1::createScene() {
// ‘scene’ is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = game1::create();
// add layer as a child to scene
scene->addChild(layer);
// return the scene
return scene;
}
bool game1::init() {
//和cocos2dx建立的模板工程相同,没有任何修改
}
////只加了下面这一句话
void game1::NewCallBack() {
}