资源简介
COCOS-2D的小游戏,内容说明+注释,并付APK文件,工程太大无法上传,只上传了.CPP和.H

代码片段和文件信息
#include “AppDelegate.h“
#include “HelloWorldScene.h“
#include “MyNewClass.h“
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
director->setDepthTest(false);
if(!glview) {
glview = GLView::create(“My Game“);
director->setOpenGLView(glview);
}
//
//glview->setframeSize(320480);
//glview->setframeZoomFactor(1.0f);
glview->setDesignResolutionSize(320.0480.0ResolutionPolicy::SHOW_ALL );
std::vectorsearchPath;searchPath.push_back(“w640“);
CCFileUtils::getInstance()->setSearchPaths(searchPath);
// director->setContentScaleFactor(640.0/320.0);
// 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 / 600);
// create a scene. it‘s an autorelease object
// auto scene = HelloWorld::createScene();
auto newscene = MyNewClass::createScene();
director->runWithScene(newscene);
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();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6311 2014-04-01 18:48 Resources\CloseNormal.png
文件 5499 2014-04-01 18:48 Resources\CloseSelected.png
文件 25776 2014-04-01 18:48 Resources\fonts\Marker Felt.ttf
文件 138777 2014-04-01 18:48 Resources\HelloWorld.png
文件 111854 2014-05-11 15:01 Resources\p1.png
文件 4419 2010-11-10 05:21 Resources\dog.png
文件 3473 2010-11-10 05:29 Resources\turtle.png
文件 3940 2010-11-10 06:43 Resources\bird.png
文件 4124 2010-11-10 05:21 Resources\cat.png
文件 11985 2014-05-17 11:22 Resources\start1.png
文件 13977 2014-05-17 11:21 Resources\restart1.png
文件 611588 2014-05-15 17:04 Resources\blue1.png
文件 46709 2014-05-15 17:13 Resources\EndGame.png
文件 159 2014-05-15 16:17 Resources\unit.1png
文件 353 2014-05-12 22:12 Resources\redblock1.png
文件 11781 2014-05-17 13:46 Resources\restart.png
文件 4776 2014-05-17 11:18 Resources\redblock1 (2).png
文件 82058 2014-03-08 13:17 Resources\ti
文件 6865 2014-05-17 22:41 Resources\high score.png
文件 157263 2014-05-17 19:44 Resources\blue.png
文件 10618 2014-05-17 18:48 Resources\start1 (2).png
文件 5776 2014-05-17 22:42 Resources\start.png
文件 6136 2014-05-17 19:08 Resources\unit.png
文件 4526 2014-05-17 13:48 Resources\redblock1 (3).png
文件 8294 2014-05-22 10:25 Resources\redblock.png
文件 26371 2014-05-22 10:37 Resources\m_list.png
文件 2664 2014-05-22 10:37 Resources\m_list.plist
文件 2874046 2014-05-19 12:31 hello.apk
文件 144 2014-05-27 16:25 使用说明.txt
文件 1848 2014-05-27 16:22 Classes\AppDelegate.cpp
............此处省略22个文件信息
- 上一篇:真正编译好的poppler-qt4
- 下一篇:DEA-SOLVER
相关资源
- flash3.0小游戏
- scratch3.0 源程序(说相声)
- The Secret Path 3D 3D魔方迷宫[源码][scra
- 组态王驱动开发包3.0.0.7(中文)
- 音创V3.0豪华版注册机
- scratch3.0 朗读语音文本
- Scrach3.0 跳一跳小游戏
- scratch3.0 投篮练习
- scratch 打地鼠
- 飞行棋(scratch3.0)
- 飞翔的小鸟(scratch3.0)
- 飞机大战(scratch3.0)
- ASUS华硕K45VD|A45VD主板驱动程序 v9.3.0
- CMPP3.0模拟网关,绝对好用,自己测试
- 目前最全的203页DNP3_0规约.pdf
- Windows 3.0 安装软盘(3.5 720k)
- pdfdo password remover 3.0破解汉化绿色版
- frp内网穿透工具 v0.33.0
- 最新WebShell管理工具增强版3.0
- USB Power Delivery 2.0与3.0区别
- 二代证读验机具usb驱动 v3.0 官方版
- 思科企业数据中心3.0应用解决方案
- 英特尔USB3.0可扩展主机控制器驱动程
- ZCMS弹出框架最新版3.0.rar
- 英特尔主板驱动(Intel Chipset Device S
- WINDOWS7/2008/2012手动集成USB3.0驱动
- 宏碁acer USB3.0官方驱动
- Behavior Designer 1.6.3(u2018.3.0).unitypa
- 海康摄像头+web3.0开发包SDK的demo
- USB3.0 WIN7 64位驱动
评论
共有 条评论