随笔分类 - cocos2d-x
摘要://20秒后自动运行下一个场景runAction( CCSequence::create(CCDelayTime::create(20.0f), CCCallFunc::create(this, callfunc_selector(GameOver::removeThis)),NULL));
void GameOver::removeThis()
{ nextCallback(this);
}.h文件#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__ #include "cocos2d.h" #incl
阅读全文