资源简介
cocos热更新demo
代码片段和文件信息
#include “AppDelegate.h“
#include “Updatelayer.h“
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
CCDirector* pDirector = CCDirector::sharedDirector();
CCEGLView* pEGLView = CCEGLView::sharedOpenGLView();
pDirector->setOpenGLView(pEGLView);
pEGLView->setDesignResolutionSize(480 320 kResolutionShowAll);
// 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 = HotUpdaterTest::scene();
CCScene *pScene = Updatelayer::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();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-07-08 17:06 Cocos2d-x_HotUpdate-master\
文件 10244 2016-07-21 14:34 Cocos2d-x_HotUpdate-master\.DS_Store
目录 0 2016-07-22 11:27 __MACOSX\
目录 0 2016-07-22 11:27 __MACOSX\Cocos2d-x_HotUpdate-master\
文件 120 2016-07-21 14:34 __MACOSX\Cocos2d-x_HotUpdate-master\._.DS_Store
文件 141 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\.gitignore
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\._.gitignore
目录 0 2016-07-08 17:06 Cocos2d-x_HotUpdate-master\Classes\
文件 6148 2016-07-21 14:36 Cocos2d-x_HotUpdate-master\Classes\.DS_Store
目录 0 2016-07-22 11:27 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\
文件 120 2016-07-21 14:36 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\._.DS_Store
文件 1445 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\Classes\AppDelegate.cpp
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\._AppDelegate.cpp
文件 955 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\Classes\AppDelegate.h
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\._AppDelegate.h
文件 2765 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\Classes\AppMacros.h
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\._AppMacros.h
文件 2750 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\Classes\HelloWorldScene.cpp
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\._HelloWorldScene.cpp
文件 737 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\Classes\HelloWorldScene.h
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\._HelloWorldScene.h
文件 5385 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\Classes\Updatela
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\._Updatela
文件 1349 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\Classes\Updatela
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\Classes\._Updatela
文件 212 2016-07-08 17:06 __MACOSX\Cocos2d-x_HotUpdate-master\._Classes
目录 0 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\proj.android\
文件 466 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\proj.android\.classpath
目录 0 2016-07-22 11:27 __MACOSX\Cocos2d-x_HotUpdate-master\proj.android\
文件 212 2015-01-02 09:27 __MACOSX\Cocos2d-x_HotUpdate-master\proj.android\._.classpath
文件 3595 2015-01-02 09:27 Cocos2d-x_HotUpdate-master\proj.android\.project
............此处省略417个文件信息
相关资源
- cocoscreator 实现的 开心消消乐
- Cocos2dx入门初级教程
- cocos2dx 3.3 跑酷游戏源代码和资源
- cocos creator 跑酷项目源码
- cocos creator开发的一个简单的经典飞机
- 趣味桌球小游戏源代码
- 捕鱼达人.zip
- 萝莉快跑2013
- cocos creator 开心消消乐
- cocos游戏样例二_基本塔防游戏
- 三国跑酷cocos2dx3.2源码
- Cocos2d-x《大抗战》塔防射击游戏源代
- richer单机完毕源码
- 飞机大战 cocos creatro 完整资源+ 代码
- 连连看 cocos2dx 源代码
- 个人简历app
- 基于cocos开发的飞机大战含素材资源
- cocos2dx 大鱼吃小鱼游戏源代码
- GunHeroyh.zip
- FlappyBirdcocos creator
- 多边形相交检测demo
- cocos creator写的抓娃娃小
- cocosCreator切水果
- 极限跳跃-源码
- cocos creator 扫雷游戏资源工程
- Cocos Creator 天天酷跑素材源码工程
- 打砖块小游戏带文档说明+源码
- 迷失航线-Cocos2d-x项目实战-射击类游戏
- cocos2dx 3.x 水波纹
- BulletWar游戏源码coco2d-x开发 lua
评论
共有 条评论