cocos creator v1.9.3 开发的微信小游戏,附带QQ轻游戏相关代码(使用的VScode的qqextension 0.5.5版本),此资源仅供学习参考用途。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-19 22:17 SCS_20180803_QQ
文件 42 2018-10-10 13:58 SCS_20180803_QQgameConfig.json
目录 0 2018-10-25 17:28 SCS_20180803_QQMain
文件 1558 2018-07-06 09:18 SCS_20180803_QQMain.gitignore
目录 0 2018-10-30 11:30 SCS_20180803_QQMain.vscode
目录 0 2018-10-30 10:24 SCS_20180803_QQMain.vscodechrome
文件 303087 2018-07-07 17:19 SCS_20180803_QQMain.vscodechrome 01a5534-25c9-4930-badf-8881e6a917e3.tmp
文件 440473 2018-07-09 19:06 SCS_20180803_QQMain.vscodechrome 530b562-100a-4bc9-bd19-a1872f79af3c.tmp
文件 46775 2018-07-12 14:49 SCS_20180803_QQMain.vscodechrome107c2665-d41d-4e4e-8e6b-685775afac75.tmp
文件 41271 2018-07-10 10:23 SCS_20180803_QQMain.vscodechrome12b32513-d408-4625-a3c8-1318cd0d754b.tmp
文件 65441 2018-07-06 17:27 SCS_20180803_QQMain.vscodechrome17cee8fb-ea6e-4ef2-aae2-adc2efc974db.tmp
文件 49514 2018-07-13 16:46 SCS_20180803_QQMain.vscodechrome18ff7c6d-87df-4a67-af4a-fb3d34276b3a.tmp
文件 49369 2018-07-10 18:31 SCS_20180803_QQMain.vscodechrome22d92702-f797-4081-b6a5-a2a3a5eaf5df.tmp
文件 55237 2018-07-17 15:44 SCS_20180803_QQMain.vscodechrome2aec6e90-601d-401d-a5ad-6a21676d6d36.tmp
文件 339769 2018-07-07 10:35 SCS_20180803_QQMain.vscodechrome314af088-0c60-4a8e-9002-1e7097b40a92.tmp
文件 53882 2018-07-13 14:48 SCS_20180803_QQMain.vscodechrome31c16125-b2c3-4347-964f-8faed5ff068d.tmp
文件 352519 2018-07-07 12:54 SCS_20180803_QQMain.vscodechrome35faebc2-2316-4cca-accc-d4c21c1c1281.tmp
文件 47274 2018-07-12 15:54 SCS_20180803_QQMain.vscodechrome3a42f550-d070-4e85-aa22-4c39b061da4e.tmp
文件 313740 2018-07-06 17:58 SCS_20180803_QQMain.vscodechrome3b65a9fa-2703-4770-b098-9b87d6bf28b9.tmp
文件 72401 2018-07-09 17:23 SCS_20180803_QQMain.vscodechrome40ed755b-f2ed-4cff-a4a4-d78d334a5bdc.tmp
文件 52125 2018-07-08 10:58 SCS_20180803_QQMain.vscodechrome47e9313c-8f91-4532-89f1-3c397a858c99.tmp
文件 141270 2018-07-07 15:50 SCS_20180803_QQMain.vscodechrome49dcb931-46a1-4f09-a155-4cebc1dceb5d.tmp
文件 344555 2018-07-07 11:09 SCS_20180803_QQMain.vscodechrome58ff0941-756d-4a95-b5e3-962614adc133.tmp
文件 67012 2018-07-06 17:29 SCS_20180803_QQMain.vscodechrome5a407b29-d00e-4bcf-85e4-82274fbd47cd.tmp
文件 58482 2018-07-18 17:49 SCS_20180803_QQMain.vscodechrome5e13f960-e223-49d0-be6e-8ac532fc1672.tmp
文件 76566 2018-07-06 17:54 SCS_20180803_QQMain.vscodechrome60773228-a946-489b-a20e-6c0d4bacb914.tmp
文件 72207 2018-07-24 15:44 SCS_20180803_QQMain.vscodechrome6960e51e-dba2-4533-a213-fc8a3a9570c1.tmp
文件 50996 2018-07-10 10:20 SCS_20180803_QQMain.vscodechrome6affaa04-6de7-4522-9165-b9ebf0753d80.tmp
文件 58720 2018-07-11 15:38 SCS_20180803_QQMain.vscodechrome74cae75b-29ec-4cee-b2e7-c00d10c7ba65.tmp
文件 53712 2018-07-08 10:58 SCS_20180803_QQMain.vscodechrome7c7010c5-fcda-418f-a92b-af3d3b63674d.tmp
文件 45748 2018-07-12 18:14 SCS_20180803_QQMain.vscodechrome804107f9-eece-44fc-8699-71e049a8d35c.tmp
............此处省略2884个文件信息
#include “AppDelegate.h“
#include “cocos2d.h“
#include “cocos/scripting/js-bindings/manual/scriptingCore.h“
#include “cocos/scripting/js-bindings/manual/jsb_module_register.hpp“
#include “cocos/scripting/js-bindings/manual/jsb_global.h“
#include “cocos/scripting/js-bindings/jswrapper/SeApi.h“
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) && PACKAGE_AS
#include “SDKManager.h“
#include “jsb_anysdk_protocols_auto.hpp“
#include “manualanysdkbindings.hpp“
using namespace anysdk::framework;
#endif
USING_NS_CC;
AppDelegate::AppDelegate()
{
}
AppDelegate::~AppDelegate()
{
scriptEngineManager::destroyInstance();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) && PACKAGE_AS
SDKManager::getInstance()->purge();
#endif
}
void AppDelegate::initGLContextAttrs()
{
GLContextAttrs glContextAttrs = {8 8 8 8 24 8};
GLView::setGLContextAttrs(glContextAttrs);
}
bool AppDelegate::applicationDidFinishLaunching()
{
#if CC_TARGET_PLATFORM == CC_PLATFORM_IOS && PACKAGE_AS
SDKManager::getInstance()->loadAllPlugins();
#endif
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if(!glview) {
#if(CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
glview = GLViewImpl::create(“Main“);
#else
glview = GLViewImpl::createWithRect(“Main“ cocos2d::Rect(00900640));
#endif
director->setOpenGLView(glview);
}
// set FPS. the default value is 1.0/60 if you don‘t call this
director->setAnimationInterval(1.0 / 60);
scriptingCore* sc = scriptingCore::getInstance();
scriptEngineManager::getInstance()->setscriptEngine(sc);
se::scriptEngine* se = se::scriptEngine::getInstance();
jsb_set_xxtea_key(“5e37c5f6-80bc-44“);
jsb_init_file_operation_delegate();
#if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
// Enable debugger here
jsb_enable_debugger(“0.0.0.0“ 5086);
#endif
se->setExceptionCallback([](const char* location const char* message const char* stack){
// Send exception information to server like Tencent Bugly.
});
jsb_register_all_modules();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) && PACKAGE_AS
se->addRegisterCallback(register_all_anysdk_framework);
se->addRegisterCallback(register_all_anysdk_manual);
#endif
se->start();
jsb_run_script(“main.js“);
return true;
}
// This function will be called when the app is inactive. When comes a phone callit‘s be invoked too
void AppDelegate::applicationDidEnterBackground()
{
auto director = Director::getInstance();
director->stopAnimation();
director->getEventDispatcher()->dispatchCustomEvent(“game_on_hide“);
}
// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground()
{
auto director = Direc
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-19 22:17 SCS_20180803_QQ
文件 42 2018-10-10 13:58 SCS_20180803_QQgameConfig.json
目录 0 2018-10-25 17:28 SCS_20180803_QQMain
文件 1558 2018-07-06 09:18 SCS_20180803_QQMain.gitignore
目录 0 2018-10-30 11:30 SCS_20180803_QQMain.vscode
目录 0 2018-10-30 10:24 SCS_20180803_QQMain.vscodechrome
文件 303087 2018-07-07 17:19 SCS_20180803_QQMain.vscodechrome 01a5534-25c9-4930-badf-8881e6a917e3.tmp
文件 440473 2018-07-09 19:06 SCS_20180803_QQMain.vscodechrome 530b562-100a-4bc9-bd19-a1872f79af3c.tmp
文件 46775 2018-07-12 14:49 SCS_20180803_QQMain.vscodechrome107c2665-d41d-4e4e-8e6b-685775afac75.tmp
文件 41271 2018-07-10 10:23 SCS_20180803_QQMain.vscodechrome12b32513-d408-4625-a3c8-1318cd0d754b.tmp
文件 65441 2018-07-06 17:27 SCS_20180803_QQMain.vscodechrome17cee8fb-ea6e-4ef2-aae2-adc2efc974db.tmp
文件 49514 2018-07-13 16:46 SCS_20180803_QQMain.vscodechrome18ff7c6d-87df-4a67-af4a-fb3d34276b3a.tmp
文件 49369 2018-07-10 18:31 SCS_20180803_QQMain.vscodechrome22d92702-f797-4081-b6a5-a2a3a5eaf5df.tmp
文件 55237 2018-07-17 15:44 SCS_20180803_QQMain.vscodechrome2aec6e90-601d-401d-a5ad-6a21676d6d36.tmp
文件 339769 2018-07-07 10:35 SCS_20180803_QQMain.vscodechrome314af088-0c60-4a8e-9002-1e7097b40a92.tmp
文件 53882 2018-07-13 14:48 SCS_20180803_QQMain.vscodechrome31c16125-b2c3-4347-964f-8faed5ff068d.tmp
文件 352519 2018-07-07 12:54 SCS_20180803_QQMain.vscodechrome35faebc2-2316-4cca-accc-d4c21c1c1281.tmp
文件 47274 2018-07-12 15:54 SCS_20180803_QQMain.vscodechrome3a42f550-d070-4e85-aa22-4c39b061da4e.tmp
文件 313740 2018-07-06 17:58 SCS_20180803_QQMain.vscodechrome3b65a9fa-2703-4770-b098-9b87d6bf28b9.tmp
文件 72401 2018-07-09 17:23 SCS_20180803_QQMain.vscodechrome40ed755b-f2ed-4cff-a4a4-d78d334a5bdc.tmp
文件 52125 2018-07-08 10:58 SCS_20180803_QQMain.vscodechrome47e9313c-8f91-4532-89f1-3c397a858c99.tmp
文件 141270 2018-07-07 15:50 SCS_20180803_QQMain.vscodechrome49dcb931-46a1-4f09-a155-4cebc1dceb5d.tmp
文件 344555 2018-07-07 11:09 SCS_20180803_QQMain.vscodechrome58ff0941-756d-4a95-b5e3-962614adc133.tmp
文件 67012 2018-07-06 17:29 SCS_20180803_QQMain.vscodechrome5a407b29-d00e-4bcf-85e4-82274fbd47cd.tmp
文件 58482 2018-07-18 17:49 SCS_20180803_QQMain.vscodechrome5e13f960-e223-49d0-be6e-8ac532fc1672.tmp
文件 76566 2018-07-06 17:54 SCS_20180803_QQMain.vscodechrome60773228-a946-489b-a20e-6c0d4bacb914.tmp
文件 72207 2018-07-24 15:44 SCS_20180803_QQMain.vscodechrome6960e51e-dba2-4533-a213-fc8a3a9570c1.tmp
文件 50996 2018-07-10 10:20 SCS_20180803_QQMain.vscodechrome6affaa04-6de7-4522-9165-b9ebf0753d80.tmp
文件 58720 2018-07-11 15:38 SCS_20180803_QQMain.vscodechrome74cae75b-29ec-4cee-b2e7-c00d10c7ba65.tmp
文件 53712 2018-07-08 10:58 SCS_20180803_QQMain.vscodechrome7c7010c5-fcda-418f-a92b-af3d3b63674d.tmp
文件 45748 2018-07-12 18:14 SCS_20180803_QQMain.vscodechrome804107f9-eece-44fc-8699-71e049a8d35c.tmp
............此处省略2884个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)