資源簡介
Cocos2D游戲之旅(六):流星、煙花、火焰、下雪、下雨粒子特效---源代碼
博客效果演示與講解地址:http://blog.csdn.net/qiulanzhu/article/details/47910781

代碼片段和文件信息
#include?“AppDelegate.h“
#include?“HelloWorldScene.h“
USING_NS_CC;
AppDelegate::AppDelegate()?{
}
AppDelegate::~AppDelegate()?
{
}
bool?AppDelegate::applicationDidFinishLaunching()?{
????//?initialize?director
????auto?director?=?Director::getInstance();
????auto?glview?=?director->getOpenGLView();
????if(!glview)?{
????????glview?=?GLView::create(“My?Game“);
????????glview->setframeSize(480?320);
????????director->setOpenGLView(glview);
????}
????//?turn?on?display?FPS
????director->setDisplayStats(false);
????//?set?FPS.?the?default?value?is?1.0/60?if?you?don‘t?call?this
????director->setAnimationInterval(1.0?/?60);
????//?create?a?scene.?it‘s?an?autorelease?object
????auto?scene?=?HelloWorld::createScene();
????//?run
????director->runWithScene(scene);
????return?true;
}
//?This?function?will?be?called?when?the?app?is?inactive.?When?comes?a?phone?callit‘s?be?invoked?too
void?AppDelegate::applicationDidEnterBackground()?{
????Director::getInstance()->stopAnimation();
????//?if?you?use?SimpleAudioEngine?it?must?be?pause
????//?SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
}
//?this?function?will?be?called?when?the?app?is?active?again
void?AppDelegate::applicationWillEnterForeground()?{
????Director::getInstance()->startAnimation();
????//?if?you?use?SimpleAudioEngine?it?must?resume?here
????//?SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1409??2015-08-23?20:44??particleSystem\Classes\AppDelegate.cpp
?????文件????????947??2014-04-01?18:48??particleSystem\Classes\AppDelegate.h
?????文件???????4805??2015-08-23?20:53??particleSystem\Classes\HelloWorldScene.cpp
?????文件????????501??2015-08-23?20:29??particleSystem\Classes\HelloWorldScene.h
?????文件??????25776??2014-04-01?18:48??particleSystem\fonts\Marker?Felt.ttf
?????文件?????????45??2014-04-01?18:48??particleSystem\proj.win32\build-cfg.json
?????文件???????2651??2014-05-12?18:03??particleSystem\proj.win32\Chapter7_1_AutoBatching.sln
?????文件??????10163??2015-08-23?18:10??particleSystem\proj.win32\Chapter7_1_AutoBatching.vcxproj
?????文件???????1340??2014-06-03?10:19??particleSystem\proj.win32\Chapter7_1_AutoBatching.vcxproj.filters
?????文件????????635??2014-05-12?18:03??particleSystem\proj.win32\Chapter7_1_AutoBatching.vcxproj.user
?????文件?????472163??2015-08-23?20:44??particleSystem\proj.win32\Debug.win32\AppDelegate.obj
?????文件????????186??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\Chapter7_1_AutoBatching.lastbuildstate
?????文件??????11978??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\cl.command.1.tlog
?????文件?????178322??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\CL.read.1.tlog
?????文件???????3964??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\cl.write.1.tlog
?????文件???????4148??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\li
?????文件???????7442??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\li
?????文件???????1846??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\li
?????文件????????636??2015-08-22?11:37??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\rc.command.1.tlog
?????文件???????2652??2015-08-22?11:37??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\rc.read.1.tlog
?????文件????????374??2015-08-22?11:37??particleSystem\proj.win32\Debug.win32\Chapter7.50821A2F.tlog\rc.write.1.tlog
?????文件??????16185??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\Chapter7_1_AutoBatching.log
?????文件???????1036??2015-08-23?18:05??particleSystem\proj.win32\Debug.win32\Chapter7_1_AutoBatching.vcxprojResolveAssemblyReference.cache
?????文件??????48456??2015-08-22?11:37??particleSystem\proj.win32\Debug.win32\game.res
?????文件?????571757??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\HelloWorldScene.obj
?????文件?????444423??2015-08-23?18:11??particleSystem\proj.win32\Debug.win32\main.obj
?????文件????1027072??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\vc120.idb
?????文件???17920000??2015-08-23?20:53??particleSystem\proj.win32\Debug.win32\vc120.pdb
?????文件???????2170??2014-04-01?18:48??particleSystem\proj.win32\game.rc
?????文件????????451??2014-05-12?18:03??particleSystem\proj.win32\main.cpp
............此處省略25個文件信息
- 上一篇:圖像處理常用到的圖片
- 下一篇:仿百度在線閱讀插件
評論
共有 條評論