日常修改

This commit is contained in:
YZ\249929363 2024-12-10 16:11:21 +08:00
parent f5219a4068
commit 6b02b86526
54 changed files with 2453 additions and 2176 deletions

View File

@ -227,6 +227,7 @@ export default class GameManager extends cc.Component {
this.ball_Array[k].removeFromParent();
this.ball_Array[k] = null;
}
cc.fx.GameConfig.GM_INFO.gap = [];
}
//点击太阳执行方法
clickSun(data){
@ -235,7 +236,8 @@ export default class GameManager extends cc.Component {
let clickTime = cc.fx.GameTool.getTime();
this.time_Array.push((clickTime - this.timeStart))
this.timeStart = cc.fx.GameTool.getTime();
if(data == this.clickNow){
if(data.id == this.clickNow){
cc.fx.AudioManager._instance.playAudioButton();
if(this.clickNow > 0){
this.createLine(cc.v2(this.ball_Array[this.clickNow-1].x,this.ball_Array[this.clickNow-1].y),
@ -243,6 +245,7 @@ export default class GameManager extends cc.Component {
0.2);
}
this.clickNow += 1;
cc.fx.GameConfig.GM_INFO.gap.push(data.distance);
if(this.ball_Array[this.clickNow-1])
this.ball_Array[this.clickNow-1].getChildByName("guang").active = false;
if(this.clickNow == this.now_Array.length){
@ -271,7 +274,7 @@ export default class GameManager extends cc.Component {
}
}
else{
for(let m=0 ; m<this.ball_Array.length;m++){
for(let m=0 ; m<this.ball_Array.length;m++){
if(m == this.repeat || m == this.numberRepeat){
sunArray.push(2);
}
@ -293,11 +296,13 @@ export default class GameManager extends cc.Component {
difficultyLevel:this.level,
sunList:sunArray,
stepTimeList:this.time_Array,
remainder:this.countTime
remainder:this.countTime,
gap:cc.fx.GameConfig.GM_INFO.gap
}
if(cc.fx.GameConfig.CLICK_DATA.duration > 50){
cc.fx.GameConfig.CLICK_DATA.duration = 50;
}
this.setData();
cc.tween(win)
.delay(0.4)
@ -327,12 +332,12 @@ export default class GameManager extends cc.Component {
}
}
else{
this.setLoss();
this.setLoss(data);
}
}
}
//执行失败
setLoss(){
setLoss(data){
cc.fx.AudioManager._instance.playWarning();
this.begin = false;
this.overTime = cc.fx.GameTool.getTime();
@ -364,6 +369,7 @@ export default class GameManager extends cc.Component {
sunArray.push(0);
}
}
cc.fx.GameConfig.GM_INFO.gap.push(data.distance);
cc.fx.GameConfig.CLICK_DATA =
{
type:1,
@ -378,11 +384,13 @@ export default class GameManager extends cc.Component {
difficultyLevel:this.level,
sunList:sunArray,
stepTimeList:this.time_Array,
remainder:this.countTime
remainder:this.countTime,
gap:cc.fx.GameConfig.GM_INFO.gap
}
if(cc.fx.GameConfig.CLICK_DATA.duration > 50){
cc.fx.GameConfig.CLICK_DATA.duration = 50;
}
this.setData();
if(this.fuhuo == true){
this.fuhuo = false;
@ -881,7 +889,7 @@ export default class GameManager extends cc.Component {
this.begin = false;
this.over = true;
this.unschedule(this.updateCountDownTime);
this.setLoss();
this.setLoss({distance:0});
var time = 0;
if(this.clickCount > 0) time = parseInt(cc.fx.GameConfig.GM_INFO.mean_Time/this.clickCount + "");
cc.fx.GameConfig.GM_INFO.mean_Time = parseInt(time/100 + "");

View File

@ -89,6 +89,9 @@ export default class NewClass extends cc.Component {
}
//根据内容填充排行榜
setRank(num,data){
if(!data){
return;
}
var hitNode = null;
if(num == 0){
hitNode = this.one;
@ -107,7 +110,7 @@ export default class NewClass extends cc.Component {
}
if(hitNode){
hitNode.active = true;
cc.fx.GameTool.subName(data.nickName,4);
data.nickName = cc.fx.GameTool.subName(data.nickName,4);
hitNode.getChildByName("name").getComponent(cc.Label).string = data.nickName;
hitNode.getChildByName("total").getComponent(cc.Label).string = data.totalSunCount;
cc.fx.GameTool.setPic(hitNode.getChildByName("pic").getChildByName("icon"),data.pic);

View File

@ -10,6 +10,7 @@ export default class NewClass extends cc.Component {
move:boolean
// onLoad () {}
start () {
this.node.on(cc.Node.EventType.TOUCH_START, this.clickBtn, this);
}
//初始化数据
init(_id,color,speed,repeat){
@ -36,9 +37,16 @@ export default class NewClass extends cc.Component {
if(type == true)
this.node.getChildByName("number").getComponent(cc.Label).string = this.id_Number + "";
}
//计算两点之间直线距离
distanceBetweenTwoPoints(x1: number, y1: number, x2: number, y2: number): number {
return Math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2);
}
//点击事件
clickBtn(event,data){
if(data === "1"){
let pos = this.node.convertToNodeSpaceAR(event.getLocation());
let distance = this.distanceBetweenTwoPoints(pos.x, 0, pos.y, 0);
distance = Math.floor(distance*10)/10;
if(this.node.name != "qiu4"){
if( this.move == false && this.touch == true){
if(this.node.parent.parent.name == "GameNode"){
if(this.node.parent.parent.getComponent("GameManager").begin == true){
@ -51,13 +59,15 @@ export default class NewClass extends cc.Component {
.start();
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun",this.id_Number);
let data = {id:this.id_Number,distance:distance};
cc.fx.Notifications.emit("clickSun",data);
}
}
else{
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun",this.id_Number);
let data = {id:this.id_Number,distance:distance};
cc.fx.Notifications.emit("clickSun",data);
}
}
@ -66,7 +76,8 @@ export default class NewClass extends cc.Component {
if( this.touch == true && this.node.parent.parent.getComponent("GuideManager").begin == true){
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun",this.id_Number);
let data = {id:this.id_Number,distance:distance};
cc.fx.Notifications.emit("clickSun",data);
}
}
}

View File

@ -7,20 +7,16 @@ export class GameConfig {
//所有控制信息都通过GameAppStart内控制
private static _instance : GameConfig = null;
//用于盛放埋点数据上传,每次上传后清空
static GM_INFO: {
// isEnd: false,
mean_Time: number; //平均放箭速度
total: number; //总共对的个数
currSeed: number; //用于随机数种子
gameId: string; //游戏ID
userId: number; //用户ID
scode: string; //用户code
guide: boolean; //是否有引导
url: string; //访问域名
success: boolean; //用户游戏成功与否
matchId: any; //用于埋点上传的ID
custom: number; //用于测试跳关卡
};
static LEVEL_INFO: { //第一难度
number: number; //太阳总数
moveNumber: number; //太阳可移动个数
moveSpeed: number; //太阳移动速度等级
maxDistance: number; //布局后移动最大距离
maxMove: number; //每个太阳之间距离最大间距
repeat: number; //是否重叠现在0 不重叠 1 重叠1个
}[];
static GAME_DATA: any[];
static CLICK_DATA: {
type: number; //上传数据类型
success: boolean; //此局游戏胜负
@ -35,16 +31,23 @@ export class GameConfig {
sunList: any[]; //太阳数组,用于存放太阳类型 0:普通 1:移动 2:重叠
stepTimeList: any[]; //每次点击间隔
remainder: number; //游戏剩余时间
gap: any[]; //点击到太阳中心距离
};
static GM_INFO: {
// isEnd: false,
mean_Time: number; //平均放箭速度
total: number; //总共对的个数
currSeed: number; //用于随机数种子
gameId: string; //游戏ID
userId: number; //用户ID
scode: string; //用户code,从网页后缀获取
guide: boolean; //是否有引导
url: string; //访问域名
success: boolean; //用户游戏成功与否
matchId: any; //用于埋点上传的ID
custom: number; //用于测试跳关卡
gap: any[]; //存储点击到太阳中心距离
};
static LEVEL_INFO: { //第一难度
number: number; //太阳总数
moveNumber: number; //太阳可移动个数
moveSpeed: number; //太阳移动速度等级
maxDistance: number; //布局后移动最大距离
maxMove: number; //每个太阳之间距离最大间距
repeat: number; //是否重叠现在0 不重叠 1 重叠1个
}[];
static GAME_DATA: any[];
static get Instance()
@ -71,27 +74,27 @@ export class GameConfig {
this.LEVEL_INFO_init();
var self = this;
cc.resources.load('Json/GM_INFO', (err: any, res: cc.JsonAsset) => {
if (err) {
WeChat.setShare(location.href);
self.Authentication();
return;
}
let jsonData: object = res.json!;
self.GM_INFO = jsonData["data"];
self.setCode(self.getKey("scode"));
WeChat.setShare(location.href);
self.Authentication();
// cc.resources.load('Json/GM_INFO', (err: any, res: cc.JsonAsset) => {
// if (err) {
// WeChat.setShare(location.href);
// // self.Authentication();
// return;
// }
// let jsonData: object = res.json!;
// self.GM_INFO = jsonData["data"];
// self.setCode(self.getKey("scode"));
// WeChat.setShare(location.href);
// // self.Authentication();
})
cc.resources.load('Json/CLICK_DATA', (err: any, res: cc.JsonAsset) => {
if (err) {
// })
// cc.resources.load('Json/CLICK_DATA', (err: any, res: cc.JsonAsset) => {
// if (err) {
return;
}
let jsonData: object = res.json!;
self.CLICK_DATA = jsonData["data"];
})
// return;
// }
// let jsonData: object = res.json!;
// self.CLICK_DATA = jsonData["data"];
// })
cc.resources.load('Json/LEVEL_INFO', (err: any, res: cc.JsonAsset) => {
if (err) {
return;
@ -119,9 +122,12 @@ export class GameConfig {
url: "https://api.sparkus.cn",//访问域名
success: false, //用户游戏成功与否
matchId: null, //用于埋点上传的ID
custom: 0 //用于测试跳关卡
custom: 0, //用于测试跳关卡
gap:[] //存储点击到太阳中心距离
};
this.setCode(this.getKey("scode"));
WeChat.setShare(location.href);
this.Authentication();
}
static CLICK_init() {
this.CLICK_DATA =
@ -138,8 +144,10 @@ export class GameConfig {
difficultyLevel: 0, //此次难度
sunList: [], //太阳数组,用于存放太阳类型 0:普通 1:移动 2:重叠
stepTimeList: [], //每次点击间隔
remainder: 120 //游戏剩余时间
remainder: 120, //游戏剩余时间
gap:[] //点击到太阳中心距离
}
}
static LEVEL_INFO_init() {
this.LEVEL_INFO = [

View File

@ -13,7 +13,7 @@
},
{
"__type__": "cc.Node",
"_name": "qiu1",
"_name": "qiu4",
"_objFlags": 0,
"_parent": null,
"_children": [

View File

@ -13,6 +13,7 @@
"difficultyLevel": 0,
"sunList": [],
"stepTimeList": [],
"remainder": 120
"remainder": 120,
"gap":[]
}
}

File diff suppressed because one or more lines are too long

View File

@ -11,13 +11,15 @@ window.boot = function () {
var MAIN = cc.AssetManager.BuiltinBundleName.MAIN;
function setLoadingDisplay () {
// Loading splash scene
var splash = document.getElementById('splash');
var star = document.getElementById('_star');
var progressBar = document.getElementById('progress-bar');
var progressIcon = document.getElementById('progress-icon');
var progressContainer = document.querySelector('.progress-container');
onProgress = function (finish, total) {
};
cc.director.once(cc.Director.EVENT_AFTER_SCENE_LAUNCH, function () {
splash.style.display = 'none';
star.style.display = 'none';
progressBar.style.display = 'none';
progressIcon.style.display = 'none';
progressContainer.style.display = 'none';
});
}
@ -102,7 +104,16 @@ window.boot = function () {
count++;
if (count === bundleRoot.length + 1) {
cc.assetManager.loadBundle(MAIN, function (err) {
if (!err) cc.game.run(option, onStart);
if (!err){
let time = 4 - window.progress_Index/3*0.2;
if(time <= 0) cc.game.run(option, onStart);
else{
window.addSpeed_Index = 3;
setTimeout(() => {
cc.game.run(option, onStart);
}, time*1000/1.5);
}
}
});
}
}

Binary file not shown.

View File

@ -1 +1 @@
{"paths":{},"types":[],"uuids":["a2MjXRFdtLlYQ5ouAFv/+R","14K23Xm1ROrrsGMBKG1Ql4","1fwAIEeM1Nn7i705Pdg5L5","23CIt+PSBBMJopNtpbffXh","29FYIk+N1GYaeWH/q1NxQO","29G9ngwKpNW56EfZdKv0SX","2dL3kvpAxJu6GJ7RdqJG5J","37ND3actNCqZoLzr1NBiTF","46BfYz5xdMnqrgjOetBb8L","48Foz8zQZDfLObHQegvteG","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","59MsqY7oZEy71JeUeyyS/Z","61cyPdEfRN047sDK9rO0W5","63m/tYswFOS7sCMuQGQ4kn","651MDCXIFPuZKQK1+nWOzk","71VhFCTINJM6/Ky3oX9nBT","77SCm7Ej5ItpMOaz4CSRUG","8eZObX1ehJkKU3GR/hPgya","93XHrCUNdAwJfBzyLGAOJ5","9cCAYtTPFLbqi6SjiBzH59","adrVhydQhMD7nhiXljhNId","b4P/PCArtIdIH38t6mlw8Y","d3OhOXdm5P4JNse7X8GMGe","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","e7CzEDg/FMZpCTGJfBpdSu","e8Ueib+qJEhL6mXAHdnwbi","e97GVMl6JHh5Ml5qEDdSGa","eezChet5VG27PW9q3qdOpv","f0BIwQ8D5Ml7nTNQbh1YlS","f7ZJEQGfdJraVAIIAn8NFW","02delMVqdBD70a/HSD99FK","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","13EQ5PNYdOa4gRDKFsrIFJ","167IfY0HdDyZdtlLDeaDkg","27FeLB8OpGcaDrf9NiEDKz","28Gg0A8X1JHpYnbH9vZIzV","2aJVC/rshLnpvG+lkallqC","2cyTcZvcZP7rjmchhWREEu","3aIyOI2NxPeaHqgvY4W3zi","3fgys9roZKo5OdfZn0T4Fo","432ND8vGNFM4/Pxt+hVLkb","4cuYcoe7tPiIdp6gbSnrvF","4c7tzGCVNKE5yvOmzu4CXt","57X2D8NaxKHZ7D/uwxGBCK","59Sn0ZhhJHf7HX55ZqGeqE","5aBm0rBa9Gxr8lWEiz8nAb","5bsctimnBNw4onIGVsCfsU","5cO7kybDxGj4ipyMYdRYZB","5eUVg3ZQ5FhKCJ4qAl42w5","5f5dyqtRNNxaFmVzYns6FZ","61c+AvZ7lJH4DcNNAnJ//N","6cyjAC9cJDE6x1PK28Td4v","6eoolBkxxPvof0z1pzKU+w","70mY8jP3NKVonyvxI9/f6z","818w6dGPRH+rXb8KDTjDgq","8cv+mgkU9OTIB7sHOwnyZ8","8eo+QfsThNk7a0r8Ilro8q","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","99vgruzGRMmJOIRLdPaQYs","9bvaMerUlDyary99mJa6xp","9cBsd3MbFMC56GS/sJnS6r","9c3CkVjW9H27x0Hoq3KNFJ","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","adR/bBScVC/bM24V3TdrfL","adULT7sm1JR6vTV/oW1JIb","bcITWltAtAD4sUjinM7HdJ","c6VxSCRHRB+qS91aK866px","ceNMgtpZhCsKd8anXNKd7b","d1MjdySrJFJ70gUB/k+5cj","d7kiZgBYNPyIwqRjgGX7l0","ddnWn8vDxCOZaOnG9OVNnP","deq5vhWmZCFJ97k3T54cZ0","e82yVDavlBc6NpbK/tA6Dr","ecpdLyjvZBwrvm+cedCcQy","f1O5RoDlhGrI6+/w3NObrX"],"scenes":{"db://assets/Scene/GameScene.fire":11,"db://assets/Scene/GuideScene.fire":17,"db://assets/Scene/LoadScene.fire":20,"db://assets/Scene/OverScene.fire":10,"db://assets/Scene/RankScene.fire":6},"redirect":[32,0,33,1,34,1,36,1,37,1,39,1,40,1,43,1,48,1,49,1,53,1,54,1,56,1,58,1,59,1,60,1,61,1,62,1,64,1,66,1,67,1,69,1,70,1,71,1,72,1,74,1,76,1,78,0,79,1],"deps":["internal","resources"],"packs":{"01587c953":[3,4,18,20,0,26,77,28,30],"05f3c1ca4":[7,17,0,73,23],"0792a0dcc":[2,5,8,9,12,13,14,15,16,19,21,22,24,25,27,29,31],"0c3c65793":[1,10,46,65],"0cd1ec7f1":[55,75],"0d7de01d8":[35,38,4,7,41,42,44,45,11,51,57,0,23,28,30],"0e0598680":[1,6,47,50,52,63,68]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["01587c953","f064d","05f3c1ca4","1b0a3","0792a0dcc","c99c1","0c3c65793","34bfc","0cd1ec7f1","718bb","0d7de01d8","334d7","0e0598680","b46ac"],"native":[2,"42c23",3,"93a46",5,"6e8cb",8,"f61d5",9,"c8c0d",12,"d38b4",13,"6d707",14,"0828f",15,"618c7",16,"c06a9",18,"3ecad",19,"c0bdf",21,"2ac7c",22,"83fcc",24,"d55c2",25,"cdbc9",26,"58a8e",27,"90cf4",29,"40762",31,"27e3b"]}}
{"paths":{},"types":[],"uuids":["a2MjXRFdtLlYQ5ouAFv/+R","14K23Xm1ROrrsGMBKG1Ql4","1fwAIEeM1Nn7i705Pdg5L5","23CIt+PSBBMJopNtpbffXh","29FYIk+N1GYaeWH/q1NxQO","29G9ngwKpNW56EfZdKv0SX","2dL3kvpAxJu6GJ7RdqJG5J","37ND3actNCqZoLzr1NBiTF","46BfYz5xdMnqrgjOetBb8L","48Foz8zQZDfLObHQegvteG","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","59MsqY7oZEy71JeUeyyS/Z","61cyPdEfRN047sDK9rO0W5","63m/tYswFOS7sCMuQGQ4kn","651MDCXIFPuZKQK1+nWOzk","71VhFCTINJM6/Ky3oX9nBT","77SCm7Ej5ItpMOaz4CSRUG","8eZObX1ehJkKU3GR/hPgya","93XHrCUNdAwJfBzyLGAOJ5","9cCAYtTPFLbqi6SjiBzH59","adrVhydQhMD7nhiXljhNId","b4P/PCArtIdIH38t6mlw8Y","d3OhOXdm5P4JNse7X8GMGe","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","e7CzEDg/FMZpCTGJfBpdSu","e8Ueib+qJEhL6mXAHdnwbi","e97GVMl6JHh5Ml5qEDdSGa","eezChet5VG27PW9q3qdOpv","f0BIwQ8D5Ml7nTNQbh1YlS","f7ZJEQGfdJraVAIIAn8NFW","02delMVqdBD70a/HSD99FK","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","13EQ5PNYdOa4gRDKFsrIFJ","167IfY0HdDyZdtlLDeaDkg","27FeLB8OpGcaDrf9NiEDKz","28Gg0A8X1JHpYnbH9vZIzV","2aJVC/rshLnpvG+lkallqC","2cyTcZvcZP7rjmchhWREEu","3aIyOI2NxPeaHqgvY4W3zi","3fgys9roZKo5OdfZn0T4Fo","432ND8vGNFM4/Pxt+hVLkb","4cuYcoe7tPiIdp6gbSnrvF","4c7tzGCVNKE5yvOmzu4CXt","57X2D8NaxKHZ7D/uwxGBCK","59Sn0ZhhJHf7HX55ZqGeqE","5aBm0rBa9Gxr8lWEiz8nAb","5bsctimnBNw4onIGVsCfsU","5cO7kybDxGj4ipyMYdRYZB","5eUVg3ZQ5FhKCJ4qAl42w5","5f5dyqtRNNxaFmVzYns6FZ","61c+AvZ7lJH4DcNNAnJ//N","6cyjAC9cJDE6x1PK28Td4v","6eoolBkxxPvof0z1pzKU+w","70mY8jP3NKVonyvxI9/f6z","818w6dGPRH+rXb8KDTjDgq","8cv+mgkU9OTIB7sHOwnyZ8","8eo+QfsThNk7a0r8Ilro8q","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","99vgruzGRMmJOIRLdPaQYs","9bvaMerUlDyary99mJa6xp","9cBsd3MbFMC56GS/sJnS6r","9c3CkVjW9H27x0Hoq3KNFJ","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","adR/bBScVC/bM24V3TdrfL","adULT7sm1JR6vTV/oW1JIb","bcITWltAtAD4sUjinM7HdJ","c6VxSCRHRB+qS91aK866px","ceNMgtpZhCsKd8anXNKd7b","d1MjdySrJFJ70gUB/k+5cj","d7kiZgBYNPyIwqRjgGX7l0","ddnWn8vDxCOZaOnG9OVNnP","deq5vhWmZCFJ97k3T54cZ0","e82yVDavlBc6NpbK/tA6Dr","ecpdLyjvZBwrvm+cedCcQy","f1O5RoDlhGrI6+/w3NObrX"],"scenes":{"db://assets/Scene/GameScene.fire":11,"db://assets/Scene/GuideScene.fire":17,"db://assets/Scene/LoadScene.fire":20,"db://assets/Scene/OverScene.fire":10,"db://assets/Scene/RankScene.fire":6},"redirect":[32,0,33,1,34,1,36,1,37,1,39,1,40,1,43,1,48,1,49,1,53,1,54,1,56,1,58,1,59,1,60,1,61,1,62,1,64,1,66,1,67,1,69,1,70,1,71,1,72,1,74,1,76,1,78,0,79,1],"deps":["internal","resources"],"packs":{"01587c953":[3,4,18,20,0,26,77,28,30],"05f3c1ca4":[7,17,0,73,23],"0792a0dcc":[2,5,8,9,12,13,14,15,16,19,21,22,24,25,27,29,31],"0c3c65793":[1,10,46,65],"0cd1ec7f1":[55,75],"0d7de01d8":[35,38,4,7,41,42,44,45,11,51,57,0,23,28,30],"0e0598680":[1,6,47,50,52,63,68]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["01587c953","f064d","05f3c1ca4","2cb7c","0792a0dcc","c99c1","0c3c65793","34bfc","0cd1ec7f1","718bb","0d7de01d8","334d7","0e0598680","b46ac"],"native":[2,"42c23",3,"93a46",5,"6e8cb",8,"f61d5",9,"c8c0d",12,"d38b4",13,"6d707",14,"0828f",15,"618c7",16,"c06a9",18,"3ecad",19,"c0bdf",21,"2ac7c",22,"83fcc",24,"d55c2",25,"cdbc9",26,"58a8e",27,"90cf4",29,"40762",31,"27e3b"]}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"paths":{"0":["yun",1],"1":["bg",1],"2":["guang_2",1],"3":["bg_rank",1],"4":["publicUI",1],"5":["bg2",1],"6":["guang",1],"7":["20240524-174503",1],"8":["bg2",0,1],"9":["yun",0,1],"10":["Json/LEVEL_INFO",2],"11":["Json/GM_INFO",2],"12":["bg_rank",0,1],"13":["20240524-174503",0,1],"14":["bg",0,1],"15":["guang_2",0,1],"16":["Json/CLICK_DATA",2],"17":["guang",0,1],"18":["publicUI",3]},"types":["cc.SpriteFrame","cc.Texture2D","cc.JsonAsset","cc.SpriteAtlas"],"uuids":["19NhAe0HhNmK1lCGGmQnsb","42TxGyJ81PNqtwYqXM6mB0","53BUp/Iq9LO7rKuXjwfRQv","7ai0GtlCVE4o9Vd0DxKw4K","94c+x9lnBOW4sqSKA1chWj","b6grnYmZhG7r4S4CMftb9p","c5LbvY7lJLEI+0b93wk71x","f1ICtgy6BBbKlNg/T6ZWOd","27FeLB8OpGcaDrf9NiEDKz","2aJVC/rshLnpvG+lkallqC","2c3b3LXbpLE5YMnr5tF6fb","2daaR5GOxHh7Nf6amzJHQ1","5aBm0rBa9Gxr8lWEiz8nAb","c5t3Oq46ZNk4MEr6LFqM+b","d7kiZgBYNPyIwqRjgGX7l0","deq5vhWmZCFJ97k3T54cZ0","e11X5jTy9GfZxVCoidVTOo","f1O5RoDlhGrI6+/w3NObrX","f6g7AdTUpLZKBUdB4HhdUS","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","167IfY0HdDyZdtlLDeaDkg","18oY+WcP9M541fyDfTFTZQ","1d9sSChWtOoLD7PVk0KmmD","1fUgqNSORMWbcjhsQ1vvQn","2cyTcZvcZP7rjmchhWREEu","3d6UnEymJPs4EIKwHr92xw","432ND8vGNFM4/Pxt+hVLkb","50JCUKus9HvaOCj+ncNR03","5bsctimnBNw4onIGVsCfsU","5cvkLdAV1OT4NKPi8p71fg","61c+AvZ7lJH4DcNNAnJ//N","6aOWqonBpHh7Zbe4D6AdUy","6cyjAC9cJDE6x1PK28Td4v","70mY8jP3NKVonyvxI9/f6z","8cv+mgkU9OTIB7sHOwnyZ8","8eo+QfsThNk7a0r8Ilro8q","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","96FRA8sCdIybKmTQHllKeE","99vgruzGRMmJOIRLdPaQYs","9cBsd3MbFMC56GS/sJnS6r","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","a9F1D3ff9HN7KfQux8dSot","acoMdZa5ZBx7/SXNUZUGdL","adULT7sm1JR6vTV/oW1JIb","aeJB6XXh5Dyb3zyADSlUJQ","ba1RV12ixKza3fWFxY2WgG","bcITWltAtAD4sUjinM7HdJ","bfAWn7KbVJg4qf17ISJQpy","c6VxSCRHRB+qS91aK866px","cdye7zCkZEtbIhnMJzk20I","ceNMgtpZhCsKd8anXNKd7b","e38yDbOrhJuq9djtPi8Itk","eexd04eidDZ6ngziowUxBl","efcn3uoMZNrbHVZvQrfV7h","f0aCOd75hBgpyQVx0CL0zh"],"scenes":{},"redirect":[],"deps":[],"packs":{"03a884c05":[0,1,2,3,4,5,6,7],"03a988253":[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,18]},"name":"resources","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["03a884c05","9b835","03a988253","ee0d0",8,"cf6b4",9,"c6a13",10,"22ebd",11,"681b4",12,"83dfc",13,"9925b",14,"46426",15,"d8461",16,"34d4f",17,"76f77"],"native":[0,"279b8",1,"fc6d4",2,"adf2b",3,"b40e5",4,"b0011",5,"4e75e",6,"8e53f",7,"279b8"]}}
{"paths":{"0":["yun",1],"1":["bg",1],"2":["guang_2",1],"3":["bg_rank",1],"4":["publicUI",1],"5":["bg2",1],"6":["guang",1],"7":["20240524-174503",1],"8":["bg2",0,1],"9":["yun",0,1],"10":["Json/LEVEL_INFO",2],"11":["Json/GM_INFO",2],"12":["bg_rank",0,1],"13":["20240524-174503",0,1],"14":["bg",0,1],"15":["guang_2",0,1],"16":["Json/CLICK_DATA",2],"17":["guang",0,1],"18":["publicUI",3]},"types":["cc.SpriteFrame","cc.Texture2D","cc.JsonAsset","cc.SpriteAtlas"],"uuids":["19NhAe0HhNmK1lCGGmQnsb","42TxGyJ81PNqtwYqXM6mB0","53BUp/Iq9LO7rKuXjwfRQv","7ai0GtlCVE4o9Vd0DxKw4K","94c+x9lnBOW4sqSKA1chWj","b6grnYmZhG7r4S4CMftb9p","c5LbvY7lJLEI+0b93wk71x","f1ICtgy6BBbKlNg/T6ZWOd","27FeLB8OpGcaDrf9NiEDKz","2aJVC/rshLnpvG+lkallqC","2c3b3LXbpLE5YMnr5tF6fb","2daaR5GOxHh7Nf6amzJHQ1","5aBm0rBa9Gxr8lWEiz8nAb","c5t3Oq46ZNk4MEr6LFqM+b","d7kiZgBYNPyIwqRjgGX7l0","deq5vhWmZCFJ97k3T54cZ0","e11X5jTy9GfZxVCoidVTOo","f1O5RoDlhGrI6+/w3NObrX","f6g7AdTUpLZKBUdB4HhdUS","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","167IfY0HdDyZdtlLDeaDkg","18oY+WcP9M541fyDfTFTZQ","1d9sSChWtOoLD7PVk0KmmD","1fUgqNSORMWbcjhsQ1vvQn","2cyTcZvcZP7rjmchhWREEu","3d6UnEymJPs4EIKwHr92xw","432ND8vGNFM4/Pxt+hVLkb","50JCUKus9HvaOCj+ncNR03","5bsctimnBNw4onIGVsCfsU","5cvkLdAV1OT4NKPi8p71fg","61c+AvZ7lJH4DcNNAnJ//N","6aOWqonBpHh7Zbe4D6AdUy","6cyjAC9cJDE6x1PK28Td4v","70mY8jP3NKVonyvxI9/f6z","8cv+mgkU9OTIB7sHOwnyZ8","8eo+QfsThNk7a0r8Ilro8q","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","96FRA8sCdIybKmTQHllKeE","99vgruzGRMmJOIRLdPaQYs","9cBsd3MbFMC56GS/sJnS6r","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","a9F1D3ff9HN7KfQux8dSot","acoMdZa5ZBx7/SXNUZUGdL","adULT7sm1JR6vTV/oW1JIb","aeJB6XXh5Dyb3zyADSlUJQ","ba1RV12ixKza3fWFxY2WgG","bcITWltAtAD4sUjinM7HdJ","bfAWn7KbVJg4qf17ISJQpy","c6VxSCRHRB+qS91aK866px","cdye7zCkZEtbIhnMJzk20I","ceNMgtpZhCsKd8anXNKd7b","e38yDbOrhJuq9djtPi8Itk","eexd04eidDZ6ngziowUxBl","efcn3uoMZNrbHVZvQrfV7h","f0aCOd75hBgpyQVx0CL0zh"],"scenes":{},"redirect":[],"deps":[],"packs":{"03a884c05":[0,1,2,3,4,5,6,7],"03a988253":[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,18]},"name":"resources","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["03a884c05","9b835","03a988253","ee0d0",8,"cf6b4",9,"c6a13",10,"22ebd",11,"681b4",12,"83dfc",13,"9925b",14,"46426",15,"d8461",16,"92a06",17,"76f77"],"native":[0,"279b8",1,"fc6d4",2,"adf2b",3,"b40e5",4,"b0011",5,"4e75e",6,"8e53f",7,"279b8"]}}

View File

@ -1 +1 @@
[1,0,0,[["cc.JsonAsset",["_name","json"],1]],[[0,0,1,3]],[[0,"CLICK_DATA",{"data":{"type":1,"success":false,"round":0,"totalSunCount":0,"movedSunCount":0,"sunSpeed":0,"overlapSunCount":0,"duration":0,"difficultyLevel":0,"remainder":120,"colorList":[],"sunList":[],"stepTimeList":[]}}]],0,0,[],[],[]]
[1,0,0,[["cc.JsonAsset",["_name","json"],1]],[[0,0,1,3]],[[0,"CLICK_DATA",{"data":{"type":1,"success":false,"round":0,"totalSunCount":0,"movedSunCount":0,"sunSpeed":0,"overlapSunCount":0,"duration":0,"difficultyLevel":0,"remainder":120,"colorList":[],"sunList":[],"stepTimeList":[],"gap":[]}}]],0,0,[],[],[]]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -11,13 +11,15 @@ window.boot = function () {
var MAIN = cc.AssetManager.BuiltinBundleName.MAIN;
function setLoadingDisplay () {
// Loading splash scene
var splash = document.getElementById('splash');
var star = document.getElementById('_star');
var progressBar = document.getElementById('progress-bar');
var progressIcon = document.getElementById('progress-icon');
var progressContainer = document.querySelector('.progress-container');
onProgress = function (finish, total) {
};
cc.director.once(cc.Director.EVENT_AFTER_SCENE_LAUNCH, function () {
splash.style.display = 'none';
star.style.display = 'none';
progressBar.style.display = 'none';
progressIcon.style.display = 'none';
progressContainer.style.display = 'none';
});
}
@ -102,7 +104,16 @@ window.boot = function () {
count++;
if (count === bundleRoot.length + 1) {
cc.assetManager.loadBundle(MAIN, function (err) {
if (!err) cc.game.run(option, onStart);
if (!err){
let time = 4 - window.progress_Index/3*0.2;
if(time <= 0) cc.game.run(option, onStart);
else{
window.addSpeed_Index = 3;
setTimeout(() => {
cc.game.run(option, onStart);
}, time*1000/1.5);
}
}
});
}
}
@ -117,7 +128,7 @@ window.boot = function () {
if (window.jsb) {
var isRuntime = (typeof loadRuntime === 'function');
if (isRuntime) {
require('src/settings.9a03e.js');
require('src/settings.d5bf7.js');
require('src/cocos2d-runtime.js');
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
require('src/physics.js');
@ -125,7 +136,7 @@ if (window.jsb) {
require('jsb-adapter/engine/index.js');
}
else {
require('src/settings.9a03e.js');
require('src/settings.d5bf7.js');
require('src/cocos2d-jsb.js');
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
require('src/physics.js');

View File

@ -1 +1 @@
window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Scene/LoadScene.fire",orientation:"portrait",jsList:[],bundleVers:{internal:"52d36",resources:"2d635",main:"57d1e"}};
window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Scene/LoadScene.fire",orientation:"portrait",jsList:[],bundleVers:{internal:"52d36",resources:"a8f46",main:"ecbbc"}};

View File

@ -31,6 +31,7 @@ var NewClass = /** @class */ (function (_super) {
}
// onLoad () {}
NewClass.prototype.start = function () {
this.node.on(cc.Node.EventType.TOUCH_START, this.clickBtn, this);
};
//初始化数据
NewClass.prototype.init = function (_id, color, speed, repeat) {
@ -55,9 +56,16 @@ var NewClass = /** @class */ (function (_super) {
if (type == true)
this.node.getChildByName("number").getComponent(cc.Label).string = this.id_Number + "";
};
//计算两点之间直线距离
NewClass.prototype.distanceBetweenTwoPoints = function (x1, y1, x2, y2) {
return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2));
};
//点击事件
NewClass.prototype.clickBtn = function (event, data) {
if (data === "1") {
var pos = this.node.convertToNodeSpaceAR(event.getLocation());
var distance = this.distanceBetweenTwoPoints(pos.x, 0, pos.y, 0);
distance = Math.floor(distance * 10) / 10;
if (this.node.name != "qiu4") {
if (this.move == false && this.touch == true) {
if (this.node.parent.parent.name == "GameNode") {
if (this.node.parent.parent.getComponent("GameManager").begin == true) {
@ -70,13 +78,15 @@ var NewClass = /** @class */ (function (_super) {
.start();
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun", this.id_Number);
var data_1 = { id: this.id_Number, distance: distance };
cc.fx.Notifications.emit("clickSun", data_1);
}
}
else {
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun", this.id_Number);
var data_2 = { id: this.id_Number, distance: distance };
cc.fx.Notifications.emit("clickSun", data_2);
}
}
}
@ -84,7 +94,8 @@ var NewClass = /** @class */ (function (_super) {
if (this.touch == true && this.node.parent.parent.getComponent("GuideManager").begin == true) {
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun", this.id_Number);
var data_3 = { id: this.id_Number, distance: distance };
cc.fx.Notifications.emit("clickSun", data_3);
}
}
};

File diff suppressed because one or more lines are too long

View File

@ -58,6 +58,7 @@ var WeChat = /** @class */ (function () {
WeChat.getResult = function (res) {
if (res) {
var data = res.data;
// @ts-ignore
wx.config({
debug: false,
appId: data.appId,
@ -66,6 +67,7 @@ var WeChat = /** @class */ (function () {
signature: data.signature,
jsApiList: ['onMenuShareTimeline', 'updateAppMessageShareData', 'updateTimelineShareData', 'onMenuShareAppMessage']
});
// @ts-ignore
wx.checkJsApi({
jsApiList: ['updateAppMessageShareData'],
success: function (res) {
@ -80,7 +82,9 @@ var WeChat = /** @class */ (function () {
}
};
WeChat.changeShare = function () {
// @ts-ignore
wx.ready(function () {
// @ts-ignore
wx.updateAppMessageShareData({
title: '记忆力认知测评',
desc: '你的注意力和工作记忆有问题吗?',
@ -92,6 +96,7 @@ var WeChat = /** @class */ (function () {
}
});
setTimeout(function () {
// @ts-ignore
wx.updateTimelineShareData({
title: '记忆力认知测评',
link: shareConfig.shareLine,

File diff suppressed because one or more lines are too long

View File

@ -107,6 +107,9 @@ var NewClass = /** @class */ (function (_super) {
};
//根据内容填充排行榜
NewClass.prototype.setRank = function (num, data) {
if (!data) {
return;
}
var hitNode = null;
if (num == 0) {
hitNode = this.one;
@ -125,7 +128,7 @@ var NewClass = /** @class */ (function (_super) {
}
if (hitNode) {
hitNode.active = true;
cc.fx.GameTool.subName(data.nickName, 4);
data.nickName = cc.fx.GameTool.subName(data.nickName, 4);
hitNode.getChildByName("name").getComponent(cc.Label).string = data.nickName;
hitNode.getChildByName("total").getComponent(cc.Label).string = data.totalSunCount;
cc.fx.GameTool.setPic(hitNode.getChildByName("pic").getChildByName("icon"), data.pic);

File diff suppressed because one or more lines are too long

View File

@ -234,6 +234,7 @@ var GameManager = /** @class */ (function (_super) {
this.ball_Array[k].removeFromParent();
this.ball_Array[k] = null;
}
cc.fx.GameConfig.GM_INFO.gap = [];
};
//点击太阳执行方法
GameManager.prototype.clickSun = function (data) {
@ -243,12 +244,13 @@ var GameManager = /** @class */ (function (_super) {
var clickTime = cc.fx.GameTool.getTime();
this.time_Array.push((clickTime - this.timeStart));
this.timeStart = cc.fx.GameTool.getTime();
if (data == this.clickNow) {
if (data.id == this.clickNow) {
cc.fx.AudioManager._instance.playAudioButton();
if (this.clickNow > 0) {
this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2);
}
this.clickNow += 1;
cc.fx.GameConfig.GM_INFO.gap.push(data.distance);
if (this.ball_Array[this.clickNow - 1])
this.ball_Array[this.clickNow - 1].getChildByName("guang").active = false;
if (this.clickNow == this.now_Array.length) {
@ -303,7 +305,8 @@ var GameManager = /** @class */ (function (_super) {
difficultyLevel: this.level,
sunList: sunArray,
stepTimeList: this.time_Array,
remainder: this.countTime
remainder: this.countTime,
gap: cc.fx.GameConfig.GM_INFO.gap
};
if (cc.fx.GameConfig.CLICK_DATA.duration > 50) {
cc.fx.GameConfig.CLICK_DATA.duration = 50;
@ -337,12 +340,12 @@ var GameManager = /** @class */ (function (_super) {
}
}
else {
this.setLoss();
this.setLoss(data);
}
}
};
//执行失败
GameManager.prototype.setLoss = function () {
GameManager.prototype.setLoss = function (data) {
cc.fx.AudioManager._instance.playWarning();
this.begin = false;
this.overTime = cc.fx.GameTool.getTime();
@ -378,6 +381,7 @@ var GameManager = /** @class */ (function (_super) {
sunArray.push(0);
}
}
cc.fx.GameConfig.GM_INFO.gap.push(data.distance);
cc.fx.GameConfig.CLICK_DATA =
{
type: 1,
@ -392,7 +396,8 @@ var GameManager = /** @class */ (function (_super) {
difficultyLevel: this.level,
sunList: sunArray,
stepTimeList: this.time_Array,
remainder: this.countTime
remainder: this.countTime,
gap: cc.fx.GameConfig.GM_INFO.gap
};
if (cc.fx.GameConfig.CLICK_DATA.duration > 50) {
cc.fx.GameConfig.CLICK_DATA.duration = 50;
@ -927,7 +932,7 @@ var GameManager = /** @class */ (function (_super) {
this.begin = false;
this.over = true;
this.unschedule(this.updateCountDownTime);
this.setLoss();
this.setLoss({ distance: 0 });
var time = 0;
if (this.clickCount > 0)
time = parseInt(cc.fx.GameConfig.GM_INFO.mean_Time / this.clickCount + "");

File diff suppressed because one or more lines are too long

View File

@ -40,25 +40,25 @@ var GameConfig = /** @class */ (function () {
this.CLICK_init();
this.LEVEL_INFO_init();
var self = this;
cc.resources.load('Json/GM_INFO', function (err, res) {
if (err) {
share_1.WeChat.setShare(location.href);
self.Authentication();
return;
}
var jsonData = res.json;
self.GM_INFO = jsonData["data"];
self.setCode(self.getKey("scode"));
share_1.WeChat.setShare(location.href);
self.Authentication();
});
cc.resources.load('Json/CLICK_DATA', function (err, res) {
if (err) {
return;
}
var jsonData = res.json;
self.CLICK_DATA = jsonData["data"];
});
// cc.resources.load('Json/GM_INFO', (err: any, res: cc.JsonAsset) => {
// if (err) {
// WeChat.setShare(location.href);
// // self.Authentication();
// return;
// }
// let jsonData: object = res.json!;
// self.GM_INFO = jsonData["data"];
// self.setCode(self.getKey("scode"));
// WeChat.setShare(location.href);
// // self.Authentication();
// })
// cc.resources.load('Json/CLICK_DATA', (err: any, res: cc.JsonAsset) => {
// if (err) {
// return;
// }
// let jsonData: object = res.json!;
// self.CLICK_DATA = jsonData["data"];
// })
cc.resources.load('Json/LEVEL_INFO', function (err, res) {
if (err) {
return;
@ -83,9 +83,12 @@ var GameConfig = /** @class */ (function () {
url: "https://api.sparkus.cn",
success: false,
matchId: null,
custom: 0 //用于测试跳关卡
custom: 0,
gap: [] //存储点击到太阳中心距离
};
this.setCode(this.getKey("scode"));
share_1.WeChat.setShare(location.href);
this.Authentication();
};
GameConfig.CLICK_init = function () {
this.CLICK_DATA =
@ -102,7 +105,8 @@ var GameConfig = /** @class */ (function () {
difficultyLevel: 0,
sunList: [],
stepTimeList: [],
remainder: 120 //游戏剩余时间
remainder: 120,
gap: [] //点击到太阳中心距离
};
};
GameConfig.LEVEL_INFO_init = function () {

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
},
{
"__type__": "cc.Node",
"_name": "qiu1",
"_name": "qiu4",
"_objFlags": 0,
"_parent": null,
"_children": [

View File

@ -17,7 +17,8 @@
"difficultyLevel": 0,
"sunList": [],
"stepTimeList": [],
"remainder": 120
"remainder": 120,
"gap": []
}
}
}

View File

@ -85,8 +85,8 @@
"relativePath": "prefab\\qiu3.prefab"
},
"d1323772-4ab2-4527-bd20-501fe4fb9723": {
"asset": 1717128451209,
"meta": 1717128451214,
"asset": 1729825469831,
"meta": 1729825469838,
"relativePath": "prefab\\qiu4.prefab"
},
"4b9c5a7e-c645-48a4-9aca-5df381ce4ef5": {
@ -240,8 +240,8 @@
"relativePath": "resources\\20240524-174503.png"
},
"4eaf518b-35ec-4262-928d-4d497c3f2830": {
"asset": 1717136309187,
"meta": 1717136309194,
"asset": 1729827209862,
"meta": 1729827209870,
"relativePath": "Scene\\GameScene.fire"
},
"1fc00204-78cd-4d9f-b8bb-d393dd8392f9": {
@ -365,23 +365,18 @@
"relativePath": "Script\\module\\Storage\\Storage.ts"
},
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d": {
"asset": 1724225513531,
"meta": 1724225513549,
"asset": 1729825485213,
"meta": 1729825485220,
"relativePath": "Scene\\LoadScene.fire"
},
"4be67b1d-91ec-42ca-a2e5-d0d1ddf4dd5f": {
"asset": 1718607296698,
"meta": 1718607561426,
"relativePath": "Script\\Sun.ts"
},
"ff9e9b41-3a4c-4198-b442-6a4a1646297d": {
"asset": 1718612502779,
"meta": 1718612898273,
"relativePath": "resources\\Json"
},
"e1d57e63-4f2f-467d-9c55-0a889d5533a8": {
"asset": 1718613823190,
"meta": 1718613998653,
"asset": 1729764377579,
"meta": 1729824830797,
"relativePath": "resources\\Json\\CLICK_DATA.json"
},
"2cddbdcb-5dba-4b13-960c-9ebe6d17a7db": {
@ -394,11 +389,6 @@
"meta": 1718621499350,
"relativePath": "Script\\module\\Music\\AudioManager.ts"
},
"b0432040-dbde-438c-839c-ba2b5d18a3b5": {
"asset": 1718621730315,
"meta": 1718621731706,
"relativePath": "Script\\GameManager.ts"
},
"3fd2f87a-bc73-4978-8494-8b35b4f716ad": {
"asset": 1718621727785,
"meta": 1718621731780,
@ -420,8 +410,8 @@
"relativePath": "Script\\module\\Share"
},
"ca0f9934-a015-436e-9402-f8e30d4c5de6": {
"asset": 1722331720004,
"meta": 1722331746561,
"asset": 1725446344193,
"meta": 1725446368490,
"relativePath": "Script\\module\\RankList\\ItemRender.ts"
},
"e74a9f7d-2031-4e69-bcb2-9998174088b2": {
@ -436,502 +426,502 @@
},
"9836134e-b892-4283-b6b2-78b5acf3ed45": {
"asset": 1714966328642,
"meta": 1724742459551,
"meta": 1729824826966,
"relativePath": "effects"
},
"abc2cb62-7852-4525-a90d-d474487b88f2": {
"asset": 1714966328642,
"meta": 1724742459657,
"meta": 1729824827076,
"relativePath": "effects\\builtin-phong.effect"
},
"e2f00085-c597-422d-9759-52c360279106": {
"asset": 1714966328642,
"meta": 1724742459706,
"meta": 1729824827133,
"relativePath": "effects\\builtin-toon.effect"
},
"430eccbf-bf2c-4e6e-8c0c-884bbb487f32": {
"asset": 1714966328642,
"meta": 1724742459718,
"meta": 1729824827143,
"relativePath": "effects\\__builtin-editor-gizmo-line.effect"
},
"6c5cf6e1-b044-4eac-9431-835644d57381": {
"asset": 1714966328642,
"meta": 1724742459724,
"meta": 1729824827151,
"relativePath": "effects\\__builtin-editor-gizmo-unlit.effect"
},
"115286d1-2e10-49ee-aab4-341583f607e8": {
"asset": 1714966328642,
"meta": 1724742459751,
"meta": 1729824827175,
"relativePath": "effects\\__builtin-editor-gizmo.effect"
},
"f8e6b000-5643-4b86-9080-aa680ce1f599": {
"asset": 1714966328706,
"meta": 1724742459551,
"meta": 1729824826967,
"relativePath": "image"
},
"5c3eedba-6c41-4c0c-9ba7-d91f813cbd1c": {
"asset": 1714966328721,
"meta": 1724742459553,
"meta": 1729824826968,
"relativePath": "materials"
},
"fc09f9bd-2cce-4605-b630-8145ef809ed6": {
"asset": 1714966328721,
"meta": 1724742459555,
"meta": 1729824826968,
"relativePath": "misc"
},
"e851e89b-faa2-4484-bea6-5c01dd9f06e2": {
"asset": 1714966328658,
"meta": 1724742459813,
"meta": 1729824827215,
"relativePath": "image\\default_btn_normal.png"
},
"99170b0b-d210-46f1-b213-7d9e3f23098a": {
"asset": 1714966328673,
"meta": 1724742459801,
"meta": 1729824828104,
"relativePath": "image\\default_progressbar_bg.png"
},
"db019bf7-f71c-4111-98cf-918ea180cb48": {
"asset": 1714966328737,
"meta": 1724742459557,
"meta": 1729824826969,
"relativePath": "model"
},
"4bab67cb-18e6-4099-b840-355f0473f890": {
"asset": 1714966328689,
"meta": 1724742459849,
"meta": 1729824828102,
"relativePath": "image\\default_scrollbar_bg.png"
},
"e39e96e6-6f6e-413f-bcf1-ac7679bb648a": {
"asset": 1714966328737,
"meta": 1724742459815,
"meta": 1729824827232,
"relativePath": "model\\prefab"
},
"617323dd-11f4-4dd3-8eec-0caf6b3b45b9": {
"asset": 1714966328689,
"meta": 1724742459844,
"meta": 1729824828113,
"relativePath": "image\\default_scrollbar_vertical_bg.png"
},
"6e056173-d285-473c-b206-40a7fff5386e": {
"asset": 1714966328689,
"meta": 1724742459851,
"meta": 1729824828112,
"relativePath": "image\\default_sprite.png"
},
"600301aa-3357-4a10-b086-84f011fa32ba": {
"asset": 1714966328642,
"meta": 1724742459804,
"meta": 1729824827231,
"relativePath": "image\\default-particle.png"
},
"71561142-4c83-4933-afca-cb7a17f67053": {
"asset": 1714966328658,
"meta": 1724742459852,
"meta": 1729824827218,
"relativePath": "image\\default_btn_disabled.png"
},
"edd215b9-2796-4a05-aaf5-81f96c9281ce": {
"asset": 1714966328658,
"meta": 1724742459799,
"meta": 1729824827220,
"relativePath": "image\\default_editbox_bg.png"
},
"b43ff3c2-02bb-4874-81f7-f2dea6970f18": {
"asset": 1714966328658,
"meta": 1724742459809,
"meta": 1729824827229,
"relativePath": "image\\default_btn_pressed.png"
},
"f6e6dd15-71d1-4ffe-ace7-24fd39942c05": {
"asset": 1714966328752,
"meta": 1724742459557,
"meta": 1729824826970,
"relativePath": "obsolete"
},
"567dcd80-8bf4-4535-8a5a-313f1caf078a": {
"asset": 1714966328673,
"meta": 1724742459842,
"meta": 1729824828107,
"relativePath": "image\\default_radio_button_off.png"
},
"c4480a0a-6ac5-443f-8b40-361a14257fc8": {
"asset": 1714966328706,
"meta": 1724742460105,
"meta": 1729824828409,
"relativePath": "materials\\builtin-phong.mtl"
},
"f743d2b6-b7ea-4c14-a55b-547ed4d0a045": {
"asset": 1714966328752,
"meta": 1724742459557,
"meta": 1729824826972,
"relativePath": "particle"
},
"d81ec8ad-247c-4e62-aa3c-d35c4193c7af": {
"asset": 1714966328673,
"meta": 1724742459841,
"meta": 1729824827227,
"relativePath": "image\\default_panel.png"
},
"a87cc147-01b2-43f8-8e42-a7ca90b0c757": {
"asset": 1714966328721,
"meta": 1724742460047,
"meta": 1729824828303,
"relativePath": "model\\prefab\\box.prefab"
},
"cfef78f1-c8df-49b7-8ed0-4c953ace2621": {
"asset": 1714966328673,
"meta": 1724742459807,
"meta": 1729824828111,
"relativePath": "image\\default_progressbar.png"
},
"fe1417b6-fe6b-46a4-ae7c-9fd331f33a2a": {
"asset": 1714966328737,
"meta": 1724742460057,
"meta": 1729824828326,
"relativePath": "model\\prefab\\capsule.prefab"
},
"ae6c6c98-11e4-452f-8758-75f5c6a56e83": {
"asset": 1714966328831,
"meta": 1724742459559,
"meta": 1729824826972,
"relativePath": "prefab"
},
"9d60001f-b5f4-4726-a629-2659e3ded0b8": {
"asset": 1714966328673,
"meta": 1724742459846,
"meta": 1729824828115,
"relativePath": "image\\default_radio_button_on.png"
},
"b5fc2cf2-7942-483d-be1f-bbeadc4714ad": {
"asset": 1714966328737,
"meta": 1724742460047,
"meta": 1729824828314,
"relativePath": "model\\prefab\\cone.prefab"
},
"3f376125-a699-40ca-ad05-04d662eaa1f2": {
"asset": 1714966328737,
"meta": 1724742460047,
"meta": 1729824828334,
"relativePath": "model\\prefab\\plane.prefab"
},
"0275e94c-56a7-410f-bd1a-fc7483f7d14a": {
"asset": 1714966328705,
"meta": 1724742459848,
"meta": 1729824828109,
"relativePath": "image\\default_sprite_splash.png"
},
"1c5e4038-953a-44c2-b620-0bbfc6170477": {
"asset": 1714966328737,
"meta": 1724742460051,
"meta": 1729824828326,
"relativePath": "model\\prefab\\cylinder.prefab"
},
"6c9ef10d-b479-420b-bfe6-39cdda6a8ae0": {
"asset": 1714966328737,
"meta": 1724742460051,
"meta": 1729824828342,
"relativePath": "model\\prefab\\quad.prefab"
},
"d6d3ca85-4681-47c1-b5dd-d036a9d39ea2": {
"asset": 1714966328689,
"meta": 1724742459796,
"meta": 1729824828105,
"relativePath": "image\\default_scrollbar_vertical.png"
},
"2d9a4b85-b0ab-4c46-84c5-18f393ab2058": {
"asset": 1714966328737,
"meta": 1724742460057,
"meta": 1729824828342,
"relativePath": "model\\prefab\\sphere.prefab"
},
"de510076-056b-484f-b94c-83bef217d0e1": {
"asset": 1714966328737,
"meta": 1724742460051,
"meta": 1729824828338,
"relativePath": "model\\prefab\\torus.prefab"
},
"0291c134-b3da-4098-b7b5-e397edbe947f": {
"asset": 1714966328689,
"meta": 1724742459854,
"meta": 1729824827225,
"relativePath": "image\\default_scrollbar.png"
},
"897ef7a1-4860-4f64-968d-f5924b18668a": {
"asset": 1714966328752,
"meta": 1724742459864,
"meta": 1729824828124,
"relativePath": "prefab\\2d-camera.prefab"
},
"972b9a4d-47ee-4c74-b5c3-61d8a69bc29f": {
"asset": 1714966328768,
"meta": 1724742459867,
"meta": 1729824828132,
"relativePath": "prefab\\button.prefab"
},
"a3ee0214-b432-4865-9666-4a3211814282": {
"asset": 1714966328800,
"meta": 1724742459865,
"meta": 1729824828125,
"relativePath": "prefab\\light"
},
"2c937608-2562-40ea-b264-7395df6f0cea": {
"asset": 1714966328768,
"meta": 1724742459873,
"meta": 1729824828129,
"relativePath": "prefab\\canvas.prefab"
},
"70d7cdb0-04cd-41bb-9480-c06a4785f386": {
"asset": 1714966328768,
"meta": 1724742459863,
"meta": 1729824828122,
"relativePath": "prefab\\3d-camera.prefab"
},
"70bbeb73-6dc2-4ee4-8faf-76b3a0e34ec4": {
"asset": 1714966328768,
"meta": 1724742459871,
"meta": 1729824828126,
"relativePath": "prefab\\3d-particle.prefab"
},
"ed88f13d-fcad-4848-aa35-65a2cb973584": {
"asset": 1714966328768,
"meta": 1724742459868,
"meta": 1729824828128,
"relativePath": "prefab\\3d-stage.prefab"
},
"61aeb05b-3b32-452b-8eed-2b76deeed554": {
"asset": 1714966328783,
"meta": 1724742459870,
"meta": 1729824828131,
"relativePath": "prefab\\editbox.prefab"
},
"27756ebb-3d33-44b0-9b96-e858fadd4dd4": {
"asset": 1714966328783,
"meta": 1724742459879,
"meta": 1729824828138,
"relativePath": "prefab\\label.prefab"
},
"2be36297-9abb-4fee-8049-9ed5e271da8a": {
"asset": 1714966328721,
"meta": 1724742459926,
"meta": 1729824828184,
"relativePath": "misc\\default_video.mp4"
},
"785a442c-3ceb-45be-a46e-7317f625f3b9": {
"asset": 1714966328783,
"meta": 1724742459881,
"meta": 1729824828141,
"relativePath": "prefab\\layout.prefab"
},
"5965ffac-69da-4b55-bcde-9225d0613c28": {
"asset": 1714966328800,
"meta": 1724742459888,
"meta": 1729824828146,
"relativePath": "prefab\\progressBar.prefab"
},
"cd33edea-55f5-46c2-958d-357a01384a36": {
"asset": 1714966328800,
"meta": 1724742459885,
"meta": 1729824828145,
"relativePath": "prefab\\particlesystem.prefab"
},
"32044bd2-481f-4cf1-a656-e2b2fb1594eb": {
"asset": 1714966328800,
"meta": 1724742459891,
"meta": 1729824828153,
"relativePath": "prefab\\scrollview.prefab"
},
"4a37dd57-78cd-4cec-aad4-f11a73d12b63": {
"asset": 1714966328800,
"meta": 1724742459887,
"meta": 1729824828151,
"relativePath": "prefab\\richtext.prefab"
},
"ca8401fe-ad6e-41a8-bd46-8e3e4e9945be": {
"asset": 1714966328800,
"meta": 1724742459883,
"meta": 1729824828143,
"relativePath": "prefab\\pageview.prefab"
},
"73a0903d-d80e-4e3c-aa67-f999543c08f5": {
"asset": 1714966328706,
"meta": 1724742459913,
"meta": 1729824828167,
"relativePath": "image\\default_toggle_checkmark.png"
},
"0004d1cf-a0ad-47d8-ab17-34d3db9d35a3": {
"asset": 1714966328800,
"meta": 1724742459889,
"meta": 1729824828148,
"relativePath": "prefab\\slider.prefab"
},
"96083d03-c332-4a3f-9386-d03e2d19e8ee": {
"asset": 1714966328815,
"meta": 1724742459900,
"meta": 1729824828174,
"relativePath": "prefab\\sprite.prefab"
},
"d8afc78c-4eac-4a9f-83dd-67bc70344d33": {
"asset": 1714966328862,
"meta": 1724742459559,
"meta": 1729824826973,
"relativePath": "resources"
},
"294c1663-4adf-4a1e-a795-53808011a38a": {
"asset": 1714966328862,
"meta": 1724742459911,
"meta": 1729824828170,
"relativePath": "resources\\effects"
},
"1f55e3be-b89b-4b79-88de-47fd31018044": {
"asset": 1714966328815,
"meta": 1724742459916,
"meta": 1729824828177,
"relativePath": "prefab\\sprite_splash.prefab"
},
"bbee2217-c261-49bd-a8ce-708d6bcc3500": {
"asset": 1714966328893,
"meta": 1724742459912,
"meta": 1729824828172,
"relativePath": "resources\\materials"
},
"30682f87-9f0d-4f17-8a44-72863791461b": {
"asset": 1714966328831,
"meta": 1724742459933,
"meta": 1729824828199,
"relativePath": "resources\\effects\\builtin-2d-graphics.effect"
},
"144c3297-af63-49e8-b8ef-1cfa29b3be28": {
"asset": 1714966328831,
"meta": 1724742459941,
"meta": 1729824828211,
"relativePath": "resources\\effects\\builtin-2d-gray-sprite.effect"
},
"b181c1e4-0a72-4a91-bfb0-ae6f36ca60bd": {
"asset": 1714966328706,
"meta": 1724742459915,
"meta": 1729824828175,
"relativePath": "image\\default_toggle_pressed.png"
},
"d29077ba-1627-4a72-9579-7b56a235340c": {
"asset": 1714966328706,
"meta": 1724742459917,
"meta": 1729824828171,
"relativePath": "image\\default_toggle_normal.png"
},
"f18742d7-56d2-4eb5-ae49-2d9d710b37c8": {
"asset": 1714966328831,
"meta": 1724742459949,
"meta": 1729824828221,
"relativePath": "resources\\effects\\builtin-2d-label.effect"
},
"c25b9d50-c8fc-4d27-beeb-6e7c1f2e5c0f": {
"asset": 1714966328706,
"meta": 1724742459910,
"meta": 1729824828169,
"relativePath": "image\\default_toggle_disabled.png"
},
"0e93aeaa-0b53-4e40-b8e0-6268b4e07bd7": {
"asset": 1714966328831,
"meta": 1724742459957,
"meta": 1729824828229,
"relativePath": "resources\\effects\\builtin-2d-spine.effect"
},
"2874f8dd-416c-4440-81b7-555975426e93": {
"asset": 1714966328846,
"meta": 1724742459963,
"meta": 1729824828237,
"relativePath": "resources\\effects\\builtin-2d-sprite.effect"
},
"829a282c-b049-4019-bd38-5ace8d8a6417": {
"asset": 1714966328846,
"meta": 1724742460006,
"meta": 1729824828284,
"relativePath": "resources\\effects\\builtin-3d-particle.effect"
},
"2a7c0036-e0b3-4fe1-8998-89a54b8a2bec": {
"asset": 1714966328846,
"meta": 1724742460018,
"meta": 1729824828301,
"relativePath": "resources\\effects\\builtin-3d-trail.effect"
},
"c0040c95-c57f-49cd-9cbc-12316b73d0d4": {
"asset": 1714966328846,
"meta": 1724742460024,
"meta": 1729824828309,
"relativePath": "resources\\effects\\builtin-clear-stencil.effect"
},
"7de03a80-4457-438d-95a7-3e7cdffd6086": {
"asset": 1714966328815,
"meta": 1724742459919,
"meta": 1729824828179,
"relativePath": "prefab\\tiledmap.prefab"
},
"6d91e591-4ce0-465c-809f-610ec95019c6": {
"asset": 1714966328862,
"meta": 1724742460039,
"meta": 1729824828326,
"relativePath": "resources\\effects\\builtin-unlit.effect"
},
"0e42ba95-1fa1-46aa-b2cf-143cd1bcee2c": {
"asset": 1714966328815,
"meta": 1724742459918,
"meta": 1729824828180,
"relativePath": "prefab\\tiledtile.prefab"
},
"d1b8be49-b0a0-435c-83b7-552bed4bbe35": {
"asset": 1714966328815,
"meta": 1724742459924,
"meta": 1729824828189,
"relativePath": "prefab\\toggleGroup.prefab"
},
"8a96b965-2dc0-4e03-aa90-3b79cb93b5b4": {
"asset": 1714966328752,
"meta": 1724742459928,
"meta": 1729824828187,
"relativePath": "obsolete\\atom.png"
},
"0d784963-d024-4ea6-a7db-03be0ad63010": {
"asset": 1714966328815,
"meta": 1724742459920,
"meta": 1729824828181,
"relativePath": "prefab\\toggle.prefab"
},
"bf0a434c-84dd-4a8e-a08a-7a36f180cc75": {
"asset": 1714966328815,
"meta": 1724742459922,
"meta": 1729824828183,
"relativePath": "prefab\\toggleContainer.prefab"
},
"232d2782-c4bd-4bb4-9e01-909f03d6d3b9": {
"asset": 1714966328815,
"meta": 1724742459925,
"meta": 1729824828200,
"relativePath": "prefab\\videoplayer.prefab"
},
"d0a82d39-bede-46c4-b698-c81ff0dedfff": {
"asset": 1714966328752,
"meta": 1724742459937,
"meta": 1729824828186,
"relativePath": "particle\\atom.png"
},
"8c5001fd-07ee-4a4b-a8a0-63e15195e94d": {
"asset": 1714966328831,
"meta": 1724742460027,
"meta": 1729824828288,
"relativePath": "prefab\\webview.prefab"
},
"61906da3-7003-4bda-9abc-5769c76faee4": {
"asset": 1714966328783,
"meta": 1724742460057,
"meta": 1729824828345,
"relativePath": "prefab\\light\\ambient.prefab"
},
"ddb99b39-7004-47cd-9705-751905c43c46": {
"asset": 1714966328800,
"meta": 1724742460059,
"meta": 1729824828338,
"relativePath": "prefab\\light\\directional.prefab"
},
"0cf30284-9073-46bc-9eba-e62b69dbbff3": {
"asset": 1714966328800,
"meta": 1724742460059,
"meta": 1729824828338,
"relativePath": "prefab\\light\\point.prefab"
},
"f5331fd2-bf42-4ee3-a3fd-3e1657600eff": {
"asset": 1714966328800,
"meta": 1724742460059,
"meta": 1729824828345,
"relativePath": "prefab\\light\\spot.prefab"
},
"6f801092-0c37-4f30-89ef-c8d960825b36": {
"asset": 1714966328862,
"meta": 1724742460124,
"meta": 1729824828426,
"relativePath": "resources\\materials\\builtin-2d-base.mtl"
},
"a153945d-2511-4c14-be7b-05d242f47d57": {
"asset": 1714966328862,
"meta": 1724742460127,
"meta": 1729824828430,
"relativePath": "resources\\materials\\builtin-2d-graphics.mtl"
},
"7afd064b-113f-480e-b793-8817d19f63c3": {
"asset": 1714966328878,
"meta": 1724742460127,
"meta": 1729824828430,
"relativePath": "resources\\materials\\builtin-2d-spine.mtl"
},
"3a7bb79f-32fd-422e-ada2-96f518fed422": {
"asset": 1714966328862,
"meta": 1724742460126,
"meta": 1729824828432,
"relativePath": "resources\\materials\\builtin-2d-gray-sprite.mtl"
},
"eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432": {
"asset": 1714966328878,
"meta": 1724742460127,
"meta": 1729824828434,
"relativePath": "resources\\materials\\builtin-2d-sprite.mtl"
},
"432fa09c-cf03-4cff-a186-982604408a07": {
"asset": 1714966328878,
"meta": 1724742460130,
"meta": 1729824828432,
"relativePath": "resources\\materials\\builtin-3d-particle.mtl"
},
"e02d87d4-e599-4d16-8001-e14891ac6506": {
"asset": 1714966328878,
"meta": 1724742460127,
"meta": 1729824828432,
"relativePath": "resources\\materials\\builtin-2d-label.mtl"
},
"cf7e0bb8-a81c-44a9-ad79-d28d43991032": {
"asset": 1714966328878,
"meta": 1724742460127,
"meta": 1729824828435,
"relativePath": "resources\\materials\\builtin-clear-stencil.mtl"
},
"466d4f9b-e5f4-4ea8-85d5-3c6e9a65658a": {
"asset": 1714966328878,
"meta": 1724742460130,
"meta": 1729824828435,
"relativePath": "resources\\materials\\builtin-3d-trail.mtl"
},
"2a296057-247c-4a1c-bbeb-0548b6c98650": {
"asset": 1714966328893,
"meta": 1724742460130,
"meta": 1729824828435,
"relativePath": "resources\\materials\\builtin-unlit.mtl"
},
"b2687ac4-099e-403c-a192-ff477686f4f5": {
"asset": 1714966328752,
"meta": 1724742460151,
"meta": 1729824828460,
"relativePath": "particle\\atom.plist"
},
"b8223619-7e38-47c4-841f-9160c232495a": {
"asset": 1714966328752,
"meta": 1724742460151,
"meta": 1729824828460,
"relativePath": "obsolete\\atom.plist"
},
"954fec8b-cd16-4bb9-a3b7-7719660e7558": {
"asset": 1714966328737,
"meta": 1724742461686,
"meta": 1729824830469,
"relativePath": "model\\primitives.fbx"
},
"454ad829-851a-40ea-8ab9-941e828357ca": {
@ -939,29 +929,39 @@
"meta": 1724209211325,
"relativePath": "Script\\Load.ts"
},
"c5692be7-8703-45e4-9f67-23b54d290356": {
"asset": 1724225484732,
"meta": 1724225501506,
"relativePath": "Script\\module\\Config\\GameConfig.ts"
},
"771a3d9a-4013-4654-a777-fbaea0c93280": {
"asset": 1724210553551,
"meta": 1724221992898,
"relativePath": "Script\\module\\Crypto\\HttpUtil.ts"
},
"7290c680-dfdc-4c59-9736-a614cc2a8bcf": {
"asset": 1724229802950,
"meta": 1724742461829,
"asset": 1724747593286,
"meta": 1725446368511,
"relativePath": "Script\\module\\Share\\share.ts"
},
"805c69df-dfdf-4759-97ae-5a7341f424c7": {
"asset": 1724224643312,
"meta": 1724224644778,
"asset": 1725446355051,
"meta": 1725446368405,
"relativePath": "Script\\GameOver.ts"
},
"43bfc27a-ff6e-45b3-87c7-504d0f781397": {
"asset": 1724225488107,
"meta": 1724225501619,
"asset": 1725446351034,
"meta": 1725446368575,
"relativePath": "Script\\module\\Tool\\GameTool.ts"
},
"4be67b1d-91ec-42ca-a2e5-d0d1ddf4dd5f": {
"asset": 1729826055065,
"meta": 1729826215581,
"relativePath": "Script\\Sun.ts"
},
"c5692be7-8703-45e4-9f67-23b54d290356": {
"asset": 1729827204714,
"meta": 1729827205193,
"relativePath": "Script\\module\\Config\\GameConfig.ts"
},
"b0432040-dbde-438c-839c-ba2b5d18a3b5": {
"asset": 1729836062510,
"meta": 1729841254124,
"relativePath": "Script\\GameManager.ts"
}
}

View File

@ -13,13 +13,13 @@
"type": "dock-h",
"children": [
{
"width": 207.28125,
"width": 206.83334350585938,
"height": 571,
"type": "dock-v",
"children": [
{
"width": 207.28125,
"height": 308.13543701171875,
"width": 206.83334350585938,
"height": 307.9895935058594,
"type": "panel",
"active": 0,
"children": [
@ -27,8 +27,8 @@
]
},
{
"width": 207.28125,
"height": 259.8645935058594,
"width": 206.83334350585938,
"height": 260,
"type": "panel",
"active": 0,
"children": [
@ -38,7 +38,7 @@
]
},
{
"width": 758.3333740234375,
"width": 758.40625,
"height": 571,
"type": "panel",
"active": 0,
@ -47,7 +47,7 @@
]
},
{
"width": 308.38543701171875,
"width": 308.76043701171875,
"height": 571,
"type": "panel",
"active": 0,
@ -70,10 +70,10 @@
},
"panels": {
"builder": {
"x": 512,
"y": 4,
"width": 516,
"height": 674
"x": 376,
"y": 18,
"width": 520,
"height": 676
},
"project-settings": {
"x": -8,
@ -92,6 +92,12 @@
"y": 0,
"width": 1016,
"height": 672
},
"preferences": {
"x": 309,
"y": 4,
"width": 601,
"height": 566
}
},
"panelLabelWidth": {}

View File

@ -1,17 +1,17 @@
{
"last-edit": "9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d",
"last-edit": "4eaf518b-35ec-4262-928d-4d497c3f2830",
"recent-items": [
"40ba7e70-1826-4aa1-92f3-aa63ae39294b",
"32254f37-ac95-4912-a787-b8e0429ba0f1",
"3a232388-d8dc-4f79-a1ea-82f6385b7ce2",
"5e515837-650e-4584-a089-e2a025e36c39",
"13110e4f-3587-4e6b-8811-0ca16cac8149",
"d1323772-4ab2-4527-bd20-501fe4fb9723",
"774829bb-123e-48b6-930e-6b3e02491506",
"2d2f792f-a40c-49bb-a189-ed176a246e49",
"2a951e22-b1e0-4155-972d-251ef3fa8f5a",
"4b9c5a7e-c645-48a4-9aca-5df381ce4ef5",
"4eaf518b-35ec-4262-928d-4d497c3f2830",
"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",
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d",
"4eaf518b-35ec-4262-928d-4d497c3f2830"
]
}

View File

@ -171,7 +171,6 @@
"a9Y/TP/QhAdq9i2KGsTC0d",
"a1BRwywGFMT6iJxK+nijOf",
"7aHA1K+7hE8YNbYjVirEih",
"78pYT7vxBK7YbD2aVkC4Kw",
"a5NTB6LZBO4a2Z6RkeebsY",
"411Nmuus1J2b6okQS3uSCm",
"c1+P7wcW9K3oQyAJA29gUv",
@ -181,7 +180,6 @@
"ecZU+ZNaxJvovWhjTwolW3",
"1eUcABlmZJH62rOyXieYFR",
"9ah+lyxSVO6Jf1EY5aebLK",
"6bCpWS8ktAfIpBUoWywuvF",
"97jJpx7PFP3KaIhLHDBrwq",
"beOm6xY9JGcpUIgHepr4za",
"05VwVz2ohMvbMUbFxpVLs6",
@ -191,8 +189,6 @@
"50E0EvF9tGWqRoojKDG6C/",
"68QXyex9ZCjpGvlESAcHm3",
"a7NUURWktGVbn5uaL7RgDc",
"78Sk802p9L/Ip+ZPEFbJnp",
"cfD+6eekJE44Ilk2xG5ORu",
"83fdXjJEdM1rCZghbgf9lv",
"ddR9GXKuBKg5J0qSoBz++j",
"cf4fwLe4hJXLYT5vY7WfC9",
@ -213,6 +209,7 @@
"a5esZu+45LA5mBpvttspPD",
"17ShTgeAhDwo3s1DbpMsss",
"0aJYZZT5NGTrkFDn1E9SRd",
"f2CmP+tLxPdocwGLXkBfpm"
"f2CmP+tLxPdocwGLXkBfpm",
"eeS/xld09DaIkwXw+zwnnw"
]
}

View File

@ -1,5 +1,5 @@
{
"last-module-event-record-time": 1723622207819,
"last-module-event-record-time": 1729827212440,
"group-list": [
"default"
],

View File

@ -13,7 +13,7 @@
},
{
"__type__": "cc.Node",
"_name": "qiu1",
"_name": "qiu4",
"_objFlags": 0,
"_parent": null,
"_children": [

View File

@ -1 +1 @@
{"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-08-27T07:07:42.061Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/RankManager.js":"2024-08-27T07:07:42.034Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-08-27T07:07:42.010Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-08-27T07:07:42.006Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-08-27T07:07:42.022Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-08-27T07:07:42.011Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-08-27T07:07:42.023Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-08-27T07:07:42.025Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/DynamicAtlasManager.js":"2024-08-27T07:07:42.015Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/HttpUtil.js":"2024-08-27T07:07:42.021Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/ItemRender.js":"2024-08-27T07:07:42.028Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Notification/Notification.js":"2024-08-27T07:07:42.012Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Music/AudioManager.js":"2024-08-27T07:07:42.014Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Config/GameConfig.js":"2024-08-27T07:07:42.026Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Storage/Storage.js":"2024-08-27T07:07:42.005Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/GameStart/GameAppStart.js":"2024-08-27T07:07:42.017Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Share/share.js":"2024-08-27T07:07:42.019Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Tool/GameTool.js":"2024-08-27T07:07:42.007Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/crypto-js.min.js":"2024-08-27T07:07:42.033Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/List.js":"2024-08-27T07:07:42.030Z"}}
{"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-10-25T02:53:51.336Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-10-25T02:53:51.292Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-10-25T02:53:51.291Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-10-25T02:53:51.267Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-10-25T02:53:51.273Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/DynamicAtlasManager.js":"2024-10-25T02:53:51.281Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/RankManager.js":"2024-10-25T02:53:51.303Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-10-25T02:53:51.276Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-10-25T02:53:51.294Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/HttpUtil.js":"2024-10-25T02:53:51.288Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Share/share.js":"2024-10-25T02:53:51.285Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Music/AudioManager.js":"2024-10-25T02:53:51.280Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/GameStart/GameAppStart.js":"2024-10-25T02:53:51.283Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/ItemRender.js":"2024-10-25T02:53:51.297Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Notification/Notification.js":"2024-10-25T02:53:51.278Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Config/GameConfig.js":"2024-10-25T02:53:51.296Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Tool/GameTool.js":"2024-10-25T02:53:51.270Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Storage/Storage.js":"2024-10-25T02:53:51.264Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/List.js":"2024-10-25T02:53:51.299Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/crypto-js.min.js":"2024-10-25T02:53:51.300Z"}}

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
(function () {
var scripts = [{"deps":{"./assets/Script/RankManager":1,"./assets/Script/Load":2,"./assets/Script/GuideManager":3,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":4,"./assets/Script/Sun":5,"./assets/Script/GameOver":6,"./assets/Script/GameManager":7,"./assets/Script/DynamicAtlasManager":8,"./assets/Script/module/Crypto/HttpUtil":9,"./assets/Script/module/RankList/ItemRender":10,"./assets/Script/module/Notification/Notification":11,"./assets/Script/module/Music/AudioManager":12,"./assets/Script/module/Config/GameConfig":13,"./assets/Script/module/Storage/Storage":14,"./assets/Script/module/GameStart/GameAppStart":15,"./assets/Script/module/Share/share":16,"./assets/Script/module/Tool/GameTool":17,"./assets/Script/module/Crypto/crypto-js.min":18,"./assets/Script/module/RankList/List":19},"path":"preview-scripts/__qc_index__.js"},{"deps":{"./module/RankList/List":19},"path":"preview-scripts/assets/Script/RankManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"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/Sun.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/DynamicAtlasManager.js"},{"deps":{"./crypto-js.min.js":18},"path":"preview-scripts/assets/Script/module/Crypto/HttpUtil.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/RankList/ItemRender.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Notification/Notification.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Music/AudioManager.js"},{"deps":{"../Share/share":16},"path":"preview-scripts/assets/Script/module/Config/GameConfig.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Storage/Storage.js"},{"deps":{"../Config/GameConfig":13,"../Crypto/HttpUtil":9,"../Music/AudioManager":12,"../Notification/Notification":11,"../Storage/Storage":14,"../Tool/GameTool":17},"path":"preview-scripts/assets/Script/module/GameStart/GameAppStart.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Share/share.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Tool/GameTool.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Crypto/crypto-js.min.js"},{"deps":{"./ItemRender":10},"path":"preview-scripts/assets/Script/module/RankList/List.js"}];
var scripts = [{"deps":{"./assets/Script/GameOver":1,"./assets/Script/GuideManager":3,"./assets/Script/Load":4,"./assets/Script/RankManager":6,"./assets/Script/Sun":7,"./assets/Script/DynamicAtlasManager":5,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":2,"./assets/Script/module/Crypto/crypto-js.min":19,"./assets/Script/module/Crypto/HttpUtil":9,"./assets/Script/module/GameStart/GameAppStart":12,"./assets/Script/module/Music/AudioManager":11,"./assets/Script/module/Notification/Notification":14,"./assets/Script/module/RankList/List":18,"./assets/Script/module/RankList/ItemRender":13,"./assets/Script/module/Share/share":10,"./assets/Script/module/Storage/Storage":17,"./assets/Script/module/Tool/GameTool":16,"./assets/Script/module/Config/GameConfig":15,"./assets/Script/GameManager":8},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"path":"preview-scripts/assets/Script/DynamicAtlasManager.js"},{"deps":{"./module/RankList/List":18},"path":"preview-scripts/assets/Script/RankManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{"./crypto-js.min.js":19},"path":"preview-scripts/assets/Script/module/Crypto/HttpUtil.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Share/share.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Music/AudioManager.js"},{"deps":{"../Config/GameConfig":15,"../Crypto/HttpUtil":9,"../Music/AudioManager":11,"../Notification/Notification":14,"../Storage/Storage":17,"../Tool/GameTool":16},"path":"preview-scripts/assets/Script/module/GameStart/GameAppStart.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/RankList/ItemRender.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Notification/Notification.js"},{"deps":{"../Share/share":10},"path":"preview-scripts/assets/Script/module/Config/GameConfig.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Tool/GameTool.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Storage/Storage.js"},{"deps":{"./ItemRender":13},"path":"preview-scripts/assets/Script/module/RankList/List.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Crypto/crypto-js.min.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

View File

@ -234,6 +234,7 @@ var GameManager = /** @class */ (function (_super) {
this.ball_Array[k].removeFromParent();
this.ball_Array[k] = null;
}
cc.fx.GameConfig.GM_INFO.gap = [];
};
//点击太阳执行方法
GameManager.prototype.clickSun = function (data) {
@ -243,12 +244,13 @@ var GameManager = /** @class */ (function (_super) {
var clickTime = cc.fx.GameTool.getTime();
this.time_Array.push((clickTime - this.timeStart));
this.timeStart = cc.fx.GameTool.getTime();
if (data == this.clickNow) {
if (data.id == this.clickNow) {
cc.fx.AudioManager._instance.playAudioButton();
if (this.clickNow > 0) {
this.createLine(cc.v2(this.ball_Array[this.clickNow - 1].x, this.ball_Array[this.clickNow - 1].y), cc.v2(this.ball_Array[this.clickNow].x, this.ball_Array[this.clickNow].y), 0.2);
}
this.clickNow += 1;
cc.fx.GameConfig.GM_INFO.gap.push(data.distance);
if (this.ball_Array[this.clickNow - 1])
this.ball_Array[this.clickNow - 1].getChildByName("guang").active = false;
if (this.clickNow == this.now_Array.length) {
@ -303,7 +305,8 @@ var GameManager = /** @class */ (function (_super) {
difficultyLevel: this.level,
sunList: sunArray,
stepTimeList: this.time_Array,
remainder: this.countTime
remainder: this.countTime,
gap: cc.fx.GameConfig.GM_INFO.gap
};
if (cc.fx.GameConfig.CLICK_DATA.duration > 50) {
cc.fx.GameConfig.CLICK_DATA.duration = 50;
@ -337,12 +340,12 @@ var GameManager = /** @class */ (function (_super) {
}
}
else {
this.setLoss();
this.setLoss(data);
}
}
};
//执行失败
GameManager.prototype.setLoss = function () {
GameManager.prototype.setLoss = function (data) {
cc.fx.AudioManager._instance.playWarning();
this.begin = false;
this.overTime = cc.fx.GameTool.getTime();
@ -378,6 +381,7 @@ var GameManager = /** @class */ (function (_super) {
sunArray.push(0);
}
}
cc.fx.GameConfig.GM_INFO.gap.push(data.distance);
cc.fx.GameConfig.CLICK_DATA =
{
type: 1,
@ -392,7 +396,8 @@ var GameManager = /** @class */ (function (_super) {
difficultyLevel: this.level,
sunList: sunArray,
stepTimeList: this.time_Array,
remainder: this.countTime
remainder: this.countTime,
gap: cc.fx.GameConfig.GM_INFO.gap
};
if (cc.fx.GameConfig.CLICK_DATA.duration > 50) {
cc.fx.GameConfig.CLICK_DATA.duration = 50;
@ -927,7 +932,7 @@ var GameManager = /** @class */ (function (_super) {
this.begin = false;
this.over = true;
this.unschedule(this.updateCountDownTime);
this.setLoss();
this.setLoss({ distance: 0 });
var time = 0;
if (this.clickCount > 0)
time = parseInt(cc.fx.GameConfig.GM_INFO.mean_Time / this.clickCount + "");

View File

@ -107,6 +107,9 @@ var NewClass = /** @class */ (function (_super) {
};
//根据内容填充排行榜
NewClass.prototype.setRank = function (num, data) {
if (!data) {
return;
}
var hitNode = null;
if (num == 0) {
hitNode = this.one;
@ -125,7 +128,7 @@ var NewClass = /** @class */ (function (_super) {
}
if (hitNode) {
hitNode.active = true;
cc.fx.GameTool.subName(data.nickName, 4);
data.nickName = cc.fx.GameTool.subName(data.nickName, 4);
hitNode.getChildByName("name").getComponent(cc.Label).string = data.nickName;
hitNode.getChildByName("total").getComponent(cc.Label).string = data.totalSunCount;
cc.fx.GameTool.setPic(hitNode.getChildByName("pic").getChildByName("icon"), data.pic);

File diff suppressed because one or more lines are too long

View File

@ -31,6 +31,7 @@ var NewClass = /** @class */ (function (_super) {
}
// onLoad () {}
NewClass.prototype.start = function () {
this.node.on(cc.Node.EventType.TOUCH_START, this.clickBtn, this);
};
//初始化数据
NewClass.prototype.init = function (_id, color, speed, repeat) {
@ -55,9 +56,16 @@ var NewClass = /** @class */ (function (_super) {
if (type == true)
this.node.getChildByName("number").getComponent(cc.Label).string = this.id_Number + "";
};
//计算两点之间直线距离
NewClass.prototype.distanceBetweenTwoPoints = function (x1, y1, x2, y2) {
return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2));
};
//点击事件
NewClass.prototype.clickBtn = function (event, data) {
if (data === "1") {
var pos = this.node.convertToNodeSpaceAR(event.getLocation());
var distance = this.distanceBetweenTwoPoints(pos.x, 0, pos.y, 0);
distance = Math.floor(distance * 10) / 10;
if (this.node.name != "qiu4") {
if (this.move == false && this.touch == true) {
if (this.node.parent.parent.name == "GameNode") {
if (this.node.parent.parent.getComponent("GameManager").begin == true) {
@ -70,13 +78,15 @@ var NewClass = /** @class */ (function (_super) {
.start();
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun", this.id_Number);
var data_1 = { id: this.id_Number, distance: distance };
cc.fx.Notifications.emit("clickSun", data_1);
}
}
else {
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun", this.id_Number);
var data_2 = { id: this.id_Number, distance: distance };
cc.fx.Notifications.emit("clickSun", data_2);
}
}
}
@ -84,7 +94,8 @@ var NewClass = /** @class */ (function (_super) {
if (this.touch == true && this.node.parent.parent.getComponent("GuideManager").begin == true) {
this.touch = false;
this.node.zIndex = -1;
cc.fx.Notifications.emit("clickSun", this.id_Number);
var data_3 = { id: this.id_Number, distance: distance };
cc.fx.Notifications.emit("clickSun", data_3);
}
}
};

View File

@ -40,25 +40,25 @@ var GameConfig = /** @class */ (function () {
this.CLICK_init();
this.LEVEL_INFO_init();
var self = this;
cc.resources.load('Json/GM_INFO', function (err, res) {
if (err) {
share_1.WeChat.setShare(location.href);
self.Authentication();
return;
}
var jsonData = res.json;
self.GM_INFO = jsonData["data"];
self.setCode(self.getKey("scode"));
share_1.WeChat.setShare(location.href);
self.Authentication();
});
cc.resources.load('Json/CLICK_DATA', function (err, res) {
if (err) {
return;
}
var jsonData = res.json;
self.CLICK_DATA = jsonData["data"];
});
// cc.resources.load('Json/GM_INFO', (err: any, res: cc.JsonAsset) => {
// if (err) {
// WeChat.setShare(location.href);
// // self.Authentication();
// return;
// }
// let jsonData: object = res.json!;
// self.GM_INFO = jsonData["data"];
// self.setCode(self.getKey("scode"));
// WeChat.setShare(location.href);
// // self.Authentication();
// })
// cc.resources.load('Json/CLICK_DATA', (err: any, res: cc.JsonAsset) => {
// if (err) {
// return;
// }
// let jsonData: object = res.json!;
// self.CLICK_DATA = jsonData["data"];
// })
cc.resources.load('Json/LEVEL_INFO', function (err, res) {
if (err) {
return;
@ -83,9 +83,12 @@ var GameConfig = /** @class */ (function () {
url: "https://api.sparkus.cn",
success: false,
matchId: null,
custom: 0 //用于测试跳关卡
custom: 0,
gap: [] //存储点击到太阳中心距离
};
this.setCode(this.getKey("scode"));
share_1.WeChat.setShare(location.href);
this.Authentication();
};
GameConfig.CLICK_init = function () {
this.CLICK_DATA =
@ -102,7 +105,8 @@ var GameConfig = /** @class */ (function () {
difficultyLevel: 0,
sunList: [],
stepTimeList: [],
remainder: 120 //游戏剩余时间
remainder: 120,
gap: [] //点击到太阳中心距离
};
};
GameConfig.LEVEL_INFO_init = function () {

File diff suppressed because one or more lines are too long

View File

@ -58,6 +58,7 @@ var WeChat = /** @class */ (function () {
WeChat.getResult = function (res) {
if (res) {
var data = res.data;
// @ts-ignore
wx.config({
debug: false,
appId: data.appId,
@ -66,6 +67,7 @@ var WeChat = /** @class */ (function () {
signature: data.signature,
jsApiList: ['onMenuShareTimeline', 'updateAppMessageShareData', 'updateTimelineShareData', 'onMenuShareAppMessage']
});
// @ts-ignore
wx.checkJsApi({
jsApiList: ['updateAppMessageShareData'],
success: function (res) {
@ -80,7 +82,9 @@ var WeChat = /** @class */ (function () {
}
};
WeChat.changeShare = function () {
// @ts-ignore
wx.ready(function () {
// @ts-ignore
wx.updateAppMessageShareData({
title: '记忆力认知测评',
desc: '你的注意力和工作记忆有问题吗?',
@ -92,6 +96,7 @@ var WeChat = /** @class */ (function () {
}
});
setTimeout(function () {
// @ts-ignore
wx.updateTimelineShareData({
title: '记忆力认知测评',
link: shareConfig.shareLine,

File diff suppressed because one or more lines are too long