资源简介
压缩文件目录内容:
AngryBird source 愤怒的小鸟Demo源代码,基于Cocos2dx C++,box2d技术。
run 可执行程序目录

代码片段和文件信息
#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 Demo\AngryBirds source\Classes\AppDelegate.cpp
文件 993 2013-10-16 15:46 AngryBird Demo\AngryBirds source\Classes\AppDelegate.h
文件 7144 2014-03-27 12:03 AngryBird Demo\AngryBirds source\Classes\GB2ShapeCache-x.cpp
文件 2079 2013-04-16 01:03 AngryBird Demo\AngryBirds source\Classes\GB2ShapeCache-x.h
文件 7587 2013-04-16 01:03 AngryBird Demo\AngryBirds source\Classes\GLES-Render.cpp
文件 2179 2013-04-16 01:03 AngryBird Demo\AngryBirds source\Classes\GLES-Render.h
文件 9125 2014-03-27 18:20 AngryBird Demo\AngryBirds source\Classes\HelloWorldScene.cpp
文件 995 2014-03-27 11:24 AngryBird Demo\AngryBirds source\Classes\HelloWorldScene.h
文件 364 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\.classpath
文件 10956 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\.cproject
文件 3712 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.android\.project
文件 1253 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.android\AndroidManifest.xm
文件 715 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\ant.properties
文件 3584 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.android\build.xm
文件 1625 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.android\build_native.sh
文件 894 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\jni\Android.mk
文件 103 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\jni\Application.mk
文件 1194 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\jni\hellocpp\main.cpp
文件 801 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\proguard-project.txt
文件 442 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\project.properties
文件 3364 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\README.md
文件 12200 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\res\drawable-hdpi\icon.png
文件 5295 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\res\drawable-ldpi\icon.png
文件 7590 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.android\res\drawable-mdpi\icon.png
文件 116 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.android\res\values\strings.xm
文件 1927 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.android\src\com\MyGame\Game\AngryBirds.java
文件 67042 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.blackberry\.cproject
文件 3155 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.blackberry\.project
文件 6854 2014-03-26 10:38 AngryBird Demo\AngryBirds source\proj.blackberry\bar-desc
文件 0 2013-10-16 15:46 AngryBird Demo\AngryBirds source\proj.blackberry\empty\empty
............此处省略157个文件信息
- 上一篇:网络五子棋双人对弈系统
- 下一篇:用C语言编写的分形树
相关资源
- 基于Cocos2dx的炸弹人游戏
- Cocos2d-x C++版仿《王者之剑》实现(
- cocos2dx写的坦克小游戏
- Tiled C++ 地图编辑器 Cocos2d-x 支持的地
- 贪吃蛇大作战demo实现和代码
- PC版SoulKight
- Cocos2d-x实战:C++卷2版源代码
- HexFrvr-cosX.zip
- cocos2d-x两款游戏的源码
- cocos2d-x C++ 版本 48款游戏集合 吐血共
- cocos2dx3.0打地鼠源码
- cocos2dx 3.17 2048游戏的源码
- cocos3.x惯性滑动源码
- 超级玛丽 cocos2d-x
- 网狐棋牌源码316版
- cocos2d实现button(按钮)效果
- cocos2dx C++ 横向2d水波浪效果连续波浪
- CocosCreator js 麻将
评论
共有 条评论