资源简介
cocos2dx 3.3 跑酷游戏源代码和资源
全部文件上传的话太大,就传了classes和resources里的文件
要全部文件的话可私信我

代码片段和文件信息
#include “AppDelegate.h“
#include “WelcomeScene.h“
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
//if you want a different contextjust modify the value of glContextAttrs
//it will takes effect on all platforms
void AppDelegate::initGLContextAttrs()
{
//set OpenGL context attributionsnow can only set six attributions:
//redgreenbluealphadepthstencil
GLContextAttrs glContextAttrs = {8 8 8 8 24 8};
GLView::setGLContextAttrs(glContextAttrs);
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if(!glview) {
glview = GLViewImpl::create(“My Game“);
glview->setframeSize(640 320);
director->setOpenGLView(glview);
}
glview->setDesignResolutionSize(640 320 ResolutionPolicy::NO_BORDER);
// turn on display FPS
director->setDisplayStats(true);
// set FPS. the default value is 1.0/60 if you don‘t call this
director->setAnimationInterval(1.0 / 60);
// create a scene. it‘s an autorelease object
auto scene = WelcomeScene::createScene();
// run
director->runWithScene(scene);
return true;
}
// This function will be called when the app is inactive. When comes a phone callit‘s be invoked too
void AppDelegate::applicationDidEnterBackground() {
Director::getInstance()->stopAnimation();
// if you use SimpleAudioEngine it must be pause
// SimpleAudioEngine::getInstance()->pauseBackgroundMusic();
}
// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground() {
Director::getInstance()->startAnimation();
// if you use SimpleAudioEngine it must resume here
// SimpleAudioEngine::getInstance()->resumeBackgroundMusic();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4752 2014-10-16 23:03 Resources\123.png
文件 211720 2013-08-19 16:50 Resources\background.mp3
文件 25776 2014-10-15 20:16 Resources\fonts\Marker Felt.ttf
文件 445746 2014-10-22 18:26 Resources\gameover.png
文件 2662 2013-08-19 16:54 Resources\gold.mp3
文件 2415 2014-10-20 19:20 Resources\gold.png
文件 6086 2013-08-19 16:44 Resources\jump.mp3
文件 5499 2014-04-01 18:48 Resources\lightBtn.png
文件 278401 2013-08-22 14:55 Resources\MainBG.png
文件 174465 2013-08-19 10:10 Resources\Map00.png
文件 179489 2013-08-19 15:38 Resources\Map01.png
文件 6311 2014-04-01 18:48 Resources\norBtn.png
文件 3569 2014-10-18 17:00 Resources\Resources_Pack_0.plist
文件 65291 2014-10-18 17:00 Resources\Resources_Pack_0.png
文件 6232 2014-10-18 16:55 Resources\run01.png
文件 6320 2014-10-18 16:56 Resources\run02.png
文件 6421 2014-10-18 16:56 Resources\run03.png
文件 6814 2014-10-18 16:56 Resources\run04.png
文件 5928 2014-10-18 16:57 Resources\run05.png
文件 5632 2014-10-18 16:57 Resources\run06.png
文件 5361 2014-10-18 16:57 Resources\run07.png
文件 5550 2014-10-18 16:58 Resources\run08.png
文件 6055 2014-10-18 16:58 Resources\run09.png
文件 6404 2014-10-18 16:58 Resources\run10.png
文件 6114 2014-10-18 16:59 Resources\run11.png
文件 15430 2013-08-22 14:53 Resources\start_n.png
文件 18208 2013-08-22 14:55 Resources\start_s.png
文件 13240 2003-03-07 15:58 Resources\touch.wav
文件 1984 2014-10-20 16:08 Resources\wall.png
文件 1852 2014-10-15 22:45 Classes\AppDelegate.cpp
............此处省略28个文件信息
- 上一篇:计算机网络原理学习指导376页
- 下一篇:计算机网络实验报告 VOIP PJSIP
相关资源
- bp神经网络源代码,可直接运行
- 随机森林R语言代码
- 计算机图形学 边填充算法实现代码
- 直流无刷电机方波驱动 stm32 例程代码
- 仿知乎界面小程序源代码
- 贪吃蛇源代码.fla
- 周立功开发板ProASIC3实验-syn_FIFO代码
- IMX385驱动代码.zip
- dotnet 写字板 实验 源代码 不好请要不
- 图像二维小波变换的实现源代码
- 八三编码器设计 VHDL代码 简单,包附
- linux应用层的华容道游戏源代码
- 交通咨询模拟系统完整代码
- http请求状态代码
- 数值分析所有实验代码
- 网上拍卖系统完整源代码
- 音乐代码转换软件 单片机编程时用
- CSMA/CD等动画演示加源代码
- silicon lab公司的收音IC SI47XX全套开发工
- 用51单片机实现G代码翻译
- 合同管理系统的源代码(附数据库)
- 用VC 编写的仿QQ聊天室程序源代码
- web班级网站设计代码
- 38k单片机红外发送代码、keil
- STM32F103 串口程序(完整版)
- 网络唤醒代码
- VPC3_DPV1源代码,Profibus
- PB做的托盘程序(最小化后在左下角显
- RSA算法源码
- ubuntu9.10 可加载内核模块和字符设备驱
评论
共有 条评论