暂时最后版本提交
This commit is contained in:
parent
0563074283
commit
15554d15c0
|
@ -2302,7 +2302,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 480,
|
||||
"width": 432,
|
||||
"height": 135.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -2356,7 +2356,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "你是后羿,需要驱逐太阳,\n制止这场浩劫。",
|
||||
"_N$string": "你是后羿,需要驱逐太阳,\n制止这场浩劫。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -3354,7 +3354,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 520,
|
||||
"width": 468,
|
||||
"height": 75.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -3408,7 +3408,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "记住屏幕中太阳出现的顺序。",
|
||||
"_N$string": "记住屏幕中太阳出现的顺序。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -4311,7 +4311,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 560,
|
||||
"width": 504,
|
||||
"height": 75.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -4365,7 +4365,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "按照太阳的出现顺序依次点击。",
|
||||
"_N$string": "按照太阳的出现顺序依次点击。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -5265,7 +5265,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 560,
|
||||
"width": 576,
|
||||
"height": 195.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -5319,7 +5319,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "太厉害了,你已经成功驱逐了太阳。\n神弓法力只有2分钟,\n接下来请继续帮助苍生吧!",
|
||||
"_N$string": "太厉害了,你已经成功驱逐了太阳。\n神弓法力只有2分钟,\n接下来请继续帮助苍生吧!",
|
||||
"_fontSize": 35,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
|
|
@ -1359,7 +1359,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9615103c-b027-48c9-b2a6-4d01e594a784"
|
||||
"__uuid__": "e8db2543-6af9-4173-a369-6cafed03a0eb"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 1,
|
||||
|
@ -1372,9 +1372,7 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "f683b01d-4d4a-4b64-a054-741e0785d512"
|
||||
},
|
||||
"_atlas": null,
|
||||
"_id": "e3tnncQgtFn49iTBzwCpMN"
|
||||
},
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -984,7 +984,6 @@ export default class GameManager extends cc.Component {
|
|||
"reactionTime": time,
|
||||
"totalSunCount": GameData._instance.GM_INFO.total,
|
||||
"success": GameData._instance.GM_INFO.success
|
||||
|
||||
};
|
||||
HttpUtil.rankData(1,function(){},postData);
|
||||
this.node.getChildByName("GameOver").active = true;
|
||||
|
|
|
@ -47,8 +47,8 @@ export default class NewClass extends cc.Component {
|
|||
.call(() =>{
|
||||
this.custom += 1;
|
||||
if(type != 0) this.custom = 2;
|
||||
if( this.custom == 2) this.createSun1();
|
||||
else if( this.custom == 3) this.createSun2();
|
||||
if( this.custom == 2) this.createSun(true);
|
||||
else if( this.custom == 3) this.createSun(false);
|
||||
else if( this.custom == 4) this.begin = true;
|
||||
else if( this.custom == 5) cc.director.loadScene("GameScene");
|
||||
})
|
||||
|
|
|
@ -57,7 +57,7 @@ export default class ItemRender extends cc.Component {
|
|||
.catch(error => {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
cc.assetManager.loadRemote(url, {ext:'.jpg'},(err, texture:cc.Texture2D) => {
|
||||
cc.assetManager.loadRemote(url, {ext:'.png'},(err, texture:cc.Texture2D) => {
|
||||
if(texture){
|
||||
this.node.getChildByName("pic").getChildByName("pic").active= true;
|
||||
var sprite = this.node.getChildByName("pic").getChildByName("pic").getComponent(cc.Sprite);
|
||||
|
|
|
@ -12,47 +12,52 @@ export default class NewClass extends cc.Component {
|
|||
|
||||
//鉴权,判断有无缓存userid,有的话判断是否过期,没有的话重新获取userid 并且缓存上
|
||||
private Authentication(){
|
||||
let userId = StorageMessage.getStorage("user");
|
||||
if(userId == "undifend" || userId==null || userId == ""){
|
||||
this.setUserId();
|
||||
let name = "user_" + GameData._instance.GM_INFO.gameId;
|
||||
let data = StorageMessage.getStorage(name);
|
||||
if(data == "undifend" || data==null || data == ""){
|
||||
console.log("没缓存");
|
||||
this.setUserId(name);
|
||||
}
|
||||
else{
|
||||
let data = StorageMessage.getStorage("user");
|
||||
data = this.getUserId(data);
|
||||
console.log("有缓存");
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
if((timestamp - data[2]) > 86400){
|
||||
this.setUserId();
|
||||
if((timestamp - data.time) > 86400){
|
||||
console.log("缓存过期");
|
||||
this.setUserId(name);
|
||||
return;
|
||||
}
|
||||
GameData._instance.GM_INFO.userId = parseInt(data[1]);
|
||||
GameData._instance.GM_INFO.userId = parseInt(data.userId);
|
||||
}
|
||||
}
|
||||
//设置userId,链接有获取,没有跳转授权
|
||||
private setUserId(){
|
||||
GameData._instance.GM_INFO.userId = this.getUserId(null);
|
||||
private setUserId(name){
|
||||
GameData._instance.GM_INFO.userId = this.getUserId();
|
||||
if(GameData._instance.GM_INFO.userId == null){
|
||||
console.log("链接没ID准备跳转");
|
||||
let url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+location.href;
|
||||
window.location.href = url;
|
||||
}
|
||||
else{
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
let idTemp = "gameId=" + GameData._instance.GM_INFO.gameId +
|
||||
"?userId= " + GameData._instance.GM_INFO.userId + "?time=" + timestamp;
|
||||
StorageMessage.setStorage("user",idTemp);
|
||||
let idData = {
|
||||
userId: GameData._instance.GM_INFO.userId + "",
|
||||
time: timestamp
|
||||
}
|
||||
StorageMessage.setStorage(name,idData);
|
||||
console.log("有ID:",GameData._instance.GM_INFO.userId);
|
||||
GameData._instance.GM_INFO.userId = parseInt(GameData._instance.GM_INFO.userId);
|
||||
}
|
||||
}
|
||||
//获取user id 有参数为获取gameid userid 时间戳, 无参数为只获取链接尾缀上的userId
|
||||
private getUserId(str) {
|
||||
private getUserId() {
|
||||
let pathStr = window.location.search;
|
||||
let arr=pathStr.split("&");
|
||||
if(str != null) arr=pathStr.split("?");
|
||||
if (pathStr.length>= 0&&arr.length>0) {
|
||||
let arr2=[];
|
||||
arr.map(item=>{
|
||||
arr2.push(item.split("=")[1])
|
||||
})
|
||||
return str == null ? arr2[0]:arr2;
|
||||
return arr2[0];
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
|
@ -70,5 +75,7 @@ export default class NewClass extends cc.Component {
|
|||
openRank(){
|
||||
cc.director.loadScene("RankScene");
|
||||
}
|
||||
|
||||
|
||||
protected update(dt: number): void {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@ export default class RankManager extends cc.Component {
|
|||
}
|
||||
//实际设置排行数据
|
||||
getRankData(data){
|
||||
|
||||
if(data){
|
||||
console.log(data);
|
||||
this.listData = data.data.list;
|
||||
|
@ -145,7 +146,7 @@ export default class RankManager extends cc.Component {
|
|||
console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
var self = this;
|
||||
cc.assetManager.loadRemote(pic, {ext:'.jpg'},(err, texture:cc.Texture2D) => {
|
||||
cc.assetManager.loadRemote(pic, {ext:'.png'},(err, texture:cc.Texture2D) => {
|
||||
self.Player.opacity = 255;
|
||||
if(texture){
|
||||
self.phone.node.active = true;
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
//缓存浏览器数据
|
||||
var StorageMessage = {
|
||||
getStorage : function(key){
|
||||
var result = null;
|
||||
if(cc.sys.localStorage.getItem(key)){
|
||||
var result = cc.sys.localStorage.getItem(key);
|
||||
}
|
||||
|
||||
if(result){
|
||||
result = JSON.parse(result);
|
||||
}
|
||||
return result;
|
||||
},
|
||||
setStorage : function(key,value){
|
||||
//主动拉起分享接口
|
||||
var temp = JSON.stringify(value);
|
||||
cc.sys.localStorage.setItem(key, temp)
|
||||
},
|
||||
removeStorage : function(key){
|
||||
//主动删除消息接口
|
||||
if(cc.sys.localStorage.getItem(key)){
|
||||
cc.sys.localStorage.removeItem(key)
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export { StorageMessage };
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "f124c672-2895-4f3e-86ec-14a468f946a6",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
5454
assets/prefab/Canvas.prefab
Normal file
5454
assets/prefab/Canvas.prefab
Normal file
File diff suppressed because it is too large
Load Diff
9
assets/prefab/Canvas.prefab.meta
Normal file
9
assets/prefab/Canvas.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "1f9265d6-31fa-4638-be80-340517745006",
|
||||
"importer": "prefab",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"readonly": false,
|
||||
"subMetas": {}
|
||||
}
|
BIN
assets/res/rankBtn.png
Normal file
BIN
assets/res/rankBtn.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
38
assets/res/rankBtn.png.meta
Normal file
38
assets/res/rankBtn.png.meta
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "5932ca98-ee86-44cb-bd49-7947b2c92fd9",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 126,
|
||||
"height": 140,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"rankBtn": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "e8db2543-6af9-4173-a369-6cafed03a0eb",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "5932ca98-ee86-44cb-bd49-7947b2c92fd9",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 126,
|
||||
"height": 140,
|
||||
"rawWidth": 126,
|
||||
"rawHeight": 140,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -149,42 +149,46 @@
|
|||
if (typeof VConsole !== 'undefined') {
|
||||
window.vConsole = new VConsole();
|
||||
}
|
||||
|
||||
var debug = window._CCSettings.debug;
|
||||
// var splash = document.getElementById('splash');
|
||||
// splash.style.display = 'block';
|
||||
var userId = null;
|
||||
var urlNow = window.location.href;
|
||||
//更改测试链接标题
|
||||
if(containsNanana(urlNow) == true){
|
||||
document.title = "后裔逐日 | 测试环境";
|
||||
}
|
||||
|
||||
// 示例使用
|
||||
var title = document.getElementsByTagName('title')[0].innerText;
|
||||
userId = JSON.parse(localStorage.getItem("user"));
|
||||
if(userId == "undifend" || userId==null || userId == ""){
|
||||
setId();
|
||||
}
|
||||
else{
|
||||
let data = JSON.parse(localStorage.getItem("user"));
|
||||
data = getId(data);
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
if((timestamp - data[2]) > 86400){
|
||||
setId();
|
||||
}
|
||||
}
|
||||
|
||||
function setId(){
|
||||
// 存储gameid userid gameid为key userId和时间戳为value
|
||||
let name = "user_" + "100009";
|
||||
var data = JSON.parse(localStorage.getItem(name));
|
||||
|
||||
if(data == "undifend" || data==null || data == ""){
|
||||
console.log("没缓存");
|
||||
setId(name);
|
||||
}
|
||||
else{
|
||||
console.log("有缓存");
|
||||
userId = data.userId;
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
if((timestamp - data.time) > 86400){
|
||||
console.log("缓存过期");
|
||||
setId(name);
|
||||
}
|
||||
}
|
||||
function setId(name){
|
||||
let userId = getUserId();
|
||||
if(userId == null){
|
||||
console.log("链接没ID准备跳转");
|
||||
let url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+location.href;
|
||||
window.location.href = url;
|
||||
}
|
||||
else{
|
||||
console.log("链接有ID",userId);
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
let idTemp = "gameId=" + "100009" +
|
||||
"?userId= " + userId + "?time=" + timestamp;
|
||||
localStorage.setItem("user",JSON.stringify(idTemp));
|
||||
let idData = {
|
||||
userId: userId,
|
||||
time: timestamp
|
||||
}
|
||||
localStorage.setItem(name,JSON.stringify(idData));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -205,21 +209,6 @@
|
|||
document.body.appendChild(domScript);
|
||||
}
|
||||
|
||||
function getId(str) {
|
||||
let pathStr = str;
|
||||
|
||||
let arr=pathStr.split("?");
|
||||
if (pathStr.length>= 0&&arr.length>0) {
|
||||
let arr2=[];
|
||||
arr.map(item=>{
|
||||
arr2.push(item.split("=")[1])
|
||||
})
|
||||
return arr2;
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
function getUserId() {
|
||||
let pathStr = window.location.search;
|
||||
let arr=pathStr.split("&");
|
||||
|
@ -228,16 +217,14 @@
|
|||
arr.map(item=>{
|
||||
arr2.push(item.split("=")[1])
|
||||
})
|
||||
console.log("网站拿到的数据:",arr2[0])
|
||||
window.userId = arr2[0] + "";
|
||||
return arr2[0];
|
||||
return arr2[0]
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.js', function () {
|
||||
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
|
||||
loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
|
||||
|
|
|
@ -13,17 +13,8 @@ window.boot = function () {
|
|||
// Loading splash scene
|
||||
var splash = document.getElementById('splash');
|
||||
var star = document.getElementById('_star');
|
||||
// var progressBar = splash.querySelector('.progress-bar span');
|
||||
onProgress = function (finish, total) {
|
||||
// var percent = 100 * finish / total;
|
||||
// if (progressBar) {
|
||||
// progressBar.style.width = percent.toFixed(2) + '%';
|
||||
// }
|
||||
};
|
||||
// splash.style.display = 'block';
|
||||
// progressBar.style.width = '0%';
|
||||
|
||||
|
||||
cc.director.once(cc.Director.EVENT_AFTER_SCENE_LAUNCH, function () {
|
||||
splash.style.display = 'none';
|
||||
star.style.display = 'none';
|
||||
|
@ -31,11 +22,8 @@ window.boot = function () {
|
|||
}
|
||||
|
||||
var onStart = function () {
|
||||
|
||||
console.log(RESOURCES);
|
||||
cc.view.enableRetina(true);
|
||||
cc.view.resizeWithBrowserSize(true);
|
||||
|
||||
if (cc.sys.isBrowser) {
|
||||
setLoadingDisplay();
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
|||
{"paths":{},"types":[],"uuids":["a2MjXRFdtLlYQ5ouAFv/+R","14K23Xm1ROrrsGMBKG1Ql4","29FYIk+N1GYaeWH/q1NxQO","2dL3kvpAxJu6GJ7RdqJG5J","37ND3actNCqZoLzr1NBiTF","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","77SCm7Ej5ItpMOaz4CSRUG","9cCAYtTPFLbqi6SjiBzH59","d3OhOXdm5P4JNse7X8GMGe","e97GVMl6JHh5Ml5qEDdSGa","f0BIwQ8D5Ml7nTNQbh1YlS","02delMVqdBD70a/HSD99FK","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","13EQ5PNYdOa4gRDKFsrIFJ","167IfY0HdDyZdtlLDeaDkg","1fwAIEeM1Nn7i705Pdg5L5","23CIt+PSBBMJopNtpbffXh","27FeLB8OpGcaDrf9NiEDKz","28Gg0A8X1JHpYnbH9vZIzV","29G9ngwKpNW56EfZdKv0SX","2aJVC/rshLnpvG+lkallqC","2cyTcZvcZP7rjmchhWREEu","3aIyOI2NxPeaHqgvY4W3zi","3fgys9roZKo5OdfZn0T4Fo","432ND8vGNFM4/Pxt+hVLkb","48Foz8zQZDfLObHQegvteG","4cuYcoe7tPiIdp6gbSnrvF","4c7tzGCVNKE5yvOmzu4CXt","57X2D8NaxKHZ7D/uwxGBCK","59Sn0ZhhJHf7HX55ZqGeqE","5aBm0rBa9Gxr8lWEiz8nAb","5bsctimnBNw4onIGVsCfsU","5cO7kybDxGj4ipyMYdRYZB","5eUVg3ZQ5FhKCJ4qAl42w5","5f5dyqtRNNxaFmVzYns6FZ","61cyPdEfRN047sDK9rO0W5","61c+AvZ7lJH4DcNNAnJ//N","63m/tYswFOS7sCMuQGQ4kn","651MDCXIFPuZKQK1+nWOzk","6bdOTGFcVFZo3U+lI6FYmL","6cyjAC9cJDE6x1PK28Td4v","6eoolBkxxPvof0z1pzKU+w","70mY8jP3NKVonyvxI9/f6z","70ym98iPBE8ZqzOxwNBCmV","71VhFCTINJM6/Ky3oX9nBT","818w6dGPRH+rXb8KDTjDgq","8cv+mgkU9OTIB7sHOwnyZ8","8eZObX1ehJkKU3GR/hPgya","8eo+QfsThNk7a0r8Ilro8q","93XHrCUNdAwJfBzyLGAOJ5","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","96FRA8sCdIybKmTQHllKeE","99vgruzGRMmJOIRLdPaQYs","9bvaMerUlDyary99mJa6xp","9cBsd3MbFMC56GS/sJnS6r","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","adR/bBScVC/bM24V3TdrfL","adULT7sm1JR6vTV/oW1JIb","adrVhydQhMD7nhiXljhNId","b4P/PCArtIdIH38t6mlw8Y","bcITWltAtAD4sUjinM7HdJ","c6VxSCRHRB+qS91aK866px","ceNMgtpZhCsKd8anXNKd7b","d1MjdySrJFJ70gUB/k+5cj","d4gMhswKRJuotFXwDetRF4","d608qFRoFHwbXd0Dap056i","d7kiZgBYNPyIwqRjgGX7l0","d8HsitJHxOYqo801xBk8ev","ddnWn8vDxCOZaOnG9OVNnP","deq5vhWmZCFJ97k3T54cZ0","e7CzEDg/FMZpCTGJfBpdSu","e8Ueib+qJEhL6mXAHdnwbi","ecpdLyjvZBwrvm+cedCcQy","eezChet5VG27PW9q3qdOpv","f1O5RoDlhGrI6+/w3NObrX","f7ZJEQGfdJraVAIIAn8NFW"],"scenes":{"db://assets/Scene/GameScene.fire":6,"db://assets/Scene/GuideScene.fire":7,"db://assets/Scene/LoadScene.fire":8,"db://assets/Scene/OverScene.fire":5,"db://assets/Scene/RankScene.fire":3},"redirect":[12,0,13,1,14,1,16,1,19,1,22,1,23,1,26,1,32,1,33,1,38,1,42,1,44,1,48,1,50,1,52,1,53,1,54,1,55,1,57,1,58,1,59,1,61,1,64,1,65,1,66,1,70,1,73,1,76,0,78,1],"deps":["internal","resources"],"packs":{"03fae53b0":[17,21,27,37,39,40,46,51,62,63,68,69,71,75,77,79],"05b7e0d6d":[1,5,30],"05f3c1ca4":[4,7,0,67,9],"0b36acb24":[18,2,41,45,49,8,0,74,10,11],"0cd1ec7f1":[43,72],"0d7de01d8":[15,20,2,4,24,25,28,29,6,35,47,0,9,10,11],"0e0598680":[1,3,31,34,36,56,60]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false}
|
||||
{"paths":{},"types":[],"uuids":["a2MjXRFdtLlYQ5ouAFv/+R","14K23Xm1ROrrsGMBKG1Ql4","29FYIk+N1GYaeWH/q1NxQO","2dL3kvpAxJu6GJ7RdqJG5J","37ND3actNCqZoLzr1NBiTF","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","77SCm7Ej5ItpMOaz4CSRUG","9cCAYtTPFLbqi6SjiBzH59","d3OhOXdm5P4JNse7X8GMGe","e97GVMl6JHh5Ml5qEDdSGa","f0BIwQ8D5Ml7nTNQbh1YlS","02delMVqdBD70a/HSD99FK","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","13EQ5PNYdOa4gRDKFsrIFJ","167IfY0HdDyZdtlLDeaDkg","1fwAIEeM1Nn7i705Pdg5L5","23CIt+PSBBMJopNtpbffXh","27FeLB8OpGcaDrf9NiEDKz","28Gg0A8X1JHpYnbH9vZIzV","29G9ngwKpNW56EfZdKv0SX","2aJVC/rshLnpvG+lkallqC","2cyTcZvcZP7rjmchhWREEu","3aIyOI2NxPeaHqgvY4W3zi","3fgys9roZKo5OdfZn0T4Fo","432ND8vGNFM4/Pxt+hVLkb","48Foz8zQZDfLObHQegvteG","4cuYcoe7tPiIdp6gbSnrvF","4c7tzGCVNKE5yvOmzu4CXt","57X2D8NaxKHZ7D/uwxGBCK","59Sn0ZhhJHf7HX55ZqGeqE","5aBm0rBa9Gxr8lWEiz8nAb","5bsctimnBNw4onIGVsCfsU","5cO7kybDxGj4ipyMYdRYZB","5eUVg3ZQ5FhKCJ4qAl42w5","5f5dyqtRNNxaFmVzYns6FZ","61cyPdEfRN047sDK9rO0W5","61c+AvZ7lJH4DcNNAnJ//N","63m/tYswFOS7sCMuQGQ4kn","651MDCXIFPuZKQK1+nWOzk","6cyjAC9cJDE6x1PK28Td4v","6eoolBkxxPvof0z1pzKU+w","70mY8jP3NKVonyvxI9/f6z","71VhFCTINJM6/Ky3oX9nBT","818w6dGPRH+rXb8KDTjDgq","8cv+mgkU9OTIB7sHOwnyZ8","8eZObX1ehJkKU3GR/hPgya","8eo+QfsThNk7a0r8Ilro8q","93XHrCUNdAwJfBzyLGAOJ5","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","96FRA8sCdIybKmTQHllKeE","99vgruzGRMmJOIRLdPaQYs","9bvaMerUlDyary99mJa6xp","9cBsd3MbFMC56GS/sJnS6r","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","adR/bBScVC/bM24V3TdrfL","adULT7sm1JR6vTV/oW1JIb","adrVhydQhMD7nhiXljhNId","b4P/PCArtIdIH38t6mlw8Y","bcITWltAtAD4sUjinM7HdJ","c6VxSCRHRB+qS91aK866px","ceNMgtpZhCsKd8anXNKd7b","d1MjdySrJFJ70gUB/k+5cj","d608qFRoFHwbXd0Dap056i","d7kiZgBYNPyIwqRjgGX7l0","d8HsitJHxOYqo801xBk8ev","ddnWn8vDxCOZaOnG9OVNnP","deq5vhWmZCFJ97k3T54cZ0","e7CzEDg/FMZpCTGJfBpdSu","e8Ueib+qJEhL6mXAHdnwbi","ecpdLyjvZBwrvm+cedCcQy","eezChet5VG27PW9q3qdOpv","f1O5RoDlhGrI6+/w3NObrX","f7ZJEQGfdJraVAIIAn8NFW"],"scenes":{"db://assets/Scene/GameScene.fire":6,"db://assets/Scene/GuideScene.fire":7,"db://assets/Scene/LoadScene.fire":8,"db://assets/Scene/OverScene.fire":5,"db://assets/Scene/RankScene.fire":3},"redirect":[12,0,13,1,14,1,16,1,19,1,22,1,23,1,26,1,32,1,33,1,38,1,41,1,43,1,46,1,48,1,50,1,51,1,52,1,53,1,55,1,56,1,57,1,59,1,62,1,63,1,64,1,67,1,70,1,73,0,75,1],"deps":["internal","resources"],"packs":{"04d3bacdc":[17,21,27,37,39,40,44,49,60,61,66,68,72,74,76],"05b7e0d6d":[1,5,30],"05f3c1ca4":[4,7,0,65,9],"09db7c06c":[18,2,47,8,0,71,10,11],"0cd1ec7f1":[42,69],"0d7de01d8":[15,20,2,4,24,25,28,29,6,35,45,0,9,10,11],"0e0598680":[1,3,31,34,36,54,58]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false}
|
|
@ -1 +1 @@
|
|||
{"type":"cc.Texture2D","data":"0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1"}
|
||||
{"type":"cc.Texture2D","data":"0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1"}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
build/Sun_moves/assets/main/import/09/09db7c06c.json
Normal file
1
build/Sun_moves/assets/main/import/09/09db7c06c.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 832 B |
|
@ -149,42 +149,46 @@
|
|||
if (typeof VConsole !== 'undefined') {
|
||||
window.vConsole = new VConsole();
|
||||
}
|
||||
|
||||
var debug = window._CCSettings.debug;
|
||||
// var splash = document.getElementById('splash');
|
||||
// splash.style.display = 'block';
|
||||
var userId = null;
|
||||
var urlNow = window.location.href;
|
||||
//更改测试链接标题
|
||||
if(containsNanana(urlNow) == true){
|
||||
document.title = "后裔逐日 | 测试环境";
|
||||
}
|
||||
|
||||
// 示例使用
|
||||
var title = document.getElementsByTagName('title')[0].innerText;
|
||||
userId = JSON.parse(localStorage.getItem("user"));
|
||||
if(userId == "undifend" || userId==null || userId == ""){
|
||||
setId();
|
||||
}
|
||||
else{
|
||||
let data = JSON.parse(localStorage.getItem("user"));
|
||||
data = getId(data);
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
if((timestamp - data[2]) > 86400){
|
||||
setId();
|
||||
}
|
||||
}
|
||||
|
||||
function setId(){
|
||||
// 存储gameid userid gameid为key userId和时间戳为value
|
||||
let name = "user_" + "100009";
|
||||
var data = JSON.parse(localStorage.getItem(name));
|
||||
|
||||
if(data == "undifend" || data==null || data == ""){
|
||||
console.log("没缓存");
|
||||
setId(name);
|
||||
}
|
||||
else{
|
||||
console.log("有缓存");
|
||||
userId = data.userId;
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
if((timestamp - data.time) > 86400){
|
||||
console.log("缓存过期");
|
||||
setId(name);
|
||||
}
|
||||
}
|
||||
function setId(name){
|
||||
let userId = getUserId();
|
||||
if(userId == null){
|
||||
console.log("链接没ID准备跳转");
|
||||
let url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+location.href;
|
||||
window.location.href = url;
|
||||
}
|
||||
else{
|
||||
console.log("链接有ID",userId);
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
let idTemp = "gameId=" + "100009" +
|
||||
"?userId= " + userId + "?time=" + timestamp;
|
||||
localStorage.setItem("user",JSON.stringify(idTemp));
|
||||
let idData = {
|
||||
userId: userId,
|
||||
time: timestamp
|
||||
}
|
||||
localStorage.setItem(name,JSON.stringify(idData));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -205,21 +209,6 @@
|
|||
document.body.appendChild(domScript);
|
||||
}
|
||||
|
||||
function getId(str) {
|
||||
let pathStr = str;
|
||||
|
||||
let arr=pathStr.split("?");
|
||||
if (pathStr.length>= 0&&arr.length>0) {
|
||||
let arr2=[];
|
||||
arr.map(item=>{
|
||||
arr2.push(item.split("=")[1])
|
||||
})
|
||||
return arr2;
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
function getUserId() {
|
||||
let pathStr = window.location.search;
|
||||
let arr=pathStr.split("&");
|
||||
|
@ -228,16 +217,14 @@
|
|||
arr.map(item=>{
|
||||
arr2.push(item.split("=")[1])
|
||||
})
|
||||
console.log("网站拿到的数据:",arr2[0])
|
||||
window.userId = arr2[0] + "";
|
||||
return arr2[0];
|
||||
return arr2[0]
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.js', function () {
|
||||
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
|
||||
loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
|
||||
|
|
|
@ -13,17 +13,8 @@ window.boot = function () {
|
|||
// Loading splash scene
|
||||
var splash = document.getElementById('splash');
|
||||
var star = document.getElementById('_star');
|
||||
// var progressBar = splash.querySelector('.progress-bar span');
|
||||
onProgress = function (finish, total) {
|
||||
// var percent = 100 * finish / total;
|
||||
// if (progressBar) {
|
||||
// progressBar.style.width = percent.toFixed(2) + '%';
|
||||
// }
|
||||
};
|
||||
// splash.style.display = 'block';
|
||||
// progressBar.style.width = '0%';
|
||||
|
||||
|
||||
cc.director.once(cc.Director.EVENT_AFTER_SCENE_LAUNCH, function () {
|
||||
splash.style.display = 'none';
|
||||
star.style.display = 'none';
|
||||
|
@ -31,11 +22,8 @@ window.boot = function () {
|
|||
}
|
||||
|
||||
var onStart = function () {
|
||||
|
||||
console.log(RESOURCES);
|
||||
cc.view.enableRetina(true);
|
||||
cc.view.resizeWithBrowserSize(true);
|
||||
|
||||
if (cc.sys.isBrowser) {
|
||||
setLoadingDisplay();
|
||||
}
|
||||
|
|
5454
library/imports/1f/1f9265d6-31fa-4638-be80-340517745006.json
Normal file
5454
library/imports/1f/1f9265d6-31fa-4638-be80-340517745006.json
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -68,9 +68,9 @@ var NewClass = /** @class */ (function (_super) {
|
|||
if (type != 0)
|
||||
_this.custom = 2;
|
||||
if (_this.custom == 2)
|
||||
_this.createSun1();
|
||||
_this.createSun(true);
|
||||
else if (_this.custom == 3)
|
||||
_this.createSun2();
|
||||
_this.createSun(false);
|
||||
else if (_this.custom == 4)
|
||||
_this.begin = true;
|
||||
else if (_this.custom == 5)
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -36,48 +36,52 @@ var NewClass = /** @class */ (function (_super) {
|
|||
};
|
||||
//鉴权,判断有无缓存userid,有的话判断是否过期,没有的话重新获取userid 并且缓存上
|
||||
NewClass.prototype.Authentication = function () {
|
||||
var userId = Storage_1.StorageMessage.getStorage("user");
|
||||
if (userId == "undifend" || userId == null || userId == "") {
|
||||
this.setUserId();
|
||||
var name = "user_" + GameData_1.default._instance.GM_INFO.gameId;
|
||||
var data = Storage_1.StorageMessage.getStorage(name);
|
||||
if (data == "undifend" || data == null || data == "") {
|
||||
console.log("没缓存");
|
||||
this.setUserId(name);
|
||||
}
|
||||
else {
|
||||
var data = Storage_1.StorageMessage.getStorage("user");
|
||||
data = this.getUserId(data);
|
||||
console.log("有缓存");
|
||||
var timestamp = parseInt(new Date().getTime() / 1000 + "");
|
||||
if ((timestamp - data[2]) > 86400) {
|
||||
this.setUserId();
|
||||
if ((timestamp - data.time) > 86400) {
|
||||
console.log("缓存过期");
|
||||
this.setUserId(name);
|
||||
return;
|
||||
}
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(data[1]);
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(data.userId);
|
||||
}
|
||||
};
|
||||
//设置userId,链接有获取,没有跳转授权
|
||||
NewClass.prototype.setUserId = function () {
|
||||
GameData_1.default._instance.GM_INFO.userId = this.getUserId(null);
|
||||
NewClass.prototype.setUserId = function (name) {
|
||||
GameData_1.default._instance.GM_INFO.userId = this.getUserId();
|
||||
if (GameData_1.default._instance.GM_INFO.userId == null) {
|
||||
console.log("链接没ID准备跳转");
|
||||
var url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback=" + location.href;
|
||||
window.location.href = url;
|
||||
}
|
||||
else {
|
||||
var timestamp = parseInt(new Date().getTime() / 1000 + "");
|
||||
var idTemp = "gameId=" + GameData_1.default._instance.GM_INFO.gameId +
|
||||
"?userId= " + GameData_1.default._instance.GM_INFO.userId + "?time=" + timestamp;
|
||||
Storage_1.StorageMessage.setStorage("user", idTemp);
|
||||
var idData = {
|
||||
userId: GameData_1.default._instance.GM_INFO.userId + "",
|
||||
time: timestamp
|
||||
};
|
||||
Storage_1.StorageMessage.setStorage(name, idData);
|
||||
console.log("有ID:", GameData_1.default._instance.GM_INFO.userId);
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(GameData_1.default._instance.GM_INFO.userId);
|
||||
}
|
||||
};
|
||||
//获取user id 有参数为获取gameid userid 时间戳, 无参数为只获取链接尾缀上的userId
|
||||
NewClass.prototype.getUserId = function (str) {
|
||||
NewClass.prototype.getUserId = function () {
|
||||
var pathStr = window.location.search;
|
||||
var arr = pathStr.split("&");
|
||||
if (str != null)
|
||||
arr = pathStr.split("?");
|
||||
if (pathStr.length >= 0 && arr.length > 0) {
|
||||
var arr2_1 = [];
|
||||
arr.map(function (item) {
|
||||
arr2_1.push(item.split("=")[1]);
|
||||
});
|
||||
return str == null ? arr2_1[0] : arr2_1;
|
||||
return arr2_1[0];
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
|
@ -96,6 +100,8 @@ var NewClass = /** @class */ (function (_super) {
|
|||
NewClass.prototype.openRank = function () {
|
||||
cc.director.loadScene("RankScene");
|
||||
};
|
||||
NewClass.prototype.update = function (dt) {
|
||||
};
|
||||
NewClass = __decorate([
|
||||
ccclass
|
||||
], NewClass);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": "0,9729,9729,33071,33071,0,0,1"
|
||||
}
|
BIN
library/imports/59/5932ca98-ee86-44cb-bd49-7947b2c92fd9.png
Normal file
BIN
library/imports/59/5932ca98-ee86-44cb-bd49-7947b2c92fd9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
|
@ -2303,7 +2303,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 480,
|
||||
"width": 432,
|
||||
"height": 135.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -2357,7 +2357,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "你是后羿,需要驱逐太阳,\n制止这场浩劫。",
|
||||
"_N$string": "你是后羿,需要驱逐太阳,\n制止这场浩劫。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -3355,7 +3355,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 520,
|
||||
"width": 468,
|
||||
"height": 75.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -3409,7 +3409,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "记住屏幕中太阳出现的顺序。",
|
||||
"_N$string": "记住屏幕中太阳出现的顺序。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -4312,7 +4312,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 560,
|
||||
"width": 504,
|
||||
"height": 75.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -4366,7 +4366,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "按照太阳的出现顺序依次点击。",
|
||||
"_N$string": "按照太阳的出现顺序依次点击。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -5266,7 +5266,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 560,
|
||||
"width": 576,
|
||||
"height": 195.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -5320,7 +5320,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "太厉害了,你已经成功驱逐了太阳。\n神弓法力只有2分钟,\n接下来请继续帮助苍生吧!",
|
||||
"_N$string": "太厉害了,你已经成功驱逐了太阳。\n神弓法力只有2分钟,\n接下来请继续帮助苍生吧!",
|
||||
"_fontSize": 35,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
|
|
@ -1360,7 +1360,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9615103c-b027-48c9-b2a6-4d01e594a784"
|
||||
"__uuid__": "e8db2543-6af9-4173-a369-6cafed03a0eb"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 1,
|
||||
|
@ -1373,9 +1373,7 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "f683b01d-4d4a-4b64-a054-741e0785d512"
|
||||
},
|
||||
"_atlas": null,
|
||||
"_id": "e3tnncQgtFn49iTBzwCpMN"
|
||||
},
|
||||
{
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ var ItemRender = /** @class */ (function (_super) {
|
|||
.catch(function (error) {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
cc.assetManager.loadRemote(url, { ext: '.jpg' }, function (err, texture) {
|
||||
cc.assetManager.loadRemote(url, { ext: '.png' }, function (err, texture) {
|
||||
if (texture) {
|
||||
_this.node.getChildByName("pic").getChildByName("pic").active = true;
|
||||
var sprite = _this.node.getChildByName("pic").getChildByName("pic").getComponent(cc.Sprite);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -166,7 +166,7 @@ var RankManager = /** @class */ (function (_super) {
|
|||
console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
var self = this;
|
||||
cc.assetManager.loadRemote(pic, { ext: '.jpg' }, function (err, texture) {
|
||||
cc.assetManager.loadRemote(pic, { ext: '.png' }, function (err, texture) {
|
||||
self.Player.opacity = 255;
|
||||
if (texture) {
|
||||
self.phone.node.active = true;
|
||||
|
|
File diff suppressed because one or more lines are too long
28
library/imports/e8/e8db2543-6af9-4173-a369-6cafed03a0eb.json
Normal file
28
library/imports/e8/e8db2543-6af9-4173-a369-6cafed03a0eb.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "rankBtn",
|
||||
"texture": "5932ca98-ee86-44cb-bd49-7947b2c92fd9",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
126,
|
||||
140
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
126,
|
||||
140
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
"use strict";
|
||||
cc._RF.push(module, 'f124cZyKJVPPobsFKRo+Uam', 'Storage');
|
||||
// Script/tool/Storage.ts
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StorageMessage = void 0;
|
||||
//缓存浏览器数据
|
||||
var StorageMessage = {
|
||||
getStorage: function (key) {
|
||||
var result = null;
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
var result = cc.sys.localStorage.getItem(key);
|
||||
}
|
||||
if (result) {
|
||||
result = JSON.parse(result);
|
||||
}
|
||||
return result;
|
||||
},
|
||||
setStorage: function (key, value) {
|
||||
//主动拉起分享接口
|
||||
var temp = JSON.stringify(value);
|
||||
cc.sys.localStorage.setItem(key, temp);
|
||||
},
|
||||
removeStorage: function (key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
},
|
||||
};
|
||||
exports.StorageMessage = StorageMessage;
|
||||
|
||||
cc._RF.pop();
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["assets\\Script\\tool\\Storage.ts"],"names":[],"mappings":";;;;;;;AAAA,SAAS;AACT,IAAI,cAAc,GAAG;IACjB,UAAU,EAAG,UAAS,GAAG;QACrB,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAG,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAC;YAClC,IAAI,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SAC/C;QAED,IAAG,MAAM,EAAC;YACR,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAC7B;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,UAAU,EAAG,UAAS,GAAG,EAAC,KAAK;QAC3B,UAAU;QACV,IAAI,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACjC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC1C,CAAC;IACD,aAAa,EAAG,UAAS,GAAG;QAC1B,UAAU;QACV,IAAG,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAC;YAClC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;SACpC;IACH,CAAC;CACJ,CAAC;AAEO,wCAAc","file":"","sourceRoot":"/","sourcesContent":["//缓存浏览器数据\nvar StorageMessage = {\n getStorage : function(key){\n var result = null;\n if(cc.sys.localStorage.getItem(key)){\n var result = cc.sys.localStorage.getItem(key);\n }\n \n if(result){\n result = JSON.parse(result);\n }\n return result;\n },\n setStorage : function(key,value){\n //主动拉起分享接口\n var temp = JSON.stringify(value);\n cc.sys.localStorage.setItem(key, temp)\n },\n removeStorage : function(key){\n //主动删除消息接口\n if(cc.sys.localStorage.getItem(key)){\n cc.sys.localStorage.removeItem(key)\n }\n },\n};\n\nexport { StorageMessage };"]}
|
File diff suppressed because it is too large
Load Diff
|
@ -13,13 +13,13 @@
|
|||
"type": "dock-h",
|
||||
"children": [
|
||||
{
|
||||
"width": 207.28125,
|
||||
"width": 207,
|
||||
"height": 571,
|
||||
"type": "dock-v",
|
||||
"children": [
|
||||
{
|
||||
"width": 207.28125,
|
||||
"height": 308.13543701171875,
|
||||
"width": 207,
|
||||
"height": 307.9895935058594,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -27,8 +27,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 207.28125,
|
||||
"height": 259.8645935058594,
|
||||
"width": 207,
|
||||
"height": 260,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -38,7 +38,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 759.3333740234375,
|
||||
"width": 759.9896240234375,
|
||||
"height": 571,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
|
@ -47,7 +47,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 307.375,
|
||||
"width": 307,
|
||||
"height": 571,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
{
|
||||
"last-edit": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"last-edit": "9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d",
|
||||
"recent-items": [
|
||||
"40ba7e70-1826-4aa1-92f3-aa63ae39294b",
|
||||
"32254f37-ac95-4912-a787-b8e0429ba0f1",
|
||||
"774829bb-123e-48b6-930e-6b3e02491506",
|
||||
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d",
|
||||
"3a232388-d8dc-4f79-a1ea-82f6385b7ce2",
|
||||
"5e515837-650e-4584-a089-e2a025e36c39",
|
||||
"13110e4f-3587-4e6b-8811-0ca16cac8149",
|
||||
"d1323772-4ab2-4527-bd20-501fe4fb9723",
|
||||
"4b9c5a7e-c645-48a4-9aca-5df381ce4ef5",
|
||||
"4eaf518b-35ec-4262-928d-4d497c3f2830",
|
||||
"2d2f792f-a40c-49bb-a189-ed176a246e49"
|
||||
"4b9c5a7e-c645-48a4-9aca-5df381ce4ef5",
|
||||
"2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"774829bb-123e-48b6-930e-6b3e02491506",
|
||||
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
"80UN5iBc9K9pd8hXCc1VAk",
|
||||
"9a3MBWS0tATp1bXC+684by",
|
||||
"bdbEH+735OxrggnQuRlqF2",
|
||||
"99Fe5tv8pMaYMcXAIOO6ZV",
|
||||
"85AQ3wR2VBJ7P/esG1IsjH",
|
||||
"bb+DPySjNLhZcxUUphVuRh",
|
||||
"235SMzDbhOq6ztcaxq2zgs",
|
||||
|
@ -119,8 +118,6 @@
|
|||
"92Bxdq/nxJrKbyHZwa4jwm",
|
||||
"eahu5Qi+RGYbJveL2sjd9E",
|
||||
"c8+DIo6iBFRoHHuMStaRmg",
|
||||
"83fdXjJEdM1rCZghbgf9lv",
|
||||
"ddR9GXKuBKg5J0qSoBz++j",
|
||||
"53Pa/U9npHVaLLi4mcXCDl",
|
||||
"3bRpAXkXhC5KGgG14EgGiz",
|
||||
"caA1gIw+dDIKpQRMeiQ5aE",
|
||||
|
@ -130,7 +127,6 @@
|
|||
"87Iwfstz9IgJrGdhWc1ece",
|
||||
"93AB/tAtpJiLIhsM2hj4oS",
|
||||
"19pF4+lS9JVKxLaFN6zmKh",
|
||||
"68QXyex9ZCjpGvlESAcHm3",
|
||||
"a4t+8IfEBL5IRPc1LZVawN",
|
||||
"16n0c3PGdH0L2eZEIIZqR9",
|
||||
"67pDCJ/gVK55UJKFtKqYeN",
|
||||
|
@ -148,7 +144,6 @@
|
|||
"f0mxIJ78ZFGL41VXlNAceQ",
|
||||
"86aT3Ws0hLmY2uYrTFI/h/",
|
||||
"e6rWoQ+M9CMY7I5AsszNvM",
|
||||
"50E0EvF9tGWqRoojKDG6C/",
|
||||
"01rHBFfk1N1ZEGX1MPr8b6",
|
||||
"37o6ML199Jfbx6/Z0CMQXl",
|
||||
"6e1Azk36RENrQuZggUjGIE",
|
||||
|
@ -172,7 +167,6 @@
|
|||
"83sPOoHdxEYKjGxoSaM0qs",
|
||||
"099fBgiItNAZGt+FmRzphy",
|
||||
"a9mMXgbUVKrraT/vqVCVIE",
|
||||
"a7NUURWktGVbn5uaL7RgDc",
|
||||
"e1+Ep5C1JCdY73gjVbslja",
|
||||
"b0XjKf8upJNo4AhV03u6Uw",
|
||||
"c8yoqytmtNTJJgyelkUe7g",
|
||||
|
@ -180,8 +174,6 @@
|
|||
"a2FE/ArDJMvYxCIXp+aJNs",
|
||||
"d7Go7VAudBuoLS0+DrZ3M2",
|
||||
"5ed3tKYdxCPJ51e/i3ecou",
|
||||
"e2e0crkOLxGrpMxpbC4iQg1",
|
||||
"cf4fwLe4hJXLYT5vY7WfC9",
|
||||
"a9Y/TP/QhAdq9i2KGsTC0d",
|
||||
"a1BRwywGFMT6iJxK+nijOf",
|
||||
"7aHA1K+7hE8YNbYjVirEih",
|
||||
|
@ -199,16 +191,24 @@
|
|||
"ecZU+ZNaxJvovWhjTwolW3",
|
||||
"1eUcABlmZJH62rOyXieYFR",
|
||||
"9ah+lyxSVO6Jf1EY5aebLK",
|
||||
"78Sk802p9L/Ip+ZPEFbJnp",
|
||||
"cfD+6eekJE44Ilk2xG5ORu",
|
||||
"6bCpWS8ktAfIpBUoWywuvF",
|
||||
"97jJpx7PFP3KaIhLHDBrwq",
|
||||
"beOm6xY9JGcpUIgHepr4za",
|
||||
"05VwVz2ohMvbMUbFxpVLs6",
|
||||
"a0jBYkupRJ1qUCnIBv+/lY",
|
||||
"5dxBdyCr9Dd7WMwsS/0Owj",
|
||||
"791LpnRkFNkqdfpCoJ3Pqk",
|
||||
"99Fe5tv8pMaYMcXAIOO6ZV",
|
||||
"50E0EvF9tGWqRoojKDG6C/",
|
||||
"68QXyex9ZCjpGvlESAcHm3",
|
||||
"a7NUURWktGVbn5uaL7RgDc",
|
||||
"78Sk802p9L/Ip+ZPEFbJnp",
|
||||
"cfD+6eekJE44Ilk2xG5ORu",
|
||||
"83fdXjJEdM1rCZghbgf9lv",
|
||||
"ddR9GXKuBKg5J0qSoBz++j",
|
||||
"10unPSfi1NUb30N1EjhieB",
|
||||
"cf4fwLe4hJXLYT5vY7WfC9",
|
||||
"e2e0crkOLxGrpMxpbC4iQg1",
|
||||
"8ak5WlHVBELqSzRzcpZa3P",
|
||||
"10unPSfi1NUb30N1EjhieB"
|
||||
"791LpnRkFNkqdfpCoJ3Pqk"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"last-module-event-record-time": 1716951696375,
|
||||
"last-module-event-record-time": 1717577615724,
|
||||
"group-list": [
|
||||
"default"
|
||||
],
|
||||
|
|
|
@ -2302,7 +2302,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 480,
|
||||
"width": 432,
|
||||
"height": 135.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -2356,7 +2356,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "你是后羿,需要驱逐太阳,\n制止这场浩劫。",
|
||||
"_N$string": "你是后羿,需要驱逐太阳,\n制止这场浩劫。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -3354,7 +3354,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 520,
|
||||
"width": 468,
|
||||
"height": 75.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -3408,7 +3408,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "记住屏幕中太阳出现的顺序。",
|
||||
"_N$string": "记住屏幕中太阳出现的顺序。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -4311,7 +4311,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 560,
|
||||
"width": 504,
|
||||
"height": 75.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -4365,7 +4365,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "按照太阳的出现顺序依次点击。",
|
||||
"_N$string": "按照太阳的出现顺序依次点击。",
|
||||
"_fontSize": 40,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
@ -5265,7 +5265,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 560,
|
||||
"width": 576,
|
||||
"height": 195.6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -5319,7 +5319,7 @@
|
|||
"_dstBlendFactor": 771,
|
||||
"_string": "太厉害了,你已经成功驱逐了太阳。\n神弓法力只有2分钟,\n接下来请继续帮助苍生吧!",
|
||||
"_N$string": "太厉害了,你已经成功驱逐了太阳。\n神弓法力只有2分钟,\n接下来请继续帮助苍生吧!",
|
||||
"_fontSize": 35,
|
||||
"_fontSize": 36,
|
||||
"_lineHeight": 60,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
|
|
|
@ -1359,7 +1359,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9615103c-b027-48c9-b2a6-4d01e594a784"
|
||||
"__uuid__": "e8db2543-6af9-4173-a369-6cafed03a0eb"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 1,
|
||||
|
@ -1372,9 +1372,7 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "f683b01d-4d4a-4b64-a054-741e0785d512"
|
||||
},
|
||||
"_atlas": null,
|
||||
"_id": "e3tnncQgtFn49iTBzwCpMN"
|
||||
},
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1 +1 @@
|
|||
{"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-05-31T06:57:33.895Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/DynamicAtlasManager.js":"2024-05-31T06:57:33.840Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-05-31T06:57:33.849Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/ListView/List.js":"2024-05-31T06:57:33.856Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/crypto/serverAPI.js":"2024-05-31T06:57:33.851Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/RankManager.js":"2024-05-31T06:57:33.860Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-05-31T06:57:33.837Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-05-31T06:57:33.847Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Notification.js":"2024-05-31T06:57:33.863Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-05-31T06:57:33.844Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameData.js":"2024-05-31T06:57:33.864Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-05-31T06:57:33.842Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Storage.js":"2024-05-31T06:57:33.848Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/GameTool.js":"2024-05-31T06:57:33.857Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/ListView/ItemRender.js":"2024-05-31T06:57:33.854Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/AudioManager.js":"2024-05-31T06:57:33.850Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/Shake.js":"2024-05-31T06:57:33.845Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/crypto/crypto-js.min.js":"2024-05-31T06:57:33.859Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-05-31T06:57:33.852Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/Storage.js":"2024-05-31T06:57:33.862Z"}}
|
||||
{"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-06-07T09:01:38.036Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/crypto/serverAPI.js":"2024-06-07T09:01:37.993Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/ListView/List.js":"2024-06-07T09:01:37.997Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Storage.js":"2024-06-07T09:01:37.985Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-06-07T09:01:37.985Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/DynamicAtlasManager.js":"2024-06-07T09:01:37.981Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameData.js":"2024-06-07T09:01:38.005Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-06-07T09:01:37.976Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-06-07T09:01:37.989Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/GameTool.js":"2024-06-07T09:01:37.997Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/AudioManager.js":"2024-06-07T09:01:37.989Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/RankManager.js":"2024-06-07T09:01:38.002Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Notification.js":"2024-06-07T09:01:38.003Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-06-07T09:01:37.983Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/crypto/crypto-js.min.js":"2024-06-07T09:01:37.997Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/Shake.js":"2024-06-07T09:01:37.985Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-06-07T09:01:37.981Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-06-07T09:01:37.994Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/ListView/ItemRender.js":"2024-06-07T09:01:37.995Z"}}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,6 @@ require('./assets/Script/tool/AudioManager');
|
|||
require('./assets/Script/tool/DynamicAtlasManager');
|
||||
require('./assets/Script/tool/GameTool');
|
||||
require('./assets/Script/tool/Shake');
|
||||
require('./assets/Script/tool/Storage');
|
||||
require('./assets/migration/use_v2.1-2.2.1_cc.Toggle_event');
|
||||
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
(function () {
|
||||
var scripts = [{"deps":{"./assets/Script/GameOver":2,"./assets/Script/GuideManager":6,"./assets/Script/Load":11,"./assets/Script/Notification":8,"./assets/Script/RankManager":5,"./assets/Script/Storage":12,"./assets/Script/Sun":9,"./assets/Script/GameData":10,"./assets/Script/ListView/List":3,"./assets/Script/ListView/ItemRender":14,"./assets/Script/crypto/serverAPI":4,"./assets/Script/crypto/crypto-js.min":17,"./assets/Script/tool/DynamicAtlasManager":1,"./assets/Script/tool/GameTool":13,"./assets/Script/tool/Shake":16,"./assets/Script/tool/Storage":19,"./assets/Script/tool/AudioManager":15,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":7,"./assets/Script/GameManager":18},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/DynamicAtlasManager.js"},{"deps":{"./GameData":10,"./crypto/serverAPI":4},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{"./ItemRender":14},"path":"preview-scripts/assets/Script/ListView/List.js"},{"deps":{"../GameData":10,"./crypto-js.min.js":17},"path":"preview-scripts/assets/Script/crypto/serverAPI.js"},{"deps":{"./GameData":10,"./ListView/List":3,"./crypto/serverAPI":4},"path":"preview-scripts/assets/Script/RankManager.js"},{"deps":{"./GameData":10,"./Notification":8},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{},"path":"preview-scripts/assets/Script/Notification.js"},{"deps":{"./Notification":8},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameData.js"},{"deps":{"./GameData":10,"./Storage":12},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"path":"preview-scripts/assets/Script/Storage.js"},{"deps":{"../GameData":10},"path":"preview-scripts/assets/Script/tool/GameTool.js"},{"deps":{},"path":"preview-scripts/assets/Script/ListView/ItemRender.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/AudioManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/Shake.js"},{"deps":{},"path":"preview-scripts/assets/Script/crypto/crypto-js.min.js"},{"deps":{"./GameData":10,"./Notification":8,"./crypto/serverAPI":4},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/Storage.js"}];
|
||||
var scripts = [{"deps":{"./assets/Script/GameOver":8,"./assets/Script/GuideManager":7,"./assets/Script/Load":16,"./assets/Script/Notification":12,"./assets/Script/RankManager":11,"./assets/Script/Storage":3,"./assets/Script/Sun":13,"./assets/Script/GameData":6,"./assets/Script/ListView/List":2,"./assets/Script/ListView/ItemRender":18,"./assets/Script/crypto/serverAPI":1,"./assets/Script/crypto/crypto-js.min":14,"./assets/Script/tool/DynamicAtlasManager":5,"./assets/Script/tool/GameTool":9,"./assets/Script/tool/Shake":15,"./assets/Script/tool/AudioManager":10,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":4,"./assets/Script/GameManager":17},"path":"preview-scripts/__qc_index__.js"},{"deps":{"../GameData":6,"./crypto-js.min.js":14},"path":"preview-scripts/assets/Script/crypto/serverAPI.js"},{"deps":{"./ItemRender":18},"path":"preview-scripts/assets/Script/ListView/List.js"},{"deps":{},"path":"preview-scripts/assets/Script/Storage.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/DynamicAtlasManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameData.js"},{"deps":{"./GameData":6,"./Notification":12},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{"./GameData":6,"./crypto/serverAPI":1},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{"../GameData":6},"path":"preview-scripts/assets/Script/tool/GameTool.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/AudioManager.js"},{"deps":{"./GameData":6,"./ListView/List":2,"./crypto/serverAPI":1},"path":"preview-scripts/assets/Script/RankManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/Notification.js"},{"deps":{"./Notification":12},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{},"path":"preview-scripts/assets/Script/crypto/crypto-js.min.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/Shake.js"},{"deps":{"./GameData":6,"./Storage":3},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{"./GameData":6,"./Notification":12,"./crypto/serverAPI":1},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/ListView/ItemRender.js"}];
|
||||
var entries = ["preview-scripts/__qc_index__.js"];
|
||||
var bundleScript = 'preview-scripts/__qc_bundle__.js';
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,56 +0,0 @@
|
|||
|
||||
(function() {
|
||||
var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
|
||||
var __module = nodeEnv ? module : {exports:{}};
|
||||
var __filename = 'preview-scripts/assets/Script/tool/Storage.js';
|
||||
var __require = nodeEnv ? function (request) {
|
||||
return cc.require(request);
|
||||
} : function (request) {
|
||||
return __quick_compile_project__.require(request, __filename);
|
||||
};
|
||||
function __define (exports, require, module) {
|
||||
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
|
||||
cc._RF.push(module, 'f124cZyKJVPPobsFKRo+Uam', 'Storage');
|
||||
// Script/tool/Storage.ts
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StorageMessage = void 0;
|
||||
//缓存浏览器数据
|
||||
var StorageMessage = {
|
||||
getStorage: function (key) {
|
||||
var result = null;
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
var result = cc.sys.localStorage.getItem(key);
|
||||
}
|
||||
if (result) {
|
||||
result = JSON.parse(result);
|
||||
}
|
||||
return result;
|
||||
},
|
||||
setStorage: function (key, value) {
|
||||
//主动拉起分享接口
|
||||
var temp = JSON.stringify(value);
|
||||
cc.sys.localStorage.setItem(key, temp);
|
||||
},
|
||||
removeStorage: function (key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
},
|
||||
};
|
||||
exports.StorageMessage = StorageMessage;
|
||||
|
||||
cc._RF.pop();
|
||||
}
|
||||
if (nodeEnv) {
|
||||
__define(__module.exports, __require, __module);
|
||||
}
|
||||
else {
|
||||
__quick_compile_project__.registerModuleFunc(__filename, function () {
|
||||
__define(__module.exports, __require, __module);
|
||||
});
|
||||
}
|
||||
})();
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0c1xcU2NyaXB0XFx0b29sXFxTdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLFNBQVM7QUFDVCxJQUFJLGNBQWMsR0FBRztJQUNqQixVQUFVLEVBQUcsVUFBUyxHQUFHO1FBQ3JCLElBQUksTUFBTSxHQUFHLElBQUksQ0FBQztRQUNsQixJQUFHLEVBQUUsQ0FBQyxHQUFHLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBQztZQUNsQyxJQUFJLE1BQU0sR0FBRyxFQUFFLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7U0FDL0M7UUFFRCxJQUFHLE1BQU0sRUFBQztZQUNSLE1BQU0sR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1NBQzdCO1FBQ0QsT0FBTyxNQUFNLENBQUM7SUFDbEIsQ0FBQztJQUNELFVBQVUsRUFBRyxVQUFTLEdBQUcsRUFBQyxLQUFLO1FBQzNCLFVBQVU7UUFDVixJQUFJLElBQUksR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ2pDLEVBQUUsQ0FBQyxHQUFHLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsSUFBSSxDQUFDLENBQUE7SUFDMUMsQ0FBQztJQUNELGFBQWEsRUFBRyxVQUFTLEdBQUc7UUFDMUIsVUFBVTtRQUNWLElBQUcsRUFBRSxDQUFDLEdBQUcsQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFDO1lBQ2xDLEVBQUUsQ0FBQyxHQUFHLENBQUMsWUFBWSxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQTtTQUNwQztJQUNILENBQUM7Q0FDSixDQUFDO0FBRU8sd0NBQWMiLCJmaWxlIjoiIiwic291cmNlUm9vdCI6Ii8iLCJzb3VyY2VzQ29udGVudCI6WyIvL+e8k+WtmOa1j+iniOWZqOaVsOaNrlxudmFyIFN0b3JhZ2VNZXNzYWdlID0ge1xuICAgIGdldFN0b3JhZ2UgOiBmdW5jdGlvbihrZXkpe1xuICAgICAgICB2YXIgcmVzdWx0ID0gbnVsbDtcbiAgICAgICAgaWYoY2Muc3lzLmxvY2FsU3RvcmFnZS5nZXRJdGVtKGtleSkpe1xuICAgICAgICAgIHZhciByZXN1bHQgPSBjYy5zeXMubG9jYWxTdG9yYWdlLmdldEl0ZW0oa2V5KTtcbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgaWYocmVzdWx0KXtcbiAgICAgICAgICByZXN1bHQgPSBKU09OLnBhcnNlKHJlc3VsdCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9LFxuICAgIHNldFN0b3JhZ2UgOiBmdW5jdGlvbihrZXksdmFsdWUpe1xuICAgICAgICAvL+S4u+WKqOaLiei1t+WIhuS6q+aOpeWPo1xuICAgICAgICB2YXIgdGVtcCA9IEpTT04uc3RyaW5naWZ5KHZhbHVlKTtcbiAgICAgICAgY2Muc3lzLmxvY2FsU3RvcmFnZS5zZXRJdGVtKGtleSwgdGVtcClcbiAgICB9LFxuICAgIHJlbW92ZVN0b3JhZ2UgOiBmdW5jdGlvbihrZXkpe1xuICAgICAgLy/kuLvliqjliKDpmaTmtojmga/mjqXlj6NcbiAgICAgIGlmKGNjLnN5cy5sb2NhbFN0b3JhZ2UuZ2V0SXRlbShrZXkpKXtcbiAgICAgICAgY2Muc3lzLmxvY2FsU3RvcmFnZS5yZW1vdmVJdGVtKGtleSlcbiAgICAgIH1cbiAgICB9LFxufTtcblxuZXhwb3J0IHsgU3RvcmFnZU1lc3NhZ2UgfTsiXX0=
|
|
@ -16,5 +16,4 @@ require('./assets/Script/tool/AudioManager');
|
|||
require('./assets/Script/tool/DynamicAtlasManager');
|
||||
require('./assets/Script/tool/GameTool');
|
||||
require('./assets/Script/tool/Shake');
|
||||
require('./assets/Script/tool/Storage');
|
||||
require('./assets/migration/use_v2.1-2.2.1_cc.Toggle_event');
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -68,9 +68,9 @@ var NewClass = /** @class */ (function (_super) {
|
|||
if (type != 0)
|
||||
_this.custom = 2;
|
||||
if (_this.custom == 2)
|
||||
_this.createSun1();
|
||||
_this.createSun(true);
|
||||
else if (_this.custom == 3)
|
||||
_this.createSun2();
|
||||
_this.createSun(false);
|
||||
else if (_this.custom == 4)
|
||||
_this.begin = true;
|
||||
else if (_this.custom == 5)
|
||||
|
|
|
@ -82,7 +82,7 @@ var ItemRender = /** @class */ (function (_super) {
|
|||
.catch(function (error) {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
cc.assetManager.loadRemote(url, { ext: '.jpg' }, function (err, texture) {
|
||||
cc.assetManager.loadRemote(url, { ext: '.png' }, function (err, texture) {
|
||||
if (texture) {
|
||||
_this.node.getChildByName("pic").getChildByName("pic").active = true;
|
||||
var sprite = _this.node.getChildByName("pic").getChildByName("pic").getComponent(cc.Sprite);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -36,48 +36,52 @@ var NewClass = /** @class */ (function (_super) {
|
|||
};
|
||||
//鉴权,判断有无缓存userid,有的话判断是否过期,没有的话重新获取userid 并且缓存上
|
||||
NewClass.prototype.Authentication = function () {
|
||||
var userId = Storage_1.StorageMessage.getStorage("user");
|
||||
if (userId == "undifend" || userId == null || userId == "") {
|
||||
this.setUserId();
|
||||
var name = "user_" + GameData_1.default._instance.GM_INFO.gameId;
|
||||
var data = Storage_1.StorageMessage.getStorage(name);
|
||||
if (data == "undifend" || data == null || data == "") {
|
||||
console.log("没缓存");
|
||||
this.setUserId(name);
|
||||
}
|
||||
else {
|
||||
var data = Storage_1.StorageMessage.getStorage("user");
|
||||
data = this.getUserId(data);
|
||||
console.log("有缓存");
|
||||
var timestamp = parseInt(new Date().getTime() / 1000 + "");
|
||||
if ((timestamp - data[2]) > 86400) {
|
||||
this.setUserId();
|
||||
if ((timestamp - data.time) > 86400) {
|
||||
console.log("缓存过期");
|
||||
this.setUserId(name);
|
||||
return;
|
||||
}
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(data[1]);
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(data.userId);
|
||||
}
|
||||
};
|
||||
//设置userId,链接有获取,没有跳转授权
|
||||
NewClass.prototype.setUserId = function () {
|
||||
GameData_1.default._instance.GM_INFO.userId = this.getUserId(null);
|
||||
NewClass.prototype.setUserId = function (name) {
|
||||
GameData_1.default._instance.GM_INFO.userId = this.getUserId();
|
||||
if (GameData_1.default._instance.GM_INFO.userId == null) {
|
||||
console.log("链接没ID准备跳转");
|
||||
var url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback=" + location.href;
|
||||
window.location.href = url;
|
||||
}
|
||||
else {
|
||||
var timestamp = parseInt(new Date().getTime() / 1000 + "");
|
||||
var idTemp = "gameId=" + GameData_1.default._instance.GM_INFO.gameId +
|
||||
"?userId= " + GameData_1.default._instance.GM_INFO.userId + "?time=" + timestamp;
|
||||
Storage_1.StorageMessage.setStorage("user", idTemp);
|
||||
var idData = {
|
||||
userId: GameData_1.default._instance.GM_INFO.userId + "",
|
||||
time: timestamp
|
||||
};
|
||||
Storage_1.StorageMessage.setStorage(name, idData);
|
||||
console.log("有ID:", GameData_1.default._instance.GM_INFO.userId);
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(GameData_1.default._instance.GM_INFO.userId);
|
||||
}
|
||||
};
|
||||
//获取user id 有参数为获取gameid userid 时间戳, 无参数为只获取链接尾缀上的userId
|
||||
NewClass.prototype.getUserId = function (str) {
|
||||
NewClass.prototype.getUserId = function () {
|
||||
var pathStr = window.location.search;
|
||||
var arr = pathStr.split("&");
|
||||
if (str != null)
|
||||
arr = pathStr.split("?");
|
||||
if (pathStr.length >= 0 && arr.length > 0) {
|
||||
var arr2_1 = [];
|
||||
arr.map(function (item) {
|
||||
arr2_1.push(item.split("=")[1]);
|
||||
});
|
||||
return str == null ? arr2_1[0] : arr2_1;
|
||||
return arr2_1[0];
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
|
@ -96,6 +100,8 @@ var NewClass = /** @class */ (function (_super) {
|
|||
NewClass.prototype.openRank = function () {
|
||||
cc.director.loadScene("RankScene");
|
||||
};
|
||||
NewClass.prototype.update = function (dt) {
|
||||
};
|
||||
NewClass = __decorate([
|
||||
ccclass
|
||||
], NewClass);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -166,7 +166,7 @@ var RankManager = /** @class */ (function (_super) {
|
|||
console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
var self = this;
|
||||
cc.assetManager.loadRemote(pic, { ext: '.jpg' }, function (err, texture) {
|
||||
cc.assetManager.loadRemote(pic, { ext: '.png' }, function (err, texture) {
|
||||
self.Player.opacity = 255;
|
||||
if (texture) {
|
||||
self.phone.node.active = true;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,34 +0,0 @@
|
|||
"use strict";
|
||||
cc._RF.push(module, 'f124cZyKJVPPobsFKRo+Uam', 'Storage');
|
||||
// Script/tool/Storage.ts
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StorageMessage = void 0;
|
||||
//缓存浏览器数据
|
||||
var StorageMessage = {
|
||||
getStorage: function (key) {
|
||||
var result = null;
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
var result = cc.sys.localStorage.getItem(key);
|
||||
}
|
||||
if (result) {
|
||||
result = JSON.parse(result);
|
||||
}
|
||||
return result;
|
||||
},
|
||||
setStorage: function (key, value) {
|
||||
//主动拉起分享接口
|
||||
var temp = JSON.stringify(value);
|
||||
cc.sys.localStorage.setItem(key, temp);
|
||||
},
|
||||
removeStorage: function (key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
},
|
||||
};
|
||||
exports.StorageMessage = StorageMessage;
|
||||
|
||||
cc._RF.pop();
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["assets\\Script\\tool\\Storage.ts"],"names":[],"mappings":";;;;;;;AAAA,SAAS;AACT,IAAI,cAAc,GAAG;IACjB,UAAU,EAAG,UAAS,GAAG;QACrB,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAG,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAC;YAClC,IAAI,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SAC/C;QAED,IAAG,MAAM,EAAC;YACR,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAC7B;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,UAAU,EAAG,UAAS,GAAG,EAAC,KAAK;QAC3B,UAAU;QACV,IAAI,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACjC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC1C,CAAC;IACD,aAAa,EAAG,UAAS,GAAG;QAC1B,UAAU;QACV,IAAG,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAC;YAClC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;SACpC;IACH,CAAC;CACJ,CAAC;AAEO,wCAAc","file":"","sourceRoot":"/","sourcesContent":["//缓存浏览器数据\nvar StorageMessage = {\n getStorage : function(key){\n var result = null;\n if(cc.sys.localStorage.getItem(key)){\n var result = cc.sys.localStorage.getItem(key);\n }\n \n if(result){\n result = JSON.parse(result);\n }\n return result;\n },\n setStorage : function(key,value){\n //主动拉起分享接口\n var temp = JSON.stringify(value);\n cc.sys.localStorage.setItem(key, temp)\n },\n removeStorage : function(key){\n //主动删除消息接口\n if(cc.sys.localStorage.getItem(key)){\n cc.sys.localStorage.removeItem(key)\n }\n },\n};\n\nexport { StorageMessage };"]}
|
Loading…
Reference in New Issue
Block a user