cocos2dx 游戏重置方法

方法一:
srand(time(NULL));

array->removeAllObjects();
this->removeAllChildren();
init();

方法二:
 CCDirector::sharedDirector()->replaceScene(HelloWorld::scene());

从本场景切换到本场景,但是不能在init()函数中。。
原文地址:https://www.cnblogs.com/jiackyan/p/3042600.html