Hello,
I am a bit at a loss: i copied the code from tutorial 7 and get the compiler error message expected class name before }
?where did I do wrong?
code in file InitOpening.h: #ifndefINITOPENING_SCENE_H #defineINITOPENING_SCENE_H #include “cocos2d.h”
class InitOpeningLayer : public cocos2d::CCColorLayer
{ ///*****here error ?
public:
//GameOverLayer():_label(NULL) {};
virtual ~InitOpeningLayer();
bool init();
LAYER_NODE_FUNC(InitOpeningLayer);
void InitOpeningDone();
}
it a mere copy past with renaming to try to do inter scene transition between InitOpening scene and Helloworld so I though nothing complex???
thanks for anyhelp
hello, the tutorials are based on version 0.8.5, and in the latest version, CCColorLayer has been replaced.
as declared in the header file, CCColorLayer has been removed from the latest version:
/*** CCColorLayer
It is the same as CCLayerColor. @deprecated Use CCLayerColor instead. This class will be removed in v1.0.1
**/
class CC_DLL CCColorLayer : public CCLayerColor