-
大小: 634KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-06-03
- 語言: 其他
- 標簽: cocos2d-x2.0??
資源簡介
cocos2d-x2.0 射擊游戲實現(xiàn)
飛機類
子彈類
背景移動
用戶觸摸

代碼片段和文件信息
#include?“cocos2d.h“
#include?“CCEGLView.h“
#include?“AppDelegate.h“
#include?“HelloWorldScene.h“
#include?“SimpleAudioEngine.h“
#include?“CGameScene.h“
using?namespace?CocosDenshion;
USING_NS_CC;
AppDelegate::AppDelegate()
{
}
AppDelegate::~AppDelegate()
{
????SimpleAudioEngine::end();
}
bool?AppDelegate::applicationDidFinishLaunching()
{
????//?initialize?director
????CCDirector?*pDirector?=?CCDirector::sharedDirector();
????pDirector->setOpenGLView(CCEGLView::sharedOpenGLView());
????//?enable?High?Resource?Mode(2x?such?as?iphone4)?and?maintains?low?resource?on?other?devices.
//?????pDirector->enableRetinaDisplay(true);
????//?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?=?HelloWorld::scene();
CCScene?*pScene=CCGameScene::scene();
????//?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()
{
????CCDirector::sharedDirector()->stopAnimation();
????SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
}
//?this?function?will?be?called?when?the?app?is?active?again
void?AppDelegate::applicationWillEnterForeground()
{
????CCDirector::sharedDirector()->startAnimation();
????SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1526??2012-12-01?10:32??test06_plane_windows\Classes\AppDelegate.cpp
?????文件????????960??2012-12-01?10:07??test06_plane_windows\Classes\AppDelegate.h
?????文件???????3014??2012-12-01?10:07??test06_plane_windows\Classes\HelloWorldScene.cpp
?????文件????????631??2012-12-01?10:07??test06_plane_windows\Classes\HelloWorldScene.h
?????文件???????1342??2012-12-01?11:49??test06_plane_windows\proj.win32\CBullet.cpp
?????文件????????481??2012-12-01?11:30??test06_plane_windows\proj.win32\CBullet.h
?????文件???????2000??2012-12-01?11:38??test06_plane_windows\proj.win32\CGameScene.cpp
?????文件????????847??2012-12-01?11:37??test06_plane_windows\proj.win32\CGameScene.h
?????文件???????1268??2012-12-01?11:46??test06_plane_windows\proj.win32\CPlane.cpp
?????文件????????396??2012-12-01?11:46??test06_plane_windows\proj.win32\CPlane.h
?????文件??????91996??2012-12-01?11:46??test06_plane_windows\proj.win32\Debug.win32\AppDelegate.obj
?????文件??????11766??2012-12-01?11:49??test06_plane_windows\proj.win32\Debug.win32\BuildLog.htm
?????文件?????103646??2012-12-01?11:49??test06_plane_windows\proj.win32\Debug.win32\CBullet.obj
?????文件?????113377??2012-12-01?11:46??test06_plane_windows\proj.win32\Debug.win32\CGameScene.obj
?????文件?????107718??2012-12-01?11:46??test06_plane_windows\proj.win32\Debug.win32\CPlane.obj
?????文件?????109031??2012-12-01?10:08??test06_plane_windows\proj.win32\Debug.win32\HelloWorldScene.obj
?????文件??????69947??2012-12-01?10:32??test06_plane_windows\proj.win32\Debug.win32\main.obj
?????文件?????????69??2012-12-01?11:49??test06_plane_windows\proj.win32\Debug.win32\mt.dep
?????文件??????48592??2012-12-01?10:08??test06_plane_windows\proj.win32\Debug.win32\test06_plane_windows.res
?????文件????????663??2012-12-01?10:09??test06_plane_windows\proj.win32\Debug.win32\test06_plane_windows.win32.exe.em
?????文件????????728??2012-12-01?10:09??test06_plane_windows\proj.win32\Debug.win32\test06_plane_windows.win32.exe.em
?????文件????????621??2012-12-01?11:49??test06_plane_windows\proj.win32\Debug.win32\test06_plane_windows.win32.exe.intermediate.manifest
?????文件????1313792??2012-12-01?11:49??test06_plane_windows\proj.win32\Debug.win32\vc90.idb
?????文件?????643072??2012-12-01?11:49??test06_plane_windows\proj.win32\Debug.win32\vc90.pdb
?????文件????????863??2012-12-01?10:31??test06_plane_windows\proj.win32\main.cpp
?????文件????????270??2012-12-01?10:07??test06_plane_windows\proj.win32\main.h
????.......?????47629??2012-09-27?10:59??test06_plane_windows\proj.win32\res\test06_plane_windows.ico
?????文件????????520??2012-12-01?10:07??test06_plane_windows\proj.win32\resource.h
?????文件???????2340??2012-12-01?10:07??test06_plane_windows\proj.win32\test06_plane_windows.rc
?????文件???????7033??2012-12-01?11:38??test06_plane_windows\proj.win32\test06_plane_windows.win32.vcproj
............此處省略17個文件信息
- 上一篇:MS下如何建立真空層
- 下一篇:input32相關資源
評論
共有 條評論