91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 460KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-03
  • 語言: C/C++
  • 標簽: cocos2dx??C++??2048??游戲??

資源簡介

cocos2dx 3.17 寫的2048游戲,開發語言是C++,使用windows10+VS2017開發,樓主測試可以編譯安卓apk,只上傳了class和resource文件夾,大家自己新建個項目添加進去吧。 已知bug: 連續快速移動方塊數字會變大,正常使用不會,應該是動畫沒做判斷

資源截圖

代碼片段和文件信息

/****************************************************************************
?Copyright?(c)?2017-2018?Xiamen?Yaji?Software?Co.?Ltd.
?
?http://www.cocos2d-x.org
?
?Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
?of?this?software?and?associated?documentation?files?(the?“Software“)?to?deal
?in?the?Software?without?restriction?including?without?limitation?the?rights
?to?use?copy?modify?merge?publish?distribute?sublicense?and/or?sell
?copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is
?furnished?to?do?so?subject?to?the?following?conditions:
?
?The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
?all?copies?or?substantial?portions?of?the?Software.
?
?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
?AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER
?LIABILITY?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM
?OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
?THE?SOFTWARE.
?****************************************************************************/

#include?“AppDelegate.h“
#include?“HelloWorldScene.h“

//?#define?USE_AUDIO_ENGINE?1
//?#define?USE_SIMPLE_AUDIO_ENGINE?1

#if?USE_AUDIO_ENGINE?&&?USE_SIMPLE_AUDIO_ENGINE
#error?“Don‘t?use?AudioEngine?and?SimpleAudioEngine?at?the?same?time.?Please?just?select?one?in?your?game!“
#endif

#if?USE_AUDIO_ENGINE
#include?“audio/include/AudioEngine.h“
using?namespace?cocos2d::experimental;
#elif?USE_SIMPLE_AUDIO_ENGINE
#include?“audio/include/SimpleAudioEngine.h“
using?namespace?CocosDenshion;
#endif

USING_NS_CC;

static?cocos2d::Size?designResolutionSize?=?cocos2d::Size(480?320);
static?cocos2d::Size?smallResolutionSize?=?cocos2d::Size(480?320);
static?cocos2d::Size?mediumResolutionSize?=?cocos2d::Size(1024?768);
static?cocos2d::Size?largeResolutionSize?=?cocos2d::Size(2048?1536);

AppDelegate::AppDelegate()
{
}

AppDelegate::~AppDelegate()?
{
#if?USE_AUDIO_ENGINE
????AudioEngine::end();
#elif?USE_SIMPLE_AUDIO_ENGINE
????SimpleAudioEngine::end();
#endif
}

//?if?you?want?a?different?context?modify?the?value?of?glContextAttrs
//?it?will?affect?all?platforms
void?AppDelegate::initGLContextAttrs()
{
????//?set?OpenGL?context?attributes:?redgreenbluealphadepthstencilmultisamplesCount
????GLContextAttrs?glContextAttrs?=?{8?8?8?8?24?8?0};

????GLView::setGLContextAttrs(glContextAttrs);
}

//?if?you?want?to?use?the?package?manager?to?install?more?packages??
//?don‘t?modify?or?remove?this?function
static?int?register_all_packages()
{
????return?0;?//flag?for?packages?manager
}

bool?AppDelegate::applicationDidFinishLaunching()?{
????//?initialize?director
????auto?director?=?Director::getInstance();
????auto?glview?=?director->getOpenGLView();
????if(!glview)?{
#if?(CC_TARGET_PLATFO

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????5743??2018-07-02?23:40??Classes\AppDelegate.cpp

?????文件???????2225??2018-07-02?09:19??Classes\AppDelegate.h

?????文件???????3567??2018-07-02?23:42??Classes\Card.cpp

?????文件????????819??2018-07-02?22:50??Classes\Card.h

?????文件??????14114??2018-07-19?16:35??Classes\HelloWorldScene.cpp

?????文件???????2898??2018-07-19?14:52??Classes\HelloWorldScene.h

?????文件???????5400??2018-07-18?09:57??Classes\MyMsgBox.cpp

?????文件???????1792??2018-07-19?09:37??Classes\MyMsgBox.h

?????文件????????586??2018-07-19?09:25??Classes\RecordManager.cpp

?????文件????????258??2018-07-19?09:25??Classes\RecordManager.h

?????文件????????729??2018-07-02?20:36??Classes\StringManager.cpp

?????文件????????386??2018-07-02?20:16??Classes\StringManager.h

?????文件???????3596??2018-07-02?09:19??Resources\CloseNormal.png

?????文件???????2810??2018-07-02?09:19??Resources\CloseSelected.png

?????文件?????778552??2018-07-02?09:19??Resources\fonts\arial.ttf

?????文件??????25776??2018-07-02?09:19??Resources\fonts\Marker?Felt.ttf

?????文件??????37864??2018-07-02?09:19??Resources\HelloWorld.png

?????文件???????3890??2018-06-20?16:48??Resources\music\effect\move.mp3

?????文件???????1566??2018-07-02?16:04??Resources\pic\btn\msgbk.png

?????文件???????2871??2018-07-17?20:26??Resources\pic\btn\msgcancel.png

?????文件???????2492??2018-07-17?20:26??Resources\pic\btn\msgno.png

?????文件???????2786??2018-07-17?20:26??Resources\pic\btn\msgok.png

?????文件??????????0??2018-07-02?09:19??Resources\res\.gitkeep

?????文件????????151??2018-07-02?20:39??Resources\string\string.xml

?????目錄??????????0??2018-07-02?11:33??Resources\music\effect

?????目錄??????????0??2018-07-19?09:35??Resources\pic\btn

?????目錄??????????0??2018-07-02?09:19??Resources\fonts

?????目錄??????????0??2018-07-02?11:33??Resources\music

?????目錄??????????0??2018-07-02?16:04??Resources\pic

?????目錄??????????0??2018-07-02?09:19??Resources\res

............此處省略6個文件信息

評論

共有 條評論