基于Cocos2dx + box2d 实现的愤怒的小鸟Demo
压缩文件目录内容:
AngryBird source 愤怒的小鸟Demo源代码,基于Cocos2dx C++,box2d技术。
run 可执行程序目录
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1390 2014-03-26 11:09 AngryBird DemoAngryBirds sourceClassesAppDelegate.cpp
文件 993 2013-10-16 15:46 AngryBird DemoAngryBirds sourceClassesAppDelegate.h
文件 7144 2014-03-27 12:03 AngryBird DemoAngryBirds sourceClassesGB2ShapeCache-x.cpp
文件 2079 2013-04-16 01:03 AngryBird DemoAngryBirds sourceClassesGB2ShapeCache-x.h
文件 7587 2013-04-16 01:03 AngryBird DemoAngryBirds sourceClassesGLES-Render.cpp
文件 2179 2013-04-16 01:03 AngryBird DemoAngryBirds sourceClassesGLES-Render.h
文件 9125 2014-03-27 18:20 AngryBird DemoAngryBirds sourceClassesHelloWorldScene.cpp
文件 995 2014-03-27 11:24 AngryBird DemoAngryBirds sourceClassesHelloWorldScene.h
文件 364 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android.classpath
文件 10956 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android.cproject
文件 3712 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.android.project
文件 1253 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.androidAndroidManifest.xml
文件 715 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidant.properties
文件 3584 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.androiduild.xml
文件 1625 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.androiduild_native.sh
文件 894 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidjniAndroid.mk
文件 103 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidjniApplication.mk
文件 1194 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidjnihellocppmain.cpp
文件 801 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidproguard-project.txt
文件 442 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidproject.properties
文件 3364 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidREADME.md
文件 12200 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android
esdrawable-hdpiicon.png
文件 5295 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android
esdrawable-ldpiicon.png
文件 7590 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android
esdrawable-mdpiicon.png
文件 116 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.android
esvaluesstrings.xml
文件 1927 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.androidsrccomMyGameGameAngryBirds.java
文件 67042 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.blackberry.cproject
文件 3155 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.blackberry.project
文件 6854 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.blackberryar-descriptor.xml
文件 0 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.blackberryemptyempty
............此处省略157个文件信息
#include “AppDelegate.h“
#include “HelloWorldScene.h“
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
CCDirector* pDirector = CCDirector::sharedDirector();
CCEGLView* pEGLView = CCEGLView::sharedOpenGLView();
pDirector->setOpenGLView(pEGLView);
// turn on display FPS
pDirector->setDisplayStats(false);
// 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();
// 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();
// 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();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1390 2014-03-26 11:09 AngryBird DemoAngryBirds sourceClassesAppDelegate.cpp
文件 993 2013-10-16 15:46 AngryBird DemoAngryBirds sourceClassesAppDelegate.h
文件 7144 2014-03-27 12:03 AngryBird DemoAngryBirds sourceClassesGB2ShapeCache-x.cpp
文件 2079 2013-04-16 01:03 AngryBird DemoAngryBirds sourceClassesGB2ShapeCache-x.h
文件 7587 2013-04-16 01:03 AngryBird DemoAngryBirds sourceClassesGLES-Render.cpp
文件 2179 2013-04-16 01:03 AngryBird DemoAngryBirds sourceClassesGLES-Render.h
文件 9125 2014-03-27 18:20 AngryBird DemoAngryBirds sourceClassesHelloWorldScene.cpp
文件 995 2014-03-27 11:24 AngryBird DemoAngryBirds sourceClassesHelloWorldScene.h
文件 364 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android.classpath
文件 10956 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android.cproject
文件 3712 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.android.project
文件 1253 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.androidAndroidManifest.xm
文件 715 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidant.properties
文件 3584 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.androiduild.xm
文件 1625 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.androiduild_native.sh
文件 894 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidjniAndroid.mk
文件 103 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidjniApplication.mk
文件 1194 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidjnihellocppmain.cpp
文件 801 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidproguard-project.txt
文件 442 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidproject.properties
文件 3364 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.androidREADME.md
文件 12200 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android
esdrawable-hdpiicon.png
文件 5295 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android
esdrawable-ldpiicon.png
文件 7590 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.android
esdrawable-mdpiicon.png
文件 116 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.android
esvaluesstrings.xm
文件 1927 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.androidsrccomMyGameGameAngryBirds.java
文件 67042 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.blackberry.cproject
文件 3155 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.blackberry.project
文件 6854 2014-03-26 10:38 AngryBird DemoAngryBirds sourceproj.blackberryar-desc
文件 0 2013-10-16 15:46 AngryBird DemoAngryBirds sourceproj.blackberryemptyempty
............此处省略157个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)