Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (16 sloc) 611 Bytes
#include "cocos2d.h"
class HelloWorld : public cocos2d::CCLayer
// Method 'init' in cocos2d-x returns bool, instead of 'id' in cocos2d-iphone (an object pointer)
virtual bool init();
// there's no 'id' in cpp, so we recommend to return the class instance pointer
static cocos2d::CCScene* scene();
// a selector callback
void menuCallback(CCObject* pSender);
// preprocessor macro for "static create()" constructor ( node() deprecated )
#endif // __HELLOWORLD_SCENE_H__