• 大小: 12.65MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-16
  • 语言: C/C++
  • 标签: cocos  c++  

资源简介

c++语言六角消除游戏源码,自己写的六角消除游戏,地图生成,投影,消行策略可提供参考!!!!!!!!!

资源截图

代码片段和文件信息

#include “AppDelegate.h“
#include “GameScene.h“

USING_NS_CC;

AppDelegate::AppDelegate() {

}

AppDelegate::~AppDelegate() 
{
Configuration::getInstance()->destroyInstance();
scriptEngineManager::getInstance()->destroyInstance();
PoolManager::getInstance()->destroyInstance();
}

bool AppDelegate::applicationDidFinishLaunching() {
    // initialize director
    auto director = Director::getInstance();
    auto glview = director->getOpenGLView();
    if(!glview) {
        glview = GLView::create(“My Game“);
glview->setframeSize(960 640);
        director->setOpenGLView(glview);
    }

    // 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 = GameScene::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();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-23 04:58  HexFrvr-cosX-master\
     目录           0  2017-04-23 04:58  HexFrvr-cosX-master\Classes\
     文件        1547  2017-04-23 04:58  HexFrvr-cosX-master\Classes\AppDelegate.cpp
     文件         947  2017-04-23 04:58  HexFrvr-cosX-master\Classes\AppDelegate.h
     文件        1277  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Block.cpp
     文件         584  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Block.h
     文件       16758  2017-04-23 04:58  HexFrvr-cosX-master\Classes\BlockShape.cpp
     文件         861  2017-04-23 04:58  HexFrvr-cosX-master\Classes\BlockShape.h
     文件        1637  2017-04-23 04:58  HexFrvr-cosX-master\Classes\GameOverlayer.cpp
     文件         328  2017-04-23 04:58  HexFrvr-cosX-master\Classes\GameOverlayer.h
     文件       14520  2017-04-23 04:58  HexFrvr-cosX-master\Classes\GameScene.cpp
     文件        1027  2017-04-23 04:58  HexFrvr-cosX-master\Classes\GameScene.h
     文件        1015  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Global.h
     文件        3781  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Maplayer.cpp
     文件         591  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Maplayer.h
     文件         122  2017-04-23 04:58  HexFrvr-cosX-master\Classes\ScoreInfo.h
     文件        5212  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Shapelayer.cpp
     文件         509  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Shapelayer.h
     文件        5085  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Statuslayer.cpp
     文件         517  2017-04-23 04:58  HexFrvr-cosX-master\Classes\Statuslayer.h
     文件         139  2017-04-23 04:58  HexFrvr-cosX-master\README.md
     目录           0  2017-04-23 04:58  HexFrvr-cosX-master\Resources\
     文件       49510  2017-04-23 04:58  HexFrvr-cosX-master\Resources\QQ截图20170416185300.png
     文件        1147  2017-04-23 04:58  HexFrvr-cosX-master\Resources\block.png
     文件        5853  2017-04-23 04:58  HexFrvr-cosX-master\Resources\dialog.png
     文件        1029  2017-04-23 04:58  HexFrvr-cosX-master\Resources\favicon.ico
     目录           0  2017-04-23 04:58  HexFrvr-cosX-master\Resources\fonts\
     文件       25776  2017-04-23 04:58  HexFrvr-cosX-master\Resources\fonts\Marker Felt.ttf
     文件     9751960  2017-04-23 04:58  HexFrvr-cosX-master\Resources\fonts\simhei.ttf
     文件       12531  2017-04-23 04:58  HexFrvr-cosX-master\Resources\jixunvli.png
     文件       12406  2017-04-23 04:58  HexFrvr-cosX-master\Resources\ku.png
............此处省略49个文件信息

评论

共有 条评论