#include "cocos2d.h"
#include "CCEGLView.h"
#include "AppDelegate.h"
#include "simpleness.h"
USING_NS_CC;
AppDelegate::AppDelegate()
{
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching()
{
// initialize director
CCDirector *pDirector = CCDirector::sharedDirector();
pDirector->setOpenGLView(CCEGLView::sharedOpenGLView());
// 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 = Simpleness::scene();
// run
pDirector->runWithScene(pScene);
return true;
}
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
void AppDelegate::applicationDidEnterBackground()
{
CCDirector::sharedDirector()->stopAnimation();
}
// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground()
{
CCDirector::sharedDirector()->startAnimation();
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
1033.rar (25个子文件)
1033
proj.win32
resource.h 569B
root.rc 2KB
res
root.ico 47KB
main.cpp 863B
main.h 270B
Classes
simpleness.h 215B
AppDelegate.cpp 1KB
simpleness.cpp 562B
AppDelegate.h 960B
Resources
hello.lua 7KB
Icon.png 9KB
menu1.png 6KB
HelloWorld.png 142KB
hello2.lua 41B
effect1.wav 10KB
background.mp3 125KB
dog.png 26KB
menu2.png 69KB
CloseNormal.png 6KB
crop.png 53KB
Default.png 87KB
land.png 24KB
farm.jpg 113KB
CloseSelected.png 5KB
Templates.inf 1KB
共 25 条
- 1
资源评论
FlyDoBoy
- 粉丝: 2
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功