摘要: 1 很多游戏有关闭游戏背景音乐的功能。我参考了郑州boy的博客,增加在simpleGame里面在HelloWorldScene.h里面添加回调的声明。1 void vedioOnAndOffCallBack(CCObject* pSend);在HelloWorldScene.cpp的HelloWorld::init()添加下面的代码 1 CocosDenshion::SimpleAudioEngine::sharedEngine()->playBackgroundMusic("background-music-aac.wav", true); 2 //CCMenuIt 阅读全文
posted @ 2014-01-04 21:46 aosting 阅读(287) 评论(0) 推荐(0) 编辑