資源簡介
paopao.rar
代碼片段和文件信息
#include?“AppDelegate.h“
#include?“../proj.win32/Singleton/Commonlayer.h“
#include?“../proj.win32/Singleton/CommonScene.h“
#include?“../proj.win32/utils/I18N.h“
//#include?“proj.win32/Singleton/UserInformation.h“
USING_NS_CC;
AppDelegate::AppDelegate()?{
}
AppDelegate::~AppDelegate()?
{
}
bool?AppDelegate::applicationDidFinishLaunching()?{
????//?initialize?director
????CCDirector*?pDirector?=?CCDirector::sharedDirector();
????CCEGLView*?pEGLView?=?CCEGLView::sharedOpenGLView();
????pDirector->setOpenGLView(pEGLView);
CCSize?screenSize?=?CCEGLView::sharedOpenGLView()->getframeSize();
CCSize?designSize;
#if?(CC_TARGET_PLATFORM?==?CC_PLATFORM_IOS)
designSize?=?CCSizeMake(1360?640);
CCFileUtils::sharedFileUtils()->addSearchPath(“IPhone“);
#elif?(CC_TARGET_PLATFORM?==?CC_PLATFORM_ANDROID)
designSize?=?CCSizeMake(800480);
CCFileUtils::sharedFileUtils()->addSearchPath(“Android“);
#elif?(CC_TARGET_PLATFORM?==?CC_PLATFORM_WIN32)
designSize?=?CCSizeMake(960?640);
CCFileUtils::sharedFileUtils()->addSearchPath(“IOS“);
#endif
????//?turn?on?display?FPS
????pDirector->setDisplayStats(true);
????//?set?FPS.?the?default?value?is?1.0/60?if?you?don‘t?call?this
????pDirector->setAnimationInterval(1.0?/?60);
????//?create?a?scene.?it‘s?an?autorelease?object
????CCScene?*pScene?=?CommonScene::scene();
I18N::sharedR18N()->loadCache();
????//?run
????pDirector->runWithScene(pScene);
????return?true;
}
//?This?function?will?be?called?when?the?app?is?inactive.?When?comes?a?phone?callit‘s?be?invoked?too
void?AppDelegate::applicationDidEnterBackground()?{
//UserInformation::shredeUserInformation()->endGamePowerTime();
????CCDirector::sharedDirector()->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()?{
????CCDirector::sharedDirector()->startAnimation();
????//?if?you?use?SimpleAudioEngine?it?must?resume?here
????//?SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2115??2013-10-17?10:18??People\Classes\AppDelegate.cpp
?????文件????????955??2013-10-11?14:51??People\Classes\AppDelegate.h
?????文件???????1058??2013-12-31?11:57??People\Resources\project\Exption\start\load0.plist
?????文件??????81158??2013-12-31?11:57??People\Resources\project\Exption\start\load0.png
?????文件???????1914??2013-12-31?11:57??People\Resources\project\Exption\start\load_1.ExportJson
?????文件???????1060??2014-01-04?14:57??People\Resources\project\Exption\Menu\Menu0.plist
?????文件?????192497??2014-01-04?14:57??People\Resources\project\Exption\Menu\Menu0.png
?????文件???????2767??2014-01-04?14:57??People\Resources\project\Exption\Menu\Menu1.plist
?????文件?????446876??2014-01-04?14:57??People\Resources\project\Exption\Menu\Menu1.png
?????文件???????1060??2014-01-04?14:57??People\Resources\project\Exption\Menu\Menu2.plist
?????文件??????65141??2014-01-04?14:57??People\Resources\project\Exption\Menu\Menu2.png
?????文件??????10005??2014-01-04?14:57??People\Resources\project\Exption\Menu\Menu_1.ExportJson
?????文件???????3642??2014-01-06?11:47??People\Resources\project\Exption\Play\Play0.plist
?????文件??????48309??2014-01-06?11:47??People\Resources\project\Exption\Play\Play0.png
?????文件???????2369??2014-01-06?11:47??People\Resources\project\Exption\Play\Play1.plist
?????文件??????60533??2014-01-06?11:47??People\Resources\project\Exption\Play\Play1.png
?????文件???????1934??2014-01-06?11:47??People\Resources\project\Exption\Play\Play2.plist
?????文件?????241563??2014-01-06?11:47??People\Resources\project\Exption\Play\Play2.png
?????文件???????1957??2014-01-06?11:47??People\Resources\project\Exption\Play\Play3.plist
?????文件??????55237??2014-01-06?11:47??People\Resources\project\Exption\Play\Play3.png
?????文件???????1497??2014-01-06?11:47??People\Resources\project\Exption\Play\Play4.plist
?????文件?????229352??2014-01-06?11:47??People\Resources\project\Exption\Play\Play4.png
?????文件???????1066??2014-01-06?11:47??People\Resources\project\Exption\Play\Play5.plist
?????文件?????367201??2014-01-06?11:47??People\Resources\project\Exption\Play\Play5.png
?????文件??????68600??2014-01-06?11:47??People\Resources\project\Exption\Play\Play_1.ExportJson
?????文件??????14784??2013-10-14?15:11??People\Resources\project\Exption\Play\GUI\labelatlasimg.png
?????文件???????8809??2014-01-06?16:48??People\Resources\project\Exption\Other\Other0.plist
?????文件?????174757??2014-01-06?16:48??People\Resources\project\Exption\Other\Other0.png
?????文件??????34092??2014-01-06?16:48??People\Resources\project\Exption\Other\Other_1.ExportJson
?????文件??????14784??2013-10-14?15:11??People\Resources\project\Exption\Other\GUI\labelatlasimg.png
............此處省略506個文件信息
- 上一篇:STM8L15x 庫例程大全
- 下一篇:基于ACIS的幾何造型技術與系統開發
評論
共有 條評論