• 大小: 78.12MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-02-28
  • 语言: Java
  • 标签: cocos2d  3D  酷跑  跑酷  

资源简介

游戏内是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.xml

     文件        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个文件信息

评论

共有 条评论