资源简介
游戏内是3D游戏场景,主角和boss都是3D模型,只是一个demo,创建一个cocos2d 3.10 的源代码项目然后把class和Resources目录替换然后就可以跑了。如果想打包到手机上跑,需要在Android.mk文件中添加所有的cpp文件。
代码片段和文件信息
#include “AppDelegate.h“
#include “menuScene.h“
#include “HelloWorldScene.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“);
director->setOpenGLView(glview);
}
director->getOpenGLView()->setDesignResolutionSize(960 640 ResolutionPolicy::SHOW_ALL);
//director->getOpenGLView()->setframeSize(960/2640/2);
// 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 = menuScene::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();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 380044 2019-05-17 13:58 Resources\11069.wav
文件 730636 2019-04-28 15:29 Resources\audio-hall.mp3
文件 3596 2019-05-15 11:00 Resources\CloseNormal.png
文件 2810 2019-05-15 11:00 Resources\CloseSelected.png
文件 2855 2014-10-31 11:17 Resources\effect\puffRing.plist
文件 6228 2014-10-31 11:17 Resources\effect\specialAttack.jpg
文件 2873 2014-10-31 11:17 Resources\effect\walkingPuff.plist
文件 10690 2014-10-31 11:17 Resources\effect\walkingPuff.png
文件 778552 2019-05-15 11:00 Resources\fonts\arial.ttf
文件 25776 2014-10-31 11:17 Resources\fonts\Marker Felt.ttf
文件 212729 2016-01-15 01:30 Resources\HelloWorld.png
文件 7948 2014-10-31 11:17 Resources\HUD\cr_reset.png
文件 18587 2014-10-31 11:17 Resources\HUD\gold.png
文件 1814 2014-10-31 11:17 Resources\HUD\GUI\labelatlasimg.png
文件 6991 2014-10-31 11:17 Resources\HUD\HUD.json
文件 1577 2017-11-06 16:35 Resources\HUD\kaishi.png
文件 4125 2017-10-23 09:38 Resources\HUD\zanting.png
文件 856 2014-10-31 11:17 Resources\maps\map1.xm
文件 184 2014-10-31 11:17 Resources\Menu\bg.png
文件 36193 2014-10-31 11:17 Resources\Menu\button.png
文件 25098 2014-10-31 11:17 Resources\Menu\GUI\missing-font.fnt
文件 110840 2014-10-31 11:17 Resources\Menu\GUI\missing-font.png
文件 6874 2019-05-15 16:17 Resources\Menu\Menu.json
文件 183686 2019-05-16 10:23 Resources\model\back_ground.jpg
文件 26938 2014-10-31 11:17 Resources\model\boss.c3b
文件 8263 2014-10-31 11:17 Resources\model\coin expo.c3b
文件 1138308 2014-10-31 11:17 Resources\model\coin-texture.jpg
文件 299802 2014-10-31 11:17 Resources\model\coin...jpeg
文件 1845 2014-10-31 11:17 Resources\model\coin.c3b
文件 20657 2014-10-31 11:17 Resources\model\coin.c3t
............此处省略246个文件信息
相关资源
- Android 3D游戏开发技术宝典 OpenGL ES2.
- Android3D游戏开发技术详解源代码(各
- AVPro Video 1.11.4.zip
- android使用jpct加载三维模型
- UMP (Android iOS) v1.7.2.1
- 3D俄罗斯方块
- java3D骰子实现
- Android OpenGL 3D 的使用Demo.rar
- java3D安装教程
- 3D坦克java
- java3D显示一个球的代码
- 利用Java3D1.4制成的动态爬山算法
- Java3D魔方代码
- 简单的JAVA 3D球编码
- Unity3D武士2源码扩展插件
- 北京联通全网有关网上订购和点播接
- alien3D游戏引擎源码类库
- Unity代码混淆加密插件 Obfuscator v2.0.
- Android中opengl es要实现Obj格式的3D导入
- DES+3DES加密算法java代码+图解
- 3des加解密
- Java 3D必备dll
- UI3DPlugin.zip
- obj模型,java3d加载
- unity3D 蓝牙插件 iOS & Android
- Unity3D AR生存射击游戏 完整源码 AR S
- java3d设置视点的初始位置
- 3D_Parallax_Wallpaper_Pro_v2.1.apk
- EasyMovieTexture 3.77-1.unitypackage
- 海信智能电视LED46K360X3D一键Root工具
评论
共有 条评论