日常修改
This commit is contained in:
parent
6dc4cbded8
commit
e977395107
File diff suppressed because it is too large
Load Diff
|
@ -264,209 +264,7 @@ export default class GameData extends cc.Component {
|
|||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //21
|
||||
number:5,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //22
|
||||
number:5,
|
||||
moveNumber:2,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //23
|
||||
number:6,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //24
|
||||
number:6,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //25
|
||||
number:6,
|
||||
moveNumber:2,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //26
|
||||
number:6,
|
||||
moveNumber:2,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //27
|
||||
number:6,
|
||||
moveNumber:4,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //28
|
||||
number:6,
|
||||
moveNumber:2,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //29
|
||||
number:7,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //30
|
||||
number:7,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //31
|
||||
number:7,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //32
|
||||
number:7,
|
||||
moveNumber:2,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //33
|
||||
number:7,
|
||||
moveNumber:4,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //34
|
||||
number:7,
|
||||
moveNumber:2,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //35
|
||||
number:8,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //36
|
||||
number:8,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //37
|
||||
number:8,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //38
|
||||
number:8,
|
||||
moveNumber:2,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //39
|
||||
number:8,
|
||||
moveNumber:4,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //40
|
||||
number:8,
|
||||
moveNumber:2,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //41
|
||||
number:8,
|
||||
moveNumber:4,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //42
|
||||
number:9,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
{ //43
|
||||
number:9,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //44
|
||||
number:9,
|
||||
moveNumber:5,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:1
|
||||
},
|
||||
{ //45
|
||||
number:10,
|
||||
moveNumber:0,
|
||||
moveSpeed:6,
|
||||
maxDistance:200,
|
||||
maxMove:1200,
|
||||
repeat:0
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
|
|
|
@ -280,11 +280,11 @@ export default class GameManager extends cc.Component {
|
|||
}
|
||||
this.clickNow += 1;
|
||||
// GameData._instance.GM_INFO.total += 1;
|
||||
|
||||
setTimeout(() => {
|
||||
if(this.ball_Array[this.clickNow-1])
|
||||
this.ball_Array[this.clickNow-1].getChildByName("guang").active = false;
|
||||
}, 200);
|
||||
if(this.ball_Array[this.clickNow-1])
|
||||
this.ball_Array[this.clickNow-1].getChildByName("guang").active = false;
|
||||
// setTimeout(() => {
|
||||
|
||||
// }, 200);
|
||||
|
||||
|
||||
if(this.clickNow == this.now_Array.length){
|
||||
|
@ -292,10 +292,14 @@ export default class GameManager extends cc.Component {
|
|||
GameData._instance.GM_INFO.total += this.clickNow;
|
||||
|
||||
this.overTime = this.getTime();
|
||||
GameData._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
console.log(GameData._instance.GM_INFO.mean_Time);
|
||||
if(this.startTime > 0 && this.overTime > 0){
|
||||
GameData._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
}
|
||||
// console.log("成功",GameData._instance.GM_INFO.mean_Time,this.overTime,this.startTime);
|
||||
// console.log(GameData._instance.GM_INFO.mean_Time);
|
||||
let finish_time = parseInt((this.overTime - this.startTime)/100+"");
|
||||
this.startTime = 0; this.overTime = 0;
|
||||
// console.log("33333333");
|
||||
let color = "y";
|
||||
if(this.level < 4 && this.level > 1)color = "yr";
|
||||
else if(this.level >= 4) color = "yrb";
|
||||
|
@ -382,8 +386,9 @@ export default class GameManager extends cc.Component {
|
|||
GameData._instance.AudioManager.playWarning();
|
||||
this.begin = false;
|
||||
this.overTime = this.getTime();
|
||||
GameData._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
console.log(GameData._instance.GM_INFO.mean_Time);
|
||||
if(this.startTime > 0 && this.overTime > 0){
|
||||
GameData._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
}
|
||||
let finish_time = parseInt((this.overTime - this.startTime)/100+"");
|
||||
this.startTime = 0; this.overTime = 0;
|
||||
let color = "y";
|
||||
|
@ -575,46 +580,53 @@ export default class GameManager extends cc.Component {
|
|||
//0 1 2 3 4 5 6 7 8 9
|
||||
//可移动区分
|
||||
let pos = cc.v2(0,0);
|
||||
if(info.number == 3) this.moveArray = [0,1,0];
|
||||
else if(info.number == 4) this.moveArray = [0,0,1,0];
|
||||
else if(info.number == 5) this.moveArray = [0,0,1,0,0];
|
||||
else if(info.number == 5) this.moveArray = [0,0,1,0,0];
|
||||
else if(info.number == 6) this.moveArray = [0,0,1,1,0,0];
|
||||
else if(info.number == 7) this.moveArray = [0,0,1,1,1,0,0];
|
||||
else if(info.number == 8) this.moveArray = [0,0,0,1,1,1,1,0];
|
||||
else if(info.number == 9) this.moveArray = [0,0,1,1,1,1,1,0,0];
|
||||
else if(info.number == 10) this.moveArray = [0,0,0,1,1,1,1,1,0,0];
|
||||
|
||||
for(let z=0; z<info.number; z++){
|
||||
this.moveArray[z] = 0;
|
||||
}
|
||||
for(let p=0; p<info.moveNumber; p++){
|
||||
this.moveArray[info.number-1-p] = 1;
|
||||
}
|
||||
let timeOut = 0;
|
||||
//打乱可移动顺序
|
||||
// this.moveArray .sort(() => Math.random() - 0.5);
|
||||
this.moveArray.sort(() => Math.random() - 0.5);
|
||||
if(this.moveArray[0] == 1){
|
||||
for(let r=info.number-1; r>=0; r--){
|
||||
if(this.moveArray[r] == 0){
|
||||
this.moveArray[r] = 1;
|
||||
this.moveArray[0] = 0;
|
||||
r = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
// debugger;
|
||||
//设置重叠
|
||||
// this.repeat = -1;
|
||||
// this.numberRepeat = -1;
|
||||
|
||||
//将重叠的设置为不可移动 1 1 1 1 0 0 1 0 0 0 / 2 7
|
||||
for(let k =0; k<this.moveArray.length;k++){
|
||||
if(this.moveArray[k]==1 && (k == this.repeat || k == this.numberRepeat)){
|
||||
for(let m = this.moveArray.length-1; m >= 0; m--){
|
||||
if(m != k && this.moveArray[m] == 0 && m!= this.repeat && m!= this.numberRepeat){
|
||||
this.moveArray[m] = 1;
|
||||
this.moveArray[k] = 0;
|
||||
m = -1;
|
||||
for(let k =0; k<this.moveArray.length;k++){
|
||||
if(this.moveArray[k]==1 && (k == this.repeat || k == this.numberRepeat)){
|
||||
for(let m = this.moveArray.length-1; m >= 0; m--){
|
||||
if(m != k && this.moveArray[m] == 0 && m!= this.repeat && m!= this.numberRepeat){
|
||||
this.moveArray[m] = 1;
|
||||
this.moveArray[k] = 0;
|
||||
m = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for(let i =0; i<this.Pos_Array.length;i++){
|
||||
if(this.moveArray [i] == 1){
|
||||
timeOut += 1;
|
||||
setTimeout(() => {
|
||||
pos = this.getPos2(true,i);
|
||||
this.Pos_Array[i] = pos;
|
||||
}, timeOut*300);
|
||||
for(let i =0; i<this.Pos_Array.length;i++){
|
||||
if(this.moveArray [i] == 1){
|
||||
timeOut += 1;
|
||||
setTimeout(() => {
|
||||
pos = this.getPos2(true,i);
|
||||
this.Pos_Array[i] = pos;
|
||||
}, timeOut*300);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1008,13 +1020,14 @@ export default class GameManager extends cc.Component {
|
|||
this.unschedule(this.updateCountDownTime);
|
||||
this.setLoss();
|
||||
var time = 0;
|
||||
console.log(GameData._instance.GM_INFO.mean_Time,this.clickCount);
|
||||
|
||||
// console.log(GameData._instance.GM_INFO.mean_Time,this.clickCount);
|
||||
if(this.clickCount > 0) time = parseInt(GameData._instance.GM_INFO.mean_Time/this.clickCount + "");
|
||||
|
||||
GameData._instance.GM_INFO.mean_Time = parseInt(time/100 + "");
|
||||
|
||||
GameData._instance.GM_INFO.mean_Time = GameData._instance.GM_INFO.mean_Time /10;
|
||||
console.log( GameData._instance.GM_INFO.mean_Time);
|
||||
// console.log( GameData._instance.GM_INFO.mean_Time,time);
|
||||
// debugger;
|
||||
if(time > 10000) time = (Math.random()*10+5)*100;
|
||||
this.setRank(time);
|
||||
}
|
||||
}
|
||||
|
@ -1023,30 +1036,43 @@ export default class GameManager extends cc.Component {
|
|||
setData(){
|
||||
let data = GameData._instance.GAME_DATA;
|
||||
let matchId = this.getMatchId();
|
||||
|
||||
console.log(matchId);
|
||||
let postData = {
|
||||
"matchId":matchId,
|
||||
"data": data
|
||||
};
|
||||
// console.log("上传数据:",postData)
|
||||
console.log("上传数据:")
|
||||
HttpUtil.uploadUserLogData(postData,function(){})
|
||||
}
|
||||
|
||||
getMatchId (){
|
||||
let matchId = cc.sys.localStorage.getItem("matchId");
|
||||
|
||||
if(matchId == "undifend" || matchId==null){
|
||||
matchId = this.setMatchId();
|
||||
}
|
||||
else{
|
||||
let char = parseInt(matchId[10]);
|
||||
char += 1;
|
||||
matchId = matchId.slice(0, 10) + char + "";
|
||||
GameData._instance.GM_INFO.matchId = matchId;
|
||||
cc.sys.localStorage.setItem("matchId",matchId);
|
||||
if(this.containsNanana(matchId) == true){
|
||||
matchId = this.setMatchId();
|
||||
}
|
||||
else{
|
||||
let char = parseInt(matchId[10]);
|
||||
if(this.round == 1){
|
||||
char += 1;
|
||||
}
|
||||
matchId = matchId.slice(0, 10) + char + "";
|
||||
GameData._instance.GM_INFO.matchId = matchId;
|
||||
cc.sys.localStorage.setItem("matchId",matchId);
|
||||
}
|
||||
}
|
||||
|
||||
return matchId;
|
||||
}
|
||||
|
||||
containsNanana(str) {
|
||||
return /na/i.test(str);
|
||||
}
|
||||
|
||||
setMatchId (){
|
||||
// 定义包含可用字符的字符集
|
||||
const characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||
|
@ -1062,6 +1088,7 @@ export default class GameManager extends cc.Component {
|
|||
// 将字符添加到数组中
|
||||
uuidArray.push(randomChar);
|
||||
}
|
||||
|
||||
let data = uuidArray.join('') + 1 + "";
|
||||
cc.sys.localStorage.setItem("matchNumber",1);
|
||||
cc.sys.localStorage.setItem("matchId",data);
|
||||
|
@ -1077,7 +1104,7 @@ export default class GameManager extends cc.Component {
|
|||
"success": GameData._instance.GM_INFO.success
|
||||
|
||||
};
|
||||
console.log(postData);
|
||||
// console.log(postData);
|
||||
HttpUtil.rankData(1,function(){},postData);
|
||||
this.node.getChildByName("GameOver").active = true;
|
||||
this.node.getChildByName("GameOver").opacity = 0;
|
||||
|
@ -1096,22 +1123,6 @@ export default class GameManager extends cc.Component {
|
|||
|
||||
let data = GameData._instance.CLICK_DATA;
|
||||
GameData._instance.GAME_DATA = [];
|
||||
// if(data.succeed == true) this.label1.string = "成功/失败:成功";
|
||||
// else if(data.succeed == false) this.label1.string = "成功/失败:失败";
|
||||
// this.label2.string = "太阳总数量:"+data.sun_total;
|
||||
// this.label3.string = "太阳移动数量:"+data.sun_move;
|
||||
// this.label4.string = "太阳移动速度:"+data.sun_speed;
|
||||
// this.label5.string = "太阳重叠个数:"+data.sun_overlap;
|
||||
// if(data.sun_color == "y") this.label6.string = "太阳颜色:yellow";
|
||||
// else if(data.sun_color == "yr") this.label6.string = "太阳颜色:yellow,red";
|
||||
// else if(data.sun_color == "yrb") this.label6.string = "太阳颜色:yellow,red,black";
|
||||
|
||||
// this.label7.string = "完成时间:"+data.finish_time+"s";
|
||||
// this.label8.string = "难度等级:"+data.sun_difficulty+"级";
|
||||
|
||||
// if(data.sun_color == "y") console.log("太阳颜色:","yellow" );
|
||||
// else if(data.sun_color == "yr") console.log("太阳颜色:","yellow,red" );
|
||||
// else if(data.sun_color == "yrb") console.log("太阳颜色:","yellow,red,black" );
|
||||
|
||||
GameData._instance.GAME_DATA.push(GameData._instance.CLICK_DATA);
|
||||
GameData._instance.CLICK_init();
|
||||
|
|
|
@ -42,6 +42,9 @@ export default class NewClass extends cc.Component {
|
|||
|
||||
start () {
|
||||
this.count.string = GameData._instance.GM_INFO.total;
|
||||
if(GameData._instance.GM_INFO.mean_Time > 10){
|
||||
GameData._instance.GM_INFO.mean_Time = (parseInt(Math.random()*10+"")+5)/10
|
||||
}
|
||||
this.time.string = GameData._instance.GM_INFO.mean_Time + "s";
|
||||
this.listData = [];
|
||||
this.selfData = null;
|
||||
|
|
|
@ -25,6 +25,7 @@ export default class Helloworld extends cc.Component {
|
|||
rankTotal: number;
|
||||
|
||||
onLoad() {
|
||||
this.Player.getChildByName("rank").active = false;
|
||||
this.rankList = cc.find("ScrollView", this.node).getComponent(List);
|
||||
this.listData = [];
|
||||
this.selfData = null;
|
||||
|
@ -34,12 +35,13 @@ export default class Helloworld extends cc.Component {
|
|||
}
|
||||
|
||||
start() {
|
||||
this.Player.active = false;
|
||||
this.getRank();
|
||||
}
|
||||
|
||||
getRankData(data){
|
||||
if(data){
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
this.listData = data.data.list;
|
||||
this.selfData = data.data.info;
|
||||
let rankData = [];
|
||||
|
@ -77,7 +79,7 @@ export default class Helloworld extends cc.Component {
|
|||
// this.selfNode.getChildByName("four").active = true;
|
||||
}
|
||||
this.selfNode.opacity = 255;
|
||||
|
||||
if(this.selfData.totalSunCount == 0) this.selfNode.opacity = 0;
|
||||
}
|
||||
}
|
||||
backClick(){
|
||||
|
@ -86,20 +88,38 @@ export default class Helloworld extends cc.Component {
|
|||
|
||||
playerAction(){
|
||||
//-254 377 210 453
|
||||
this.Player.getChildByName("rank").active = false;
|
||||
|
||||
let time = 1;
|
||||
this.tween = cc.tween(this.Player)
|
||||
.to(2,{position:cc.v3(210,453,0)})
|
||||
.call(() =>{
|
||||
this.Player.getChildByName("rank").active = true;
|
||||
this.Player.getChildByName("rank").getChildByName("number")
|
||||
.getComponent(cc.Label).string = parseInt(time*100 + "") + "%";
|
||||
})
|
||||
.start();
|
||||
time = (this.listData.length - this.rankNumber)/this.listData.length;
|
||||
if(this.listData.length >= 99){
|
||||
if(this.rankNumber >= 99){
|
||||
time = (Math.random()*49+1)/100
|
||||
var matchId = cc.sys.localStorage.getItem("matchNumber");
|
||||
if(matchId == null || matchId == undefined){
|
||||
time = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
if(this.tween)this.tween.stop();
|
||||
this.Player.getChildByName("rank").active = true;
|
||||
this.Player.getChildByName("rank").getChildByName("number")
|
||||
.getComponent(cc.Label).string = parseInt(time*100 + "") + "%";
|
||||
}, time*2000);
|
||||
|
||||
}
|
||||
|
@ -141,6 +161,8 @@ export default class Helloworld extends cc.Component {
|
|||
}
|
||||
|
||||
public setPic2(pic){
|
||||
this.Player.active = true;
|
||||
this.Player.opacity = 0;
|
||||
this.Player.getChildByName("mask").getChildByName("icon").active = false;
|
||||
this.Player.getChildByName("mask").getChildByName("phone").active = false;
|
||||
let url = pic;
|
||||
|
@ -160,6 +182,8 @@ export default class Helloworld extends cc.Component {
|
|||
var self = this;
|
||||
cc.assetManager.loadRemote(url, {ext:'.jpg'},(err, texture:cc.Texture2D) => {
|
||||
if(texture){
|
||||
this.Player.opacity = 255;
|
||||
this.Player.getChildByName("mask").getChildByName("icon").active = false;
|
||||
this.Player.getChildByName("mask").getChildByName("phone").active = true;
|
||||
this.Player.getChildByName("mask").getChildByName("phone").getComponent(cc.Sprite)
|
||||
.spriteFrame = new cc.SpriteFrame(texture);
|
||||
|
@ -169,7 +193,9 @@ export default class Helloworld extends cc.Component {
|
|||
// console.log("设置头像成功",err);
|
||||
}
|
||||
else{
|
||||
this.Player.opacity = 255;
|
||||
// console.log("设置头像失败",url);
|
||||
this.Player.getChildByName("mask").getChildByName("icon").active = true;
|
||||
console.log(err,texture)
|
||||
setTimeout(() => {
|
||||
this.playerAction();
|
||||
|
|
|
@ -6,8 +6,10 @@
|
|||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
const {ccclass, property, requireComponent} = cc._decorator;
|
||||
import GameData from "./GameData";
|
||||
import { StorageMessage } from "./Storage";
|
||||
import HttpUtil from "./crypto/serverAPI";
|
||||
import Rq from "./crypto/serverAPI";
|
||||
// import {StorageMessage} from "./StorageMessage";
|
||||
// import { apiSign } from "./crypto/sign";
|
||||
|
||||
@ccclass
|
||||
|
@ -21,15 +23,36 @@ export default class NewClass extends cc.Component {
|
|||
|
||||
|
||||
start () {
|
||||
let userId = StorageMessage.getStorage("user");
|
||||
if(userId == "undifend" || userId==null){
|
||||
this.setId();
|
||||
}
|
||||
else{
|
||||
let data = StorageMessage.getStorage("user");
|
||||
data = this.getId(data);
|
||||
let timestamp = parseInt(new Date().getTime()/1000 + "");
|
||||
if((timestamp - data[2]) > 86400){
|
||||
this.setId();
|
||||
return;
|
||||
}
|
||||
GameData._instance.GM_INFO.userId = data[1];
|
||||
GameData._instance.GM_INFO.userId = parseInt(GameData._instance.GM_INFO.userId);
|
||||
}
|
||||
}
|
||||
|
||||
setId(){
|
||||
GameData._instance.GM_INFO.userId = this.getUserId();
|
||||
if(GameData._instance.GM_INFO.userId == null){
|
||||
let url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback=http://train.sparkus.cn/test/Sun_moves/";
|
||||
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);
|
||||
GameData._instance.GM_INFO.userId = parseInt(GameData._instance.GM_INFO.userId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
createTexture(){
|
||||
|
@ -52,13 +75,29 @@ export default class NewClass extends cc.Component {
|
|||
arr.map(item=>{
|
||||
arr2.push(item.split("=")[1])
|
||||
})
|
||||
GameData._instance.GM_INFO.userId = arr2[0] + "";
|
||||
// GameData._instance.GM_INFO.userId = arr2[0] + "";
|
||||
return arr2[0];
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
private 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])
|
||||
})
|
||||
// GameData._instance.GM_INFO.userId = arr2[1] + "";
|
||||
return arr2;
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
startGame(){
|
||||
GameData._instance.GM_INFO.custom = 0;
|
||||
cc.director.loadScene("GuideScene");
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
// var jequry = require("jquery");
|
||||
// var coinManager = require("coinManager");
|
||||
var StorageMessage = {
|
||||
getStorage : function(key){
|
||||
var result = null;
|
||||
|
@ -29,6 +27,4 @@ var StorageMessage = {
|
|||
},
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
StorageMessage: StorageMessage,
|
||||
}
|
||||
export { StorageMessage };
|
10
assets/Script/Storage.ts.meta
Normal file
10
assets/Script/Storage.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ver": "1.1.0",
|
||||
"uuid": "7cf8c313-e732-40d1-9538-1a9d0970bf2f",
|
||||
"importer": "typescript",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
if(this.level == 1){
|
||||
let data = {x:-200,y:-380,time:0,timeCount:0};
|
||||
let timeCount = this.timeCount + (0.8-this.calculateDistance(this.ball.x,this.ball.y,-200,-380));
|
||||
let time = this.calculateDistance(this.ball.x,this.ball.y,-200,-380)+timeCount;
|
||||
data = {x:-200,y:-380,time:time,timeCount:timeCount};
|
||||
this.now_Array.push(data);
|
||||
|
||||
timeCount = this.timeCount + (0.8-this.calculateDistance(this.ball.x,this.ball.y,-250,-300));
|
||||
time = this.calculateDistance(this.now_Array[this.now_Array.length-1].x,
|
||||
this.now_Array[this.now_Array.length-1].y,-250,-300)+timeCount;
|
||||
data = {x:-250,y:-300,time:time,timeCount:timeCount};
|
||||
this.now_Array.push(data);
|
||||
|
||||
timeCount = this.timeCount + (0.8-this.calculateDistance(this.ball.x,this.ball.y,-300,500));
|
||||
time = this.calculateDistance(this.now_Array[this.now_Array.length-1].x,
|
||||
this.now_Array[this.now_Array.length-1].y,-300,500)+timeCount;
|
||||
data = {x:-300,y:500,time:time,timeCount:timeCount};
|
||||
this.now_Array.push(data);
|
||||
|
||||
timeCount = this.timeCount + (0.8-this.calculateDistance(this.ball.x,this.ball.y,208,280));
|
||||
time = this.calculateDistance(this.now_Array[this.now_Array.length-1].x,
|
||||
this.now_Array[this.now_Array.length-1].y,208,280)+timeCount;
|
||||
data = {x:208,y:280,time:time,timeCount:timeCount};
|
||||
this.now_Array.push(data);
|
||||
|
||||
timeCount = this.timeCount + (0.8-this.calculateDistance(this.ball.x,this.ball.y,208,-280));
|
||||
time = this.calculateDistance(this.now_Array[this.now_Array.length-1].x,
|
||||
this.now_Array[this.now_Array.length-1].y,208,-280)+timeCount;
|
||||
data = {x:208,y:-280,time:time,timeCount:timeCount};
|
||||
this.now_Array.push(data);
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -12,6 +12,7 @@ window.boot = function () {
|
|||
function setLoadingDisplay () {
|
||||
// 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;
|
||||
|
@ -19,12 +20,13 @@ window.boot = function () {
|
|||
// progressBar.style.width = percent.toFixed(2) + '%';
|
||||
// }
|
||||
};
|
||||
splash.style.display = 'block';
|
||||
// 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';
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -86,7 +88,6 @@ window.boot = function () {
|
|||
}
|
||||
}
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
var option = {
|
||||
|
|
|
@ -81,7 +81,7 @@ p.footer {
|
|||
font-size: x-small;
|
||||
}
|
||||
|
||||
#splash {
|
||||
/* #splash {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
@ -89,7 +89,7 @@ p.footer {
|
|||
height: 100%;
|
||||
background: #171717 url(./splash.jpg) no-repeat center;
|
||||
background-size: 100%;
|
||||
}
|
||||
} */
|
||||
|
||||
/* .progress-bar {
|
||||
position: absolute;
|
||||
|
|
Binary file not shown.
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
|
@ -12,6 +12,7 @@ window.boot = function () {
|
|||
function setLoadingDisplay () {
|
||||
// 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;
|
||||
|
@ -19,12 +20,13 @@ window.boot = function () {
|
|||
// progressBar.style.width = percent.toFixed(2) + '%';
|
||||
// }
|
||||
};
|
||||
splash.style.display = 'block';
|
||||
// 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';
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -86,7 +88,6 @@ window.boot = function () {
|
|||
}
|
||||
}
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
var option = {
|
||||
|
|
|
@ -81,7 +81,7 @@ p.footer {
|
|||
font-size: x-small;
|
||||
}
|
||||
|
||||
#splash {
|
||||
/* #splash {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
@ -89,7 +89,7 @@ p.footer {
|
|||
height: 100%;
|
||||
background: #171717 url(./splash.jpg) no-repeat center;
|
||||
background-size: 100%;
|
||||
}
|
||||
} */
|
||||
|
||||
/* .progress-bar {
|
||||
position: absolute;
|
||||
|
|
BIN
font字体瘦身.zip
Normal file
BIN
font字体瘦身.zip
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -31,6 +31,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property, requireComponent = _a.requireComponent;
|
||||
var GameData_1 = require("./GameData");
|
||||
var Storage_1 = require("./Storage");
|
||||
// import {StorageMessage} from "./StorageMessage";
|
||||
// import { apiSign } from "./crypto/sign";
|
||||
var NewClass = /** @class */ (function (_super) {
|
||||
__extends(NewClass, _super);
|
||||
|
@ -42,12 +44,33 @@ var NewClass = /** @class */ (function (_super) {
|
|||
// update (dt) {}
|
||||
}
|
||||
NewClass.prototype.start = function () {
|
||||
var userId = Storage_1.StorageMessage.getStorage("user");
|
||||
if (userId == "undifend" || userId == null) {
|
||||
this.setId();
|
||||
}
|
||||
else {
|
||||
var data = Storage_1.StorageMessage.getStorage("user");
|
||||
data = this.getId(data);
|
||||
var timestamp = parseInt(new Date().getTime() / 1000 + "");
|
||||
if ((timestamp - data[2]) > 86400) {
|
||||
this.setId();
|
||||
return;
|
||||
}
|
||||
GameData_1.default._instance.GM_INFO.userId = data[1];
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(GameData_1.default._instance.GM_INFO.userId);
|
||||
}
|
||||
};
|
||||
NewClass.prototype.setId = function () {
|
||||
GameData_1.default._instance.GM_INFO.userId = this.getUserId();
|
||||
if (GameData_1.default._instance.GM_INFO.userId == null) {
|
||||
var url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback=http://train.sparkus.cn/test/Sun_moves/";
|
||||
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);
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(GameData_1.default._instance.GM_INFO.userId);
|
||||
}
|
||||
};
|
||||
|
@ -70,13 +93,28 @@ var NewClass = /** @class */ (function (_super) {
|
|||
arr.map(function (item) {
|
||||
arr2_1.push(item.split("=")[1]);
|
||||
});
|
||||
GameData_1.default._instance.GM_INFO.userId = arr2_1[0] + "";
|
||||
// GameData._instance.GM_INFO.userId = arr2[0] + "";
|
||||
return arr2_1[0];
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
NewClass.prototype.getId = function (str) {
|
||||
var pathStr = str;
|
||||
var arr = pathStr.split("?");
|
||||
if (pathStr.length >= 0 && arr.length > 0) {
|
||||
var arr2_2 = [];
|
||||
arr.map(function (item) {
|
||||
arr2_2.push(item.split("=")[1]);
|
||||
});
|
||||
// GameData._instance.GM_INFO.userId = arr2[1] + "";
|
||||
return arr2_2;
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
NewClass.prototype.startGame = function () {
|
||||
GameData_1.default._instance.GM_INFO.custom = 0;
|
||||
cc.director.loadScene("GuideScene");
|
||||
|
|
File diff suppressed because one or more lines are too long
38
library/imports/7c/7cf8c313-e732-40d1-9538-1a9d0970bf2f.js
Normal file
38
library/imports/7c/7cf8c313-e732-40d1-9538-1a9d0970bf2f.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
"use strict";
|
||||
cc._RF.push(module, '7cf8cMT5zJA0ZU4Gp0JcL8v', 'Storage');
|
||||
// Script/Storage.ts
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StorageMessage = void 0;
|
||||
// var jequry = require("jquery");
|
||||
// var coinManager = require("coinManager");
|
||||
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);
|
||||
// debugger;
|
||||
// var temp = cc.sys.localStorage.getItem(key);
|
||||
// debugger;
|
||||
},
|
||||
removeStorage: function (key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
},
|
||||
};
|
||||
exports.StorageMessage = StorageMessage;
|
||||
|
||||
cc._RF.pop();
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["assets\\Script\\Storage.ts"],"names":[],"mappings":";;;;;;;AACA,kCAAkC;AAClC,4CAA4C;AAC5C,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;QACtC,YAAY;QACZ,+CAA+C;QAC/C,YAAY;IAChB,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":["\n// var jequry = require(\"jquery\");\n// var coinManager = require(\"coinManager\");\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 // debugger;\n // var temp = cc.sys.localStorage.getItem(key);\n // debugger;\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 };"]}
|
|
@ -51,6 +51,9 @@ var NewClass = /** @class */ (function (_super) {
|
|||
// onLoad () {}
|
||||
NewClass.prototype.start = function () {
|
||||
this.count.string = GameData_1.default._instance.GM_INFO.total;
|
||||
if (GameData_1.default._instance.GM_INFO.mean_Time > 10) {
|
||||
GameData_1.default._instance.GM_INFO.mean_Time = (parseInt(Math.random() * 10 + "") + 5) / 10;
|
||||
}
|
||||
this.time.string = GameData_1.default._instance.GM_INFO.mean_Time + "s";
|
||||
this.listData = [];
|
||||
this.selfData = null;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -258,19 +258,23 @@ var GameManager = /** @class */ (function (_super) {
|
|||
}
|
||||
this.clickNow += 1;
|
||||
// GameData._instance.GM_INFO.total += 1;
|
||||
setTimeout(function () {
|
||||
if (_this.ball_Array[_this.clickNow - 1])
|
||||
_this.ball_Array[_this.clickNow - 1].getChildByName("guang").active = false;
|
||||
}, 200);
|
||||
if (this.ball_Array[this.clickNow - 1])
|
||||
this.ball_Array[this.clickNow - 1].getChildByName("guang").active = false;
|
||||
// setTimeout(() => {
|
||||
// }, 200);
|
||||
if (this.clickNow == this.now_Array.length) {
|
||||
this.pause = true;
|
||||
GameData_1.default._instance.GM_INFO.total += this.clickNow;
|
||||
this.overTime = this.getTime();
|
||||
GameData_1.default._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
console.log(GameData_1.default._instance.GM_INFO.mean_Time);
|
||||
if (this.startTime > 0 && this.overTime > 0) {
|
||||
GameData_1.default._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
}
|
||||
// console.log("成功",GameData._instance.GM_INFO.mean_Time,this.overTime,this.startTime);
|
||||
// console.log(GameData._instance.GM_INFO.mean_Time);
|
||||
var finish_time = parseInt((this.overTime - this.startTime) / 100 + "");
|
||||
this.startTime = 0;
|
||||
this.overTime = 0;
|
||||
// console.log("33333333");
|
||||
var color = "y";
|
||||
if (this.level < 4 && this.level > 1)
|
||||
color = "yr";
|
||||
|
@ -354,8 +358,9 @@ var GameManager = /** @class */ (function (_super) {
|
|||
GameData_1.default._instance.AudioManager.playWarning();
|
||||
this.begin = false;
|
||||
this.overTime = this.getTime();
|
||||
GameData_1.default._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
console.log(GameData_1.default._instance.GM_INFO.mean_Time);
|
||||
if (this.startTime > 0 && this.overTime > 0) {
|
||||
GameData_1.default._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
}
|
||||
var finish_time = parseInt((this.overTime - this.startTime) / 100 + "");
|
||||
this.startTime = 0;
|
||||
this.overTime = 0;
|
||||
|
@ -550,27 +555,24 @@ var GameManager = /** @class */ (function (_super) {
|
|||
//0 1 2 3 4 5 6 7 8 9
|
||||
//可移动区分
|
||||
var pos_1 = cc.v2(0, 0);
|
||||
if (info.number == 3)
|
||||
this.moveArray = [0, 1, 0];
|
||||
else if (info.number == 4)
|
||||
this.moveArray = [0, 0, 1, 0];
|
||||
else if (info.number == 5)
|
||||
this.moveArray = [0, 0, 1, 0, 0];
|
||||
else if (info.number == 5)
|
||||
this.moveArray = [0, 0, 1, 0, 0];
|
||||
else if (info.number == 6)
|
||||
this.moveArray = [0, 0, 1, 1, 0, 0];
|
||||
else if (info.number == 7)
|
||||
this.moveArray = [0, 0, 1, 1, 1, 0, 0];
|
||||
else if (info.number == 8)
|
||||
this.moveArray = [0, 0, 0, 1, 1, 1, 1, 0];
|
||||
else if (info.number == 9)
|
||||
this.moveArray = [0, 0, 1, 1, 1, 1, 1, 0, 0];
|
||||
else if (info.number == 10)
|
||||
this.moveArray = [0, 0, 0, 1, 1, 1, 1, 1, 0, 0];
|
||||
for (var z = 0; z < info.number; z++) {
|
||||
this.moveArray[z] = 0;
|
||||
}
|
||||
for (var p = 0; p < info.moveNumber; p++) {
|
||||
this.moveArray[info.number - 1 - p] = 1;
|
||||
}
|
||||
var timeOut = 0;
|
||||
//打乱可移动顺序
|
||||
// this.moveArray .sort(() => Math.random() - 0.5);
|
||||
this.moveArray.sort(function () { return Math.random() - 0.5; });
|
||||
if (this.moveArray[0] == 1) {
|
||||
for (var r = info.number - 1; r >= 0; r--) {
|
||||
if (this.moveArray[r] == 0) {
|
||||
this.moveArray[r] = 1;
|
||||
this.moveArray[0] = 0;
|
||||
r = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
// debugger;
|
||||
//设置重叠
|
||||
// this.repeat = -1;
|
||||
|
@ -972,12 +974,15 @@ var GameManager = /** @class */ (function (_super) {
|
|||
this.unschedule(this.updateCountDownTime);
|
||||
this.setLoss();
|
||||
var time = 0;
|
||||
console.log(GameData_1.default._instance.GM_INFO.mean_Time, this.clickCount);
|
||||
// console.log(GameData._instance.GM_INFO.mean_Time,this.clickCount);
|
||||
if (this.clickCount > 0)
|
||||
time = parseInt(GameData_1.default._instance.GM_INFO.mean_Time / this.clickCount + "");
|
||||
GameData_1.default._instance.GM_INFO.mean_Time = parseInt(time / 100 + "");
|
||||
GameData_1.default._instance.GM_INFO.mean_Time = GameData_1.default._instance.GM_INFO.mean_Time / 10;
|
||||
console.log(GameData_1.default._instance.GM_INFO.mean_Time);
|
||||
// console.log( GameData._instance.GM_INFO.mean_Time,time);
|
||||
// debugger;
|
||||
if (time > 10000)
|
||||
time = (Math.random() * 10 + 5) * 100;
|
||||
this.setRank(time);
|
||||
}
|
||||
}
|
||||
|
@ -985,11 +990,12 @@ var GameManager = /** @class */ (function (_super) {
|
|||
GameManager.prototype.setData = function () {
|
||||
var data = GameData_1.default._instance.GAME_DATA;
|
||||
var matchId = this.getMatchId();
|
||||
console.log(matchId);
|
||||
var postData = {
|
||||
"matchId": matchId,
|
||||
"data": data
|
||||
};
|
||||
// console.log("上传数据:",postData)
|
||||
console.log("上传数据:");
|
||||
serverAPI_1.default.uploadUserLogData(postData, function () { });
|
||||
};
|
||||
GameManager.prototype.getMatchId = function () {
|
||||
|
@ -998,14 +1004,24 @@ var GameManager = /** @class */ (function (_super) {
|
|||
matchId = this.setMatchId();
|
||||
}
|
||||
else {
|
||||
var char = parseInt(matchId[10]);
|
||||
char += 1;
|
||||
matchId = matchId.slice(0, 10) + char + "";
|
||||
GameData_1.default._instance.GM_INFO.matchId = matchId;
|
||||
cc.sys.localStorage.setItem("matchId", matchId);
|
||||
if (this.containsNanana(matchId) == true) {
|
||||
matchId = this.setMatchId();
|
||||
}
|
||||
else {
|
||||
var char = parseInt(matchId[10]);
|
||||
if (this.round == 1) {
|
||||
char += 1;
|
||||
}
|
||||
matchId = matchId.slice(0, 10) + char + "";
|
||||
GameData_1.default._instance.GM_INFO.matchId = matchId;
|
||||
cc.sys.localStorage.setItem("matchId", matchId);
|
||||
}
|
||||
}
|
||||
return matchId;
|
||||
};
|
||||
GameManager.prototype.containsNanana = function (str) {
|
||||
return /na/i.test(str);
|
||||
};
|
||||
GameManager.prototype.setMatchId = function () {
|
||||
// 定义包含可用字符的字符集
|
||||
var characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||
|
@ -1033,7 +1049,7 @@ var GameManager = /** @class */ (function (_super) {
|
|||
"totalSunCount": GameData_1.default._instance.GM_INFO.total,
|
||||
"success": GameData_1.default._instance.GM_INFO.success
|
||||
};
|
||||
console.log(postData);
|
||||
// console.log(postData);
|
||||
serverAPI_1.default.rankData(1, function () { }, postData);
|
||||
this.node.getChildByName("GameOver").active = true;
|
||||
this.node.getChildByName("GameOver").opacity = 0;
|
||||
|
@ -1049,20 +1065,6 @@ var GameManager = /** @class */ (function (_super) {
|
|||
GameManager.prototype.outPut = function () {
|
||||
var data = GameData_1.default._instance.CLICK_DATA;
|
||||
GameData_1.default._instance.GAME_DATA = [];
|
||||
// if(data.succeed == true) this.label1.string = "成功/失败:成功";
|
||||
// else if(data.succeed == false) this.label1.string = "成功/失败:失败";
|
||||
// this.label2.string = "太阳总数量:"+data.sun_total;
|
||||
// this.label3.string = "太阳移动数量:"+data.sun_move;
|
||||
// this.label4.string = "太阳移动速度:"+data.sun_speed;
|
||||
// this.label5.string = "太阳重叠个数:"+data.sun_overlap;
|
||||
// if(data.sun_color == "y") this.label6.string = "太阳颜色:yellow";
|
||||
// else if(data.sun_color == "yr") this.label6.string = "太阳颜色:yellow,red";
|
||||
// else if(data.sun_color == "yrb") this.label6.string = "太阳颜色:yellow,red,black";
|
||||
// this.label7.string = "完成时间:"+data.finish_time+"s";
|
||||
// this.label8.string = "难度等级:"+data.sun_difficulty+"级";
|
||||
// if(data.sun_color == "y") console.log("太阳颜色:","yellow" );
|
||||
// else if(data.sun_color == "yr") console.log("太阳颜色:","yellow,red" );
|
||||
// else if(data.sun_color == "yrb") console.log("太阳颜色:","yellow,red,black" );
|
||||
GameData_1.default._instance.GAME_DATA.push(GameData_1.default._instance.CLICK_DATA);
|
||||
GameData_1.default._instance.CLICK_init();
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,41 +0,0 @@
|
|||
"use strict";
|
||||
cc._RF.push(module, 'b5d92kgCRlKu5IYKnaGPgoa', 'Storage');
|
||||
// Script/Storage.js
|
||||
|
||||
"use strict";
|
||||
|
||||
// var jequry = require("jquery");
|
||||
// var coinManager = require("coinManager");
|
||||
var StorageMessage = {
|
||||
getStorage: function getStorage(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 setStorage(key, value) {
|
||||
//主动拉起分享接口
|
||||
var temp = JSON.stringify(value);
|
||||
cc.sys.localStorage.setItem(key, temp); // debugger;
|
||||
// var temp = cc.sys.localStorage.getItem(key);
|
||||
// debugger;
|
||||
},
|
||||
removeStorage: function removeStorage(key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
}
|
||||
};
|
||||
module.exports = {
|
||||
StorageMessage: StorageMessage
|
||||
};
|
||||
|
||||
cc._RF.pop();
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["assets\\Script\\Storage.js"],"names":["StorageMessage","getStorage","key","result","cc","sys","localStorage","getItem","JSON","parse","setStorage","value","temp","stringify","setItem","removeStorage","removeItem","module","exports"],"mappings":";;;;;;AACA;AACA;AACA,IAAIA,cAAc,GAAG;AACjBC,EAAAA,UAAU,EAAG,oBAASC,GAAT,EAAa;AACtB,QAAIC,MAAM,GAAG,IAAb;;AACA,QAAGC,EAAE,CAACC,GAAH,CAAOC,YAAP,CAAoBC,OAApB,CAA4BL,GAA5B,CAAH,EAAoC;AAClC,UAAIC,MAAM,GAAGC,EAAE,CAACC,GAAH,CAAOC,YAAP,CAAoBC,OAApB,CAA4BL,GAA5B,CAAb;AACD;;AAED,QAAGC,MAAH,EAAU;AACRA,MAAAA,MAAM,GAAGK,IAAI,CAACC,KAAL,CAAWN,MAAX,CAAT;AACD;;AACD,WAAOA,MAAP;AACH,GAXgB;AAYjBO,EAAAA,UAAU,EAAG,oBAASR,GAAT,EAAaS,KAAb,EAAmB;AAC5B;AACA,QAAIC,IAAI,GAAGJ,IAAI,CAACK,SAAL,CAAeF,KAAf,CAAX;AACAP,IAAAA,EAAE,CAACC,GAAH,CAAOC,YAAP,CAAoBQ,OAApB,CAA4BZ,GAA5B,EAAiCU,IAAjC,EAH4B,CAI5B;AACA;AACA;AACH,GAnBgB;AAoBjBG,EAAAA,aAAa,EAAG,uBAASb,GAAT,EAAa;AAC3B;AACA,QAAGE,EAAE,CAACC,GAAH,CAAOC,YAAP,CAAoBC,OAApB,CAA4BL,GAA5B,CAAH,EAAoC;AAClCE,MAAAA,EAAE,CAACC,GAAH,CAAOC,YAAP,CAAoBU,UAApB,CAA+Bd,GAA/B;AACD;AACF;AAzBgB,CAArB;AA4BAe,MAAM,CAACC,OAAP,GAAiB;AACflB,EAAAA,cAAc,EAAEA;AADD,CAAjB","sourceRoot":"/","sourcesContent":["\n// var jequry = require(\"jquery\");\n// var coinManager = require(\"coinManager\");\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 // debugger;\n // var temp = cc.sys.localStorage.getItem(key);\n // debugger;\n },\n removeStorage : function(key){\n //主动删除消息接口\n if(cc.sys.localStorage.getItem(key)){\n cc.sys.localStorage.removeItem(key)\n }\n },\n};\n\nmodule.exports = {\n StorageMessage: StorageMessage,\n}"]}
|
|
@ -38,6 +38,7 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
return _this;
|
||||
}
|
||||
Helloworld.prototype.onLoad = function () {
|
||||
this.Player.getChildByName("rank").active = false;
|
||||
this.rankList = cc.find("ScrollView", this.node).getComponent(List_1.default);
|
||||
this.listData = [];
|
||||
this.selfData = null;
|
||||
|
@ -46,11 +47,12 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
this.selfNode.opacity = 0;
|
||||
};
|
||||
Helloworld.prototype.start = function () {
|
||||
this.Player.active = false;
|
||||
this.getRank();
|
||||
};
|
||||
Helloworld.prototype.getRankData = function (data) {
|
||||
if (data) {
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
this.listData = data.data.list;
|
||||
this.selfData = data.data.info;
|
||||
var rankData = [];
|
||||
|
@ -88,6 +90,8 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
// this.selfNode.getChildByName("four").active = true;
|
||||
}
|
||||
this.selfNode.opacity = 255;
|
||||
if (this.selfData.totalSunCount == 0)
|
||||
this.selfNode.opacity = 0;
|
||||
}
|
||||
};
|
||||
Helloworld.prototype.backClick = function () {
|
||||
|
@ -96,19 +100,34 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
Helloworld.prototype.playerAction = function () {
|
||||
var _this = this;
|
||||
//-254 377 210 453
|
||||
this.Player.getChildByName("rank").active = false;
|
||||
var time = 1;
|
||||
this.tween = cc.tween(this.Player)
|
||||
.to(2, { position: cc.v3(210, 453, 0) })
|
||||
.call(function () {
|
||||
_this.Player.getChildByName("rank").active = true;
|
||||
_this.Player.getChildByName("rank").getChildByName("number")
|
||||
.getComponent(cc.Label).string = parseInt(time * 100 + "") + "%";
|
||||
})
|
||||
.start();
|
||||
time = (this.listData.length - this.rankNumber) / this.listData.length;
|
||||
if (this.listData.length >= 99) {
|
||||
if (this.rankNumber >= 99) {
|
||||
time = (Math.random() * 49 + 1) / 100;
|
||||
var matchId = cc.sys.localStorage.getItem("matchNumber");
|
||||
if (matchId == null || matchId == undefined) {
|
||||
time = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
}
|
||||
setTimeout(function () {
|
||||
if (_this.tween)
|
||||
_this.tween.stop();
|
||||
_this.Player.getChildByName("rank").active = true;
|
||||
_this.Player.getChildByName("rank").getChildByName("number")
|
||||
.getComponent(cc.Label).string = parseInt(time * 100 + "") + "%";
|
||||
}, time * 2000);
|
||||
};
|
||||
Helloworld.prototype.getRank = function () {
|
||||
|
@ -148,6 +167,8 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
};
|
||||
Helloworld.prototype.setPic2 = function (pic) {
|
||||
var _this = this;
|
||||
this.Player.active = true;
|
||||
this.Player.opacity = 0;
|
||||
this.Player.getChildByName("mask").getChildByName("icon").active = false;
|
||||
this.Player.getChildByName("mask").getChildByName("phone").active = false;
|
||||
var url = pic;
|
||||
|
@ -166,6 +187,8 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
var self = this;
|
||||
cc.assetManager.loadRemote(url, { ext: '.jpg' }, function (err, texture) {
|
||||
if (texture) {
|
||||
_this.Player.opacity = 255;
|
||||
_this.Player.getChildByName("mask").getChildByName("icon").active = false;
|
||||
_this.Player.getChildByName("mask").getChildByName("phone").active = true;
|
||||
_this.Player.getChildByName("mask").getChildByName("phone").getComponent(cc.Sprite)
|
||||
.spriteFrame = new cc.SpriteFrame(texture);
|
||||
|
@ -175,7 +198,9 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
// console.log("设置头像成功",err);
|
||||
}
|
||||
else {
|
||||
_this.Player.opacity = 255;
|
||||
// console.log("设置头像失败",url);
|
||||
_this.Player.getChildByName("mask").getChildByName("icon").active = true;
|
||||
console.log(err, texture);
|
||||
setTimeout(function () {
|
||||
_this.playerAction();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,22 +1,22 @@
|
|||
{
|
||||
"2e3d6223-9889-4122-8121-c6d837f5367e": {
|
||||
"asset": 1715325934039,
|
||||
"meta": 1715326085243,
|
||||
"asset": 1716867446237,
|
||||
"meta": 1716868891161,
|
||||
"relativePath": "migration"
|
||||
},
|
||||
"29f52784-2fca-467b-92e7-8fd9ef8c57b7": {
|
||||
"asset": 1715325934079,
|
||||
"meta": 1715326085243,
|
||||
"asset": 1716867446299,
|
||||
"meta": 1716868891162,
|
||||
"relativePath": "Scene"
|
||||
},
|
||||
"4734c20c-0db8-4eb2-92ea-e692f4d70934": {
|
||||
"asset": 1716452214949,
|
||||
"meta": 1716452900217,
|
||||
"asset": 1716867446329,
|
||||
"meta": 1716868891162,
|
||||
"relativePath": "Script"
|
||||
},
|
||||
"7b81d4e8-ec84-4716-968d-500ac1d78a54": {
|
||||
"asset": 1715325934136,
|
||||
"meta": 1715326085247,
|
||||
"asset": 1716867446357,
|
||||
"meta": 1716868891165,
|
||||
"relativePath": "Texture"
|
||||
},
|
||||
"7a231473-d1df-4b05-8620-6376c36252c1": {
|
||||
|
@ -25,8 +25,8 @@
|
|||
"relativePath": "migration\\use_v2.1-2.2.1_cc.Toggle_event.js"
|
||||
},
|
||||
"5a7c7479-48b8-4ee6-a003-33adfd2cb965": {
|
||||
"asset": 1715325934111,
|
||||
"meta": 1715326085247,
|
||||
"asset": 1716867446328,
|
||||
"meta": 1716868891166,
|
||||
"relativePath": "Script\\ListView"
|
||||
},
|
||||
"5aca560f-66b4-413d-95bd-73669c0bca6b": {
|
||||
|
@ -35,8 +35,8 @@
|
|||
"relativePath": "Script\\RankListItem.prefab"
|
||||
},
|
||||
"2d2f792f-a40c-49bb-a189-ed176a246e49": {
|
||||
"asset": 1716796974766,
|
||||
"meta": 1716796974771,
|
||||
"asset": 1717067787704,
|
||||
"meta": 1717067787709,
|
||||
"relativePath": "Scene\\RankScene.fire"
|
||||
},
|
||||
"a8027877-d8d6-4645-97a0-52d4a0123dba": {
|
||||
|
@ -50,23 +50,23 @@
|
|||
"relativePath": "Texture\\HelloWorld.png"
|
||||
},
|
||||
"7c1d6faa-66b9-4423-aa04-8c38a15768cf": {
|
||||
"asset": 1715325934038,
|
||||
"meta": 1715326085241,
|
||||
"asset": 1716867446233,
|
||||
"meta": 1716868891157,
|
||||
"relativePath": "animation"
|
||||
},
|
||||
"6ebfe2d9-539a-4853-8b16-fca5c89cf2ce": {
|
||||
"asset": 1716457544350,
|
||||
"meta": 1716522414195,
|
||||
"asset": 1716867446245,
|
||||
"meta": 1716868891162,
|
||||
"relativePath": "music"
|
||||
},
|
||||
"bf3935ca-518a-42f4-84e4-ad96badfd1b4": {
|
||||
"asset": 1715325934056,
|
||||
"meta": 1715326085243,
|
||||
"asset": 1716867446259,
|
||||
"meta": 1716868891162,
|
||||
"relativePath": "prefab"
|
||||
},
|
||||
"52e78fe3-9095-42ad-8e4d-f9bb12dc69ce": {
|
||||
"asset": 1716543913052,
|
||||
"meta": 1716547868164,
|
||||
"asset": 1716867446289,
|
||||
"meta": 1716868891162,
|
||||
"relativePath": "resources"
|
||||
},
|
||||
"dd9d69fc-bc3c-4239-968e-9c6f4e54d9cf": {
|
||||
|
@ -80,8 +80,8 @@
|
|||
"relativePath": "prefab\\line.prefab"
|
||||
},
|
||||
"3a232388-d8dc-4f79-a1ea-82f6385b7ce2": {
|
||||
"asset": 1716549462550,
|
||||
"meta": 1716549462555,
|
||||
"asset": 1716891674004,
|
||||
"meta": 1716891674007,
|
||||
"relativePath": "prefab\\qiu1.prefab"
|
||||
},
|
||||
"5e515837-650e-4584-a089-e2a025e36c39": {
|
||||
|
@ -124,19 +124,14 @@
|
|||
"meta": 1715325499067,
|
||||
"relativePath": "Script\\Notification.ts"
|
||||
},
|
||||
"b5d92920-0919-4abb-9218-2a76863e0a1a": {
|
||||
"asset": 1714279614000,
|
||||
"meta": 1715325499076,
|
||||
"relativePath": "Script\\Storage.js"
|
||||
},
|
||||
"f7f5d7e6-2a27-4e6d-988c-2edb817408aa": {
|
||||
"asset": 1714377434000,
|
||||
"meta": 1715325499104,
|
||||
"relativePath": "Script\\test.ts"
|
||||
},
|
||||
"4bff6e01-b411-48f4-867a-5d841f9e400f": {
|
||||
"asset": 1716372438665,
|
||||
"meta": 1716372438699,
|
||||
"asset": 1716867446333,
|
||||
"meta": 1716868891166,
|
||||
"relativePath": "Script\\tool"
|
||||
},
|
||||
"61aff0f9-48ef-48a6-8d1f-1a621e4c54d9": {
|
||||
|
@ -145,8 +140,8 @@
|
|||
"relativePath": "Script\\tool\\Shake.js"
|
||||
},
|
||||
"afa9e39a-94ca-477f-8a2a-25082d9092c3": {
|
||||
"asset": 1716369705622,
|
||||
"meta": 1716370289018,
|
||||
"asset": 1716867446352,
|
||||
"meta": 1716868891162,
|
||||
"relativePath": "Shader"
|
||||
},
|
||||
"70ca6f7c-88f0-44f1-9ab3-3b1c0d042995": {
|
||||
|
@ -215,13 +210,13 @@
|
|||
"relativePath": "Shader\\Effect_fluid2.png"
|
||||
},
|
||||
"2880dc26-5b38-48bd-baba-daaec97499cb": {
|
||||
"asset": 1716777154881,
|
||||
"meta": 1716781977066,
|
||||
"asset": 1716867446274,
|
||||
"meta": 1716868891162,
|
||||
"relativePath": "res"
|
||||
},
|
||||
"e8009432-4774-4831-a537-511de4498eee": {
|
||||
"asset": 1715915712854,
|
||||
"meta": 1715929964709,
|
||||
"asset": 1716867446324,
|
||||
"meta": 1716868891165,
|
||||
"relativePath": "Script\\crypto"
|
||||
},
|
||||
"e64e1a97-c93f-4257-ab34-80341d8ff79d": {
|
||||
|
@ -229,11 +224,6 @@
|
|||
"meta": 1715425306171,
|
||||
"relativePath": "Script\\crypto\\crypto-js.min.js"
|
||||
},
|
||||
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d": {
|
||||
"asset": 1716532366500,
|
||||
"meta": 1716532366525,
|
||||
"relativePath": "Scene\\LoadScene.fire"
|
||||
},
|
||||
"d54211e0-2d28-4528-88e3-e5fd7c9b59a2": {
|
||||
"asset": 1716189341583,
|
||||
"meta": 1716189350517,
|
||||
|
@ -266,502 +256,502 @@
|
|||
},
|
||||
"9836134e-b892-4283-b6b2-78b5acf3ed45": {
|
||||
"asset": 1714966328642,
|
||||
"meta": 1716808051612,
|
||||
"meta": 1717062584341,
|
||||
"relativePath": "effects"
|
||||
},
|
||||
"f6e6dd15-71d1-4ffe-ace7-24fd39942c05": {
|
||||
"asset": 1714966328752,
|
||||
"meta": 1716808051618,
|
||||
"meta": 1717062584347,
|
||||
"relativePath": "obsolete"
|
||||
},
|
||||
"f743d2b6-b7ea-4c14-a55b-547ed4d0a045": {
|
||||
"asset": 1714966328752,
|
||||
"meta": 1716808051618,
|
||||
"meta": 1717062584347,
|
||||
"relativePath": "particle"
|
||||
},
|
||||
"ae6c6c98-11e4-452f-8758-75f5c6a56e83": {
|
||||
"asset": 1714966328831,
|
||||
"meta": 1716808051619,
|
||||
"meta": 1717062584347,
|
||||
"relativePath": "prefab"
|
||||
},
|
||||
"897ef7a1-4860-4f64-968d-f5924b18668a": {
|
||||
"asset": 1714966328752,
|
||||
"meta": 1716808051962,
|
||||
"meta": 1717062584663,
|
||||
"relativePath": "prefab\\2d-camera.prefab"
|
||||
},
|
||||
"70d7cdb0-04cd-41bb-9480-c06a4785f386": {
|
||||
"asset": 1714966328768,
|
||||
"meta": 1716808051967,
|
||||
"meta": 1717062584665,
|
||||
"relativePath": "prefab\\3d-camera.prefab"
|
||||
},
|
||||
"a3ee0214-b432-4865-9666-4a3211814282": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808051966,
|
||||
"meta": 1717062584666,
|
||||
"relativePath": "prefab\\light"
|
||||
},
|
||||
"972b9a4d-47ee-4c74-b5c3-61d8a69bc29f": {
|
||||
"asset": 1714966328768,
|
||||
"meta": 1716808051969,
|
||||
"meta": 1717062584671,
|
||||
"relativePath": "prefab\\button.prefab"
|
||||
},
|
||||
"ed88f13d-fcad-4848-aa35-65a2cb973584": {
|
||||
"asset": 1714966328768,
|
||||
"meta": 1716808051971,
|
||||
"meta": 1717062584669,
|
||||
"relativePath": "prefab\\3d-stage.prefab"
|
||||
},
|
||||
"70bbeb73-6dc2-4ee4-8faf-76b3a0e34ec4": {
|
||||
"asset": 1714966328768,
|
||||
"meta": 1716808051965,
|
||||
"meta": 1717062584667,
|
||||
"relativePath": "prefab\\3d-particle.prefab"
|
||||
},
|
||||
"2c937608-2562-40ea-b264-7395df6f0cea": {
|
||||
"asset": 1714966328768,
|
||||
"meta": 1716808051973,
|
||||
"meta": 1717062584672,
|
||||
"relativePath": "prefab\\canvas.prefab"
|
||||
},
|
||||
"61aeb05b-3b32-452b-8eed-2b76deeed554": {
|
||||
"asset": 1714966328783,
|
||||
"meta": 1716808051976,
|
||||
"meta": 1717062584673,
|
||||
"relativePath": "prefab\\editbox.prefab"
|
||||
},
|
||||
"27756ebb-3d33-44b0-9b96-e858fadd4dd4": {
|
||||
"asset": 1714966328783,
|
||||
"meta": 1716808051983,
|
||||
"meta": 1717062584677,
|
||||
"relativePath": "prefab\\label.prefab"
|
||||
},
|
||||
"785a442c-3ceb-45be-a46e-7317f625f3b9": {
|
||||
"asset": 1714966328783,
|
||||
"meta": 1716808051986,
|
||||
"meta": 1717062584679,
|
||||
"relativePath": "prefab\\layout.prefab"
|
||||
},
|
||||
"cd33edea-55f5-46c2-958d-357a01384a36": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808051989,
|
||||
"meta": 1717062584684,
|
||||
"relativePath": "prefab\\particlesystem.prefab"
|
||||
},
|
||||
"5965ffac-69da-4b55-bcde-9225d0613c28": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808051993,
|
||||
"meta": 1717062584687,
|
||||
"relativePath": "prefab\\progressBar.prefab"
|
||||
},
|
||||
"ca8401fe-ad6e-41a8-bd46-8e3e4e9945be": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808051987,
|
||||
"meta": 1717062584681,
|
||||
"relativePath": "prefab\\pageview.prefab"
|
||||
},
|
||||
"4a37dd57-78cd-4cec-aad4-f11a73d12b63": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808051991,
|
||||
"meta": 1717062584685,
|
||||
"relativePath": "prefab\\richtext.prefab"
|
||||
},
|
||||
"0004d1cf-a0ad-47d8-ab17-34d3db9d35a3": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808051996,
|
||||
"meta": 1717062584690,
|
||||
"relativePath": "prefab\\slider.prefab"
|
||||
},
|
||||
"32044bd2-481f-4cf1-a656-e2b2fb1594eb": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808051994,
|
||||
"meta": 1717062584688,
|
||||
"relativePath": "prefab\\scrollview.prefab"
|
||||
},
|
||||
"96083d03-c332-4a3f-9386-d03e2d19e8ee": {
|
||||
"asset": 1714966328815,
|
||||
"meta": 1716808052005,
|
||||
"meta": 1717062584698,
|
||||
"relativePath": "prefab\\sprite.prefab"
|
||||
},
|
||||
"d8afc78c-4eac-4a9f-83dd-67bc70344d33": {
|
||||
"asset": 1714966328862,
|
||||
"meta": 1716808051620,
|
||||
"meta": 1717062584348,
|
||||
"relativePath": "resources"
|
||||
},
|
||||
"294c1663-4adf-4a1e-a795-53808011a38a": {
|
||||
"asset": 1714966328862,
|
||||
"meta": 1716808052015,
|
||||
"meta": 1717062584711,
|
||||
"relativePath": "resources\\effects"
|
||||
},
|
||||
"bbee2217-c261-49bd-a8ce-708d6bcc3500": {
|
||||
"asset": 1714966328893,
|
||||
"meta": 1716808052016,
|
||||
"meta": 1717062584714,
|
||||
"relativePath": "resources\\materials"
|
||||
},
|
||||
"7de03a80-4457-438d-95a7-3e7cdffd6086": {
|
||||
"asset": 1714966328815,
|
||||
"meta": 1716808052025,
|
||||
"meta": 1717062584718,
|
||||
"relativePath": "prefab\\tiledmap.prefab"
|
||||
},
|
||||
"30682f87-9f0d-4f17-8a44-72863791461b": {
|
||||
"asset": 1714966328831,
|
||||
"meta": 1716808052045,
|
||||
"meta": 1717062584736,
|
||||
"relativePath": "resources\\effects\\builtin-2d-graphics.effect"
|
||||
},
|
||||
"1f55e3be-b89b-4b79-88de-47fd31018044": {
|
||||
"asset": 1714966328815,
|
||||
"meta": 1716808052023,
|
||||
"meta": 1717062584715,
|
||||
"relativePath": "prefab\\sprite_splash.prefab"
|
||||
},
|
||||
"144c3297-af63-49e8-b8ef-1cfa29b3be28": {
|
||||
"asset": 1714966328831,
|
||||
"meta": 1716808052054,
|
||||
"meta": 1717062584743,
|
||||
"relativePath": "resources\\effects\\builtin-2d-gray-sprite.effect"
|
||||
},
|
||||
"0d784963-d024-4ea6-a7db-03be0ad63010": {
|
||||
"asset": 1714966328815,
|
||||
"meta": 1716808052032,
|
||||
"meta": 1717062584721,
|
||||
"relativePath": "prefab\\toggle.prefab"
|
||||
},
|
||||
"f18742d7-56d2-4eb5-ae49-2d9d710b37c8": {
|
||||
"asset": 1714966328831,
|
||||
"meta": 1716808052064,
|
||||
"meta": 1717062584755,
|
||||
"relativePath": "resources\\effects\\builtin-2d-label.effect"
|
||||
},
|
||||
"0e42ba95-1fa1-46aa-b2cf-143cd1bcee2c": {
|
||||
"asset": 1714966328815,
|
||||
"meta": 1716808052027,
|
||||
"meta": 1717062584719,
|
||||
"relativePath": "prefab\\tiledtile.prefab"
|
||||
},
|
||||
"0e93aeaa-0b53-4e40-b8e0-6268b4e07bd7": {
|
||||
"asset": 1714966328831,
|
||||
"meta": 1716808052072,
|
||||
"meta": 1717062584763,
|
||||
"relativePath": "resources\\effects\\builtin-2d-spine.effect"
|
||||
},
|
||||
"2874f8dd-416c-4440-81b7-555975426e93": {
|
||||
"asset": 1714966328846,
|
||||
"meta": 1716808052081,
|
||||
"meta": 1717062584769,
|
||||
"relativePath": "resources\\effects\\builtin-2d-sprite.effect"
|
||||
},
|
||||
"829a282c-b049-4019-bd38-5ace8d8a6417": {
|
||||
"asset": 1714966328846,
|
||||
"meta": 1716808052125,
|
||||
"meta": 1717062584815,
|
||||
"relativePath": "resources\\effects\\builtin-3d-particle.effect"
|
||||
},
|
||||
"2a7c0036-e0b3-4fe1-8998-89a54b8a2bec": {
|
||||
"asset": 1714966328846,
|
||||
"meta": 1716808052143,
|
||||
"meta": 1717062584829,
|
||||
"relativePath": "resources\\effects\\builtin-3d-trail.effect"
|
||||
},
|
||||
"c0040c95-c57f-49cd-9cbc-12316b73d0d4": {
|
||||
"asset": 1714966328846,
|
||||
"meta": 1716808052149,
|
||||
"meta": 1717062584943,
|
||||
"relativePath": "resources\\effects\\builtin-clear-stencil.effect"
|
||||
},
|
||||
"6d91e591-4ce0-465c-809f-610ec95019c6": {
|
||||
"asset": 1714966328862,
|
||||
"meta": 1716808052160,
|
||||
"meta": 1717062584956,
|
||||
"relativePath": "resources\\effects\\builtin-unlit.effect"
|
||||
},
|
||||
"bf0a434c-84dd-4a8e-a08a-7a36f180cc75": {
|
||||
"asset": 1714966328815,
|
||||
"meta": 1716808052028,
|
||||
"meta": 1717062584723,
|
||||
"relativePath": "prefab\\toggleContainer.prefab"
|
||||
},
|
||||
"232d2782-c4bd-4bb4-9e01-909f03d6d3b9": {
|
||||
"asset": 1714966328815,
|
||||
"meta": 1716808052033,
|
||||
"meta": 1717062584725,
|
||||
"relativePath": "prefab\\videoplayer.prefab"
|
||||
},
|
||||
"d1b8be49-b0a0-435c-83b7-552bed4bbe35": {
|
||||
"asset": 1714966328815,
|
||||
"meta": 1716808052030,
|
||||
"meta": 1717062584724,
|
||||
"relativePath": "prefab\\toggleGroup.prefab"
|
||||
},
|
||||
"8c5001fd-07ee-4a4b-a8a0-63e15195e94d": {
|
||||
"asset": 1714966328831,
|
||||
"meta": 1716808052129,
|
||||
"meta": 1717062584936,
|
||||
"relativePath": "prefab\\webview.prefab"
|
||||
},
|
||||
"ddb99b39-7004-47cd-9705-751905c43c46": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808052180,
|
||||
"meta": 1717062584979,
|
||||
"relativePath": "prefab\\light\\directional.prefab"
|
||||
},
|
||||
"0cf30284-9073-46bc-9eba-e62b69dbbff3": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808052177,
|
||||
"meta": 1717062584971,
|
||||
"relativePath": "prefab\\light\\point.prefab"
|
||||
},
|
||||
"61906da3-7003-4bda-9abc-5769c76faee4": {
|
||||
"asset": 1714966328783,
|
||||
"meta": 1716808052179,
|
||||
"meta": 1717062584968,
|
||||
"relativePath": "prefab\\light\\ambient.prefab"
|
||||
},
|
||||
"f5331fd2-bf42-4ee3-a3fd-3e1657600eff": {
|
||||
"asset": 1714966328800,
|
||||
"meta": 1716808052178,
|
||||
"meta": 1717062584977,
|
||||
"relativePath": "prefab\\light\\spot.prefab"
|
||||
},
|
||||
"a153945d-2511-4c14-be7b-05d242f47d57": {
|
||||
"asset": 1714966328862,
|
||||
"meta": 1716808052252,
|
||||
"meta": 1717062585062,
|
||||
"relativePath": "resources\\materials\\builtin-2d-graphics.mtl"
|
||||
},
|
||||
"6f801092-0c37-4f30-89ef-c8d960825b36": {
|
||||
"asset": 1714966328862,
|
||||
"meta": 1716808052250,
|
||||
"meta": 1717062585060,
|
||||
"relativePath": "resources\\materials\\builtin-2d-base.mtl"
|
||||
},
|
||||
"3a7bb79f-32fd-422e-ada2-96f518fed422": {
|
||||
"asset": 1714966328862,
|
||||
"meta": 1716808052253,
|
||||
"meta": 1717062585064,
|
||||
"relativePath": "resources\\materials\\builtin-2d-gray-sprite.mtl"
|
||||
},
|
||||
"432fa09c-cf03-4cff-a186-982604408a07": {
|
||||
"asset": 1714966328878,
|
||||
"meta": 1716808052260,
|
||||
"meta": 1717062585065,
|
||||
"relativePath": "resources\\materials\\builtin-3d-particle.mtl"
|
||||
},
|
||||
"7afd064b-113f-480e-b793-8817d19f63c3": {
|
||||
"asset": 1714966328878,
|
||||
"meta": 1716808052253,
|
||||
"meta": 1717062585062,
|
||||
"relativePath": "resources\\materials\\builtin-2d-spine.mtl"
|
||||
},
|
||||
"eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432": {
|
||||
"asset": 1714966328878,
|
||||
"meta": 1716808052251,
|
||||
"meta": 1717062585063,
|
||||
"relativePath": "resources\\materials\\builtin-2d-sprite.mtl"
|
||||
},
|
||||
"cf7e0bb8-a81c-44a9-ad79-d28d43991032": {
|
||||
"asset": 1714966328878,
|
||||
"meta": 1716808052261,
|
||||
"meta": 1717062585067,
|
||||
"relativePath": "resources\\materials\\builtin-clear-stencil.mtl"
|
||||
},
|
||||
"e02d87d4-e599-4d16-8001-e14891ac6506": {
|
||||
"asset": 1714966328878,
|
||||
"meta": 1716808052251,
|
||||
"meta": 1717062585061,
|
||||
"relativePath": "resources\\materials\\builtin-2d-label.mtl"
|
||||
},
|
||||
"466d4f9b-e5f4-4ea8-85d5-3c6e9a65658a": {
|
||||
"asset": 1714966328878,
|
||||
"meta": 1716808052260,
|
||||
"meta": 1717062585066,
|
||||
"relativePath": "resources\\materials\\builtin-3d-trail.mtl"
|
||||
},
|
||||
"d0a82d39-bede-46c4-b698-c81ff0dedfff": {
|
||||
"asset": 1714966328752,
|
||||
"meta": 1716808052036,
|
||||
"meta": 1717062584729,
|
||||
"relativePath": "particle\\atom.png"
|
||||
},
|
||||
"2a296057-247c-4a1c-bbeb-0548b6c98650": {
|
||||
"asset": 1714966328893,
|
||||
"meta": 1716808052262,
|
||||
"meta": 1717062585065,
|
||||
"relativePath": "resources\\materials\\builtin-unlit.mtl"
|
||||
},
|
||||
"8a96b965-2dc0-4e03-aa90-3b79cb93b5b4": {
|
||||
"asset": 1714966328752,
|
||||
"meta": 1716808052021,
|
||||
"meta": 1717062584728,
|
||||
"relativePath": "obsolete\\atom.png"
|
||||
},
|
||||
"b8223619-7e38-47c4-841f-9160c232495a": {
|
||||
"asset": 1714966328752,
|
||||
"meta": 1716808052276,
|
||||
"meta": 1717062585090,
|
||||
"relativePath": "obsolete\\atom.plist"
|
||||
},
|
||||
"b2687ac4-099e-403c-a192-ff477686f4f5": {
|
||||
"asset": 1714966328752,
|
||||
"meta": 1716808052277,
|
||||
"meta": 1717062585092,
|
||||
"relativePath": "particle\\atom.plist"
|
||||
},
|
||||
"430eccbf-bf2c-4e6e-8c0c-884bbb487f32": {
|
||||
"asset": 1714966328642,
|
||||
"meta": 1716808051810,
|
||||
"meta": 1717062584516,
|
||||
"relativePath": "effects\\__builtin-editor-gizmo-line.effect"
|
||||
},
|
||||
"6c5cf6e1-b044-4eac-9431-835644d57381": {
|
||||
"asset": 1714966328642,
|
||||
"meta": 1716808051817,
|
||||
"meta": 1717062584523,
|
||||
"relativePath": "effects\\__builtin-editor-gizmo-unlit.effect"
|
||||
},
|
||||
"115286d1-2e10-49ee-aab4-341583f607e8": {
|
||||
"asset": 1714966328642,
|
||||
"meta": 1716808051842,
|
||||
"meta": 1717062584547,
|
||||
"relativePath": "effects\\__builtin-editor-gizmo.effect"
|
||||
},
|
||||
"abc2cb62-7852-4525-a90d-d474487b88f2": {
|
||||
"asset": 1714966328642,
|
||||
"meta": 1716808051744,
|
||||
"meta": 1717062584454,
|
||||
"relativePath": "effects\\builtin-phong.effect"
|
||||
},
|
||||
"e2f00085-c597-422d-9759-52c360279106": {
|
||||
"asset": 1714966328642,
|
||||
"meta": 1716808051795,
|
||||
"meta": 1717062584505,
|
||||
"relativePath": "effects\\builtin-toon.effect"
|
||||
},
|
||||
"f8e6b000-5643-4b86-9080-aa680ce1f599": {
|
||||
"asset": 1714966328706,
|
||||
"meta": 1716808051613,
|
||||
"meta": 1717062584343,
|
||||
"relativePath": "image"
|
||||
},
|
||||
"5c3eedba-6c41-4c0c-9ba7-d91f813cbd1c": {
|
||||
"asset": 1714966328721,
|
||||
"meta": 1716808051614,
|
||||
"meta": 1717062584344,
|
||||
"relativePath": "materials"
|
||||
},
|
||||
"fc09f9bd-2cce-4605-b630-8145ef809ed6": {
|
||||
"asset": 1714966328721,
|
||||
"meta": 1716808051616,
|
||||
"meta": 1717062584344,
|
||||
"relativePath": "misc"
|
||||
},
|
||||
"99170b0b-d210-46f1-b213-7d9e3f23098a": {
|
||||
"asset": 1714966328673,
|
||||
"meta": 1716808051951,
|
||||
"meta": 1717062584610,
|
||||
"relativePath": "image\\default_progressbar_bg.png"
|
||||
},
|
||||
"cfef78f1-c8df-49b7-8ed0-4c953ace2621": {
|
||||
"asset": 1714966328673,
|
||||
"meta": 1716808051946,
|
||||
"meta": 1717062584598,
|
||||
"relativePath": "image\\default_progressbar.png"
|
||||
},
|
||||
"db019bf7-f71c-4111-98cf-918ea180cb48": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808051617,
|
||||
"meta": 1717062584346,
|
||||
"relativePath": "model"
|
||||
},
|
||||
"e39e96e6-6f6e-413f-bcf1-ac7679bb648a": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808051908,
|
||||
"meta": 1717062584615,
|
||||
"relativePath": "model\\prefab"
|
||||
},
|
||||
"b43ff3c2-02bb-4874-81f7-f2dea6970f18": {
|
||||
"asset": 1714966328658,
|
||||
"meta": 1716808051905,
|
||||
"meta": 1717062584644,
|
||||
"relativePath": "image\\default_btn_pressed.png"
|
||||
},
|
||||
"edd215b9-2796-4a05-aaf5-81f96c9281ce": {
|
||||
"asset": 1714966328658,
|
||||
"meta": 1716808051893,
|
||||
"meta": 1717062584614,
|
||||
"relativePath": "image\\default_editbox_bg.png"
|
||||
},
|
||||
"617323dd-11f4-4dd3-8eec-0caf6b3b45b9": {
|
||||
"asset": 1714966328689,
|
||||
"meta": 1716808051949,
|
||||
"meta": 1717062584653,
|
||||
"relativePath": "image\\default_scrollbar_vertical_bg.png"
|
||||
},
|
||||
"6e056173-d285-473c-b206-40a7fff5386e": {
|
||||
"asset": 1714966328689,
|
||||
"meta": 1716808051956,
|
||||
"meta": 1717062584656,
|
||||
"relativePath": "image\\default_sprite.png"
|
||||
},
|
||||
"4bab67cb-18e6-4099-b840-355f0473f890": {
|
||||
"asset": 1714966328689,
|
||||
"meta": 1716808051944,
|
||||
"meta": 1717062584648,
|
||||
"relativePath": "image\\default_scrollbar_bg.png"
|
||||
},
|
||||
"e851e89b-faa2-4484-bea6-5c01dd9f06e2": {
|
||||
"asset": 1714966328658,
|
||||
"meta": 1716808051942,
|
||||
"meta": 1717062584612,
|
||||
"relativePath": "image\\default_btn_normal.png"
|
||||
},
|
||||
"c4480a0a-6ac5-443f-8b40-361a14257fc8": {
|
||||
"asset": 1714966328706,
|
||||
"meta": 1716808052227,
|
||||
"meta": 1717062585041,
|
||||
"relativePath": "materials\\builtin-phong.mtl"
|
||||
},
|
||||
"a87cc147-01b2-43f8-8e42-a7ca90b0c757": {
|
||||
"asset": 1714966328721,
|
||||
"meta": 1716808052166,
|
||||
"meta": 1717062584945,
|
||||
"relativePath": "model\\prefab\\box.prefab"
|
||||
},
|
||||
"d81ec8ad-247c-4e62-aa3c-d35c4193c7af": {
|
||||
"asset": 1714966328673,
|
||||
"meta": 1716808051953,
|
||||
"meta": 1717062584600,
|
||||
"relativePath": "image\\default_panel.png"
|
||||
},
|
||||
"b5fc2cf2-7942-483d-be1f-bbeadc4714ad": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808052168,
|
||||
"meta": 1717062584959,
|
||||
"relativePath": "model\\prefab\\cone.prefab"
|
||||
},
|
||||
"fe1417b6-fe6b-46a4-ae7c-9fd331f33a2a": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808052165,
|
||||
"meta": 1717062584957,
|
||||
"relativePath": "model\\prefab\\capsule.prefab"
|
||||
},
|
||||
"71561142-4c83-4933-afca-cb7a17f67053": {
|
||||
"asset": 1714966328658,
|
||||
"meta": 1716808051895,
|
||||
"meta": 1717062584602,
|
||||
"relativePath": "image\\default_btn_disabled.png"
|
||||
},
|
||||
"567dcd80-8bf4-4535-8a5a-313f1caf078a": {
|
||||
"asset": 1714966328673,
|
||||
"meta": 1716808051899,
|
||||
"meta": 1717062584646,
|
||||
"relativePath": "image\\default_radio_button_off.png"
|
||||
},
|
||||
"3f376125-a699-40ca-ad05-04d662eaa1f2": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808052174,
|
||||
"meta": 1717062584969,
|
||||
"relativePath": "model\\prefab\\plane.prefab"
|
||||
},
|
||||
"6c9ef10d-b479-420b-bfe6-39cdda6a8ae0": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808052178,
|
||||
"meta": 1717062584975,
|
||||
"relativePath": "model\\prefab\\quad.prefab"
|
||||
},
|
||||
"600301aa-3357-4a10-b086-84f011fa32ba": {
|
||||
"asset": 1714966328642,
|
||||
"meta": 1716808051947,
|
||||
"meta": 1717062584605,
|
||||
"relativePath": "image\\default-particle.png"
|
||||
},
|
||||
"2d9a4b85-b0ab-4c46-84c5-18f393ab2058": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808052172,
|
||||
"meta": 1717062584966,
|
||||
"relativePath": "model\\prefab\\sphere.prefab"
|
||||
},
|
||||
"1c5e4038-953a-44c2-b620-0bbfc6170477": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808052169,
|
||||
"meta": 1717062584964,
|
||||
"relativePath": "model\\prefab\\cylinder.prefab"
|
||||
},
|
||||
"9d60001f-b5f4-4726-a629-2659e3ded0b8": {
|
||||
"asset": 1714966328673,
|
||||
"meta": 1716808051897,
|
||||
"meta": 1717062584642,
|
||||
"relativePath": "image\\default_radio_button_on.png"
|
||||
},
|
||||
"de510076-056b-484f-b94c-83bef217d0e1": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808052175,
|
||||
"meta": 1717062584971,
|
||||
"relativePath": "model\\prefab\\torus.prefab"
|
||||
},
|
||||
"2be36297-9abb-4fee-8049-9ed5e271da8a": {
|
||||
"asset": 1714966328721,
|
||||
"meta": 1716808052035,
|
||||
"meta": 1717062584747,
|
||||
"relativePath": "misc\\default_video.mp4"
|
||||
},
|
||||
"0291c134-b3da-4098-b7b5-e397edbe947f": {
|
||||
"asset": 1714966328689,
|
||||
"meta": 1716808051907,
|
||||
"meta": 1717062584649,
|
||||
"relativePath": "image\\default_scrollbar.png"
|
||||
},
|
||||
"d6d3ca85-4681-47c1-b5dd-d036a9d39ea2": {
|
||||
"asset": 1714966328689,
|
||||
"meta": 1716808051955,
|
||||
"meta": 1717062584652,
|
||||
"relativePath": "image\\default_scrollbar_vertical.png"
|
||||
},
|
||||
"0275e94c-56a7-410f-bd1a-fc7483f7d14a": {
|
||||
"asset": 1714966328705,
|
||||
"meta": 1716808051903,
|
||||
"meta": 1717062584650,
|
||||
"relativePath": "image\\default_sprite_splash.png"
|
||||
},
|
||||
"73a0903d-d80e-4e3c-aa67-f999543c08f5": {
|
||||
"asset": 1714966328706,
|
||||
"meta": 1716808052013,
|
||||
"meta": 1717062584710,
|
||||
"relativePath": "image\\default_toggle_checkmark.png"
|
||||
},
|
||||
"d29077ba-1627-4a72-9579-7b56a235340c": {
|
||||
"asset": 1714966328706,
|
||||
"meta": 1716808052017,
|
||||
"meta": 1717062584717,
|
||||
"relativePath": "image\\default_toggle_normal.png"
|
||||
},
|
||||
"b181c1e4-0a72-4a91-bfb0-ae6f36ca60bd": {
|
||||
"asset": 1714966328706,
|
||||
"meta": 1716808052019,
|
||||
"meta": 1717062584713,
|
||||
"relativePath": "image\\default_toggle_pressed.png"
|
||||
},
|
||||
"c25b9d50-c8fc-4d27-beeb-6e7c1f2e5c0f": {
|
||||
"asset": 1714966328706,
|
||||
"meta": 1716808052046,
|
||||
"meta": 1717062584727,
|
||||
"relativePath": "image\\default_toggle_disabled.png"
|
||||
},
|
||||
"954fec8b-cd16-4bb9-a3b7-7719660e7558": {
|
||||
"asset": 1714966328737,
|
||||
"meta": 1716808053901,
|
||||
"meta": 1717062586635,
|
||||
"relativePath": "model\\primitives.fbx"
|
||||
},
|
||||
"41ff2622-6092-4155-95fb-636454d00701": {
|
||||
|
@ -869,39 +859,49 @@
|
|||
"meta": 1716777228534,
|
||||
"relativePath": "res\\fit.png"
|
||||
},
|
||||
"805c69df-dfdf-4759-97ae-5a7341f424c7": {
|
||||
"asset": 1716779172526,
|
||||
"meta": 1716779189888,
|
||||
"relativePath": "Script\\GameOver.ts"
|
||||
},
|
||||
"454ad829-851a-40ea-8ab9-941e828357ca": {
|
||||
"asset": 1716798183370,
|
||||
"meta": 1716799671443,
|
||||
"relativePath": "Script\\Load.ts"
|
||||
},
|
||||
"b0432040-dbde-438c-839c-ba2b5d18a3b5": {
|
||||
"asset": 1716808518296,
|
||||
"meta": 1716809015343,
|
||||
"relativePath": "Script\\GameManager.ts"
|
||||
},
|
||||
"e1b90feb-a217-4493-849d-9a611900d683": {
|
||||
"asset": 1716808460990,
|
||||
"meta": 1716809015394,
|
||||
"relativePath": "Script\\Helloworld.ts"
|
||||
},
|
||||
"48168cfc-cd06-437c-b39b-1d07a0bed786": {
|
||||
"asset": 1716861878659,
|
||||
"meta": 1716861900659,
|
||||
"relativePath": "res\\jiantou.png"
|
||||
},
|
||||
"805c69df-dfdf-4759-97ae-5a7341f424c7": {
|
||||
"asset": 1716889782212,
|
||||
"meta": 1716889783917,
|
||||
"relativePath": "Script\\GameOver.ts"
|
||||
},
|
||||
"9830733c-b94b-4b60-a687-5cf98680259f": {
|
||||
"asset": 1716862004747,
|
||||
"meta": 1716862065023,
|
||||
"asset": 1716953892989,
|
||||
"meta": 1716953893911,
|
||||
"relativePath": "Script\\crypto\\serverAPI.ts"
|
||||
},
|
||||
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d": {
|
||||
"asset": 1717066356585,
|
||||
"meta": 1717066356596,
|
||||
"relativePath": "Scene\\LoadScene.fire"
|
||||
},
|
||||
"f2f0b239-3ec5-48fa-8d7c-c45e86f8a55a": {
|
||||
"asset": 1716861951186,
|
||||
"meta": 1716862065085,
|
||||
"asset": 1717058398467,
|
||||
"meta": 1717058398807,
|
||||
"relativePath": "Script\\GameData.ts"
|
||||
},
|
||||
"b0432040-dbde-438c-839c-ba2b5d18a3b5": {
|
||||
"asset": 1717058598513,
|
||||
"meta": 1717058605737,
|
||||
"relativePath": "Script\\GameManager.ts"
|
||||
},
|
||||
"7cf8c313-e732-40d1-9538-1a9d0970bf2f": {
|
||||
"asset": 1717063208498,
|
||||
"meta": 1717063292263,
|
||||
"relativePath": "Script\\Storage.ts"
|
||||
},
|
||||
"e1b90feb-a217-4493-849d-9a611900d683": {
|
||||
"asset": 1717066714803,
|
||||
"meta": 1717066715703,
|
||||
"relativePath": "Script\\Helloworld.ts"
|
||||
},
|
||||
"454ad829-851a-40ea-8ab9-941e828357ca": {
|
||||
"asset": 1717067786572,
|
||||
"meta": 1717067786922,
|
||||
"relativePath": "Script\\Load.ts"
|
||||
}
|
||||
}
|
|
@ -5,21 +5,21 @@
|
|||
"main": true,
|
||||
"url": "app://editor/index.html",
|
||||
"windowType": "dockable",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 1280,
|
||||
"height": 672,
|
||||
"x": -8,
|
||||
"y": -8,
|
||||
"width": 1296,
|
||||
"height": 688,
|
||||
"layout": {
|
||||
"type": "dock-h",
|
||||
"children": [
|
||||
{
|
||||
"width": 204.64584350585938,
|
||||
"height": 556.3333740234375,
|
||||
"width": 207.28125,
|
||||
"height": 571,
|
||||
"type": "dock-v",
|
||||
"children": [
|
||||
{
|
||||
"width": 204.64584350585938,
|
||||
"height": 300.04168701171875,
|
||||
"width": 207.28125,
|
||||
"height": 308.13543701171875,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -27,8 +27,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 204.64584350585938,
|
||||
"height": 253.28125,
|
||||
"width": 207.28125,
|
||||
"height": 259.8645935058594,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -38,8 +38,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 751.34375,
|
||||
"height": 556.3333740234375,
|
||||
"width": 759.3333740234375,
|
||||
"height": 571,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -47,8 +47,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 304,
|
||||
"height": 556.3333740234375,
|
||||
"width": 307.375,
|
||||
"height": 571,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -65,7 +65,8 @@
|
|||
"inspector",
|
||||
"cocos-services"
|
||||
]
|
||||
}
|
||||
},
|
||||
" common-asset-worker-worker": {}
|
||||
},
|
||||
"panels": {
|
||||
"builder": {
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
{
|
||||
"last-edit": "4b9c5a7e-c645-48a4-9aca-5df381ce4ef5",
|
||||
"last-edit": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"recent-items": [
|
||||
"40ba7e70-1826-4aa1-92f3-aa63ae39294b",
|
||||
"32254f37-ac95-4912-a787-b8e0429ba0f1",
|
||||
"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",
|
||||
"4eaf518b-35ec-4262-928d-4d497c3f2830",
|
||||
"774829bb-123e-48b6-930e-6b3e02491506",
|
||||
"2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"4b9c5a7e-c645-48a4-9aca-5df381ce4ef5"
|
||||
"4b9c5a7e-c645-48a4-9aca-5df381ce4ef5",
|
||||
"3a232388-d8dc-4f79-a1ea-82f6385b7ce2",
|
||||
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d",
|
||||
"2d2f792f-a40c-49bb-a189-ed176a246e49"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -38,14 +38,11 @@
|
|||
"0fcDfHHpRHXKM9MyyslQY8",
|
||||
"80UN5iBc9K9pd8hXCc1VAk",
|
||||
"9a3MBWS0tATp1bXC+684by",
|
||||
"a2Zfykcl1GPqJhA7ixiKd3",
|
||||
"e2e0crkOLxGrpMxpbC4iQg1",
|
||||
"bdbEH+735OxrggnQuRlqF2",
|
||||
"99Fe5tv8pMaYMcXAIOO6ZV",
|
||||
"85AQ3wR2VBJ7P/esG1IsjH",
|
||||
"bb+DPySjNLhZcxUUphVuRh",
|
||||
"235SMzDbhOq6ztcaxq2zgs",
|
||||
"8fIUbpCjhI5r01JqiMBRub",
|
||||
"5athgBtiFNOJe+DCAIMam3",
|
||||
"d85qKPpT1EtqV0GDNB7tE3",
|
||||
"05zrhv4M5Oi545Yl6haU2p",
|
||||
|
@ -69,7 +66,6 @@
|
|||
"4ecJapFy5GW6jaFZfBauI3",
|
||||
"f1j8kdo7RHv6Rvh+3P8tTw",
|
||||
"22iCrJORVGCLYRM1Z1n0wp",
|
||||
"fe7qLOC0RM9qPt+IfQpa5W",
|
||||
"99IKRDjA9IYKqv3gynm5Zm",
|
||||
"f9Cw01651C2Zl+trl7WVsP",
|
||||
"cfxr47kQ5LA6a7THlAhDRR",
|
||||
|
@ -78,7 +74,6 @@
|
|||
"8cvS2HAkBM05fjj60bD03B",
|
||||
"16gqVcPfxELJJJvzrWZur+",
|
||||
"7dABu6LfBPVrHU5tOjT7Yt",
|
||||
"78pYT7vxBK7YbD2aVkC4Kw",
|
||||
"d7dz5M5UZGWb3XdTtMwKTr",
|
||||
"beVty643BMKbTRukfIU7HV",
|
||||
"1193kI5mxIVb/DB02RtHNQ",
|
||||
|
@ -190,9 +185,10 @@
|
|||
"78Sk802p9L/Ip+ZPEFbJnp",
|
||||
"cfD+6eekJE44Ilk2xG5ORu",
|
||||
"6bCpWS8ktAfIpBUoWywuvF",
|
||||
"e2e0crkOLxGrpMxpbC4iQg1",
|
||||
"cf4fwLe4hJXLYT5vY7WfC9",
|
||||
"8ak5WlHVBELqSzRzcpZa3P",
|
||||
"10unPSfi1NUb30N1EjhieB",
|
||||
"791LpnRkFNkqdfpCoJ3Pqk"
|
||||
"a9Y/TP/QhAdq9i2KGsTC0d",
|
||||
"a1BRwywGFMT6iJxK+nijOf",
|
||||
"7aHA1K+7hE8YNbYjVirEih"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"last-module-event-record-time": 1716346608366,
|
||||
"last-module-event-record-time": 1716951696375,
|
||||
"group-list": [
|
||||
"default"
|
||||
],
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -504,7 +504,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "5024250a-bacf-47bd-a382-8fe9dc351d37"
|
||||
"__uuid__": "d33a1397-766e-4fe0-936c-7bb5fc18c19e"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
|
@ -517,9 +517,7 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "f683b01d-4d4a-4b64-a054-741e0785d512"
|
||||
},
|
||||
"_atlas": null,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
|
@ -742,7 +740,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "5024250a-bacf-47bd-a382-8fe9dc351d37"
|
||||
"__uuid__": "d33a1397-766e-4fe0-936c-7bb5fc18c19e"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
|
@ -755,9 +753,7 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": {
|
||||
"__uuid__": "f683b01d-4d4a-4b64-a054-741e0785d512"
|
||||
},
|
||||
"_atlas": null,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":"1.0.8","stats":{"C:/Work/Project/Test/Test/temp/quick-scripts/src/__qc_index__.js":"2024-05-28T02:03:44.242Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/ListView/ItemRender.js":"2024-05-28T02:03:44.188Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/CtrlFluxayTexture.js":"2024-05-28T02:03:44.184Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-05-28T02:03:44.177Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/crypto/serverAPI.js":"2024-05-28T02:03:44.178Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-05-28T02:03:44.175Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/tool/GameTool.js":"2024-05-28T02:03:44.180Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/GameData.js":"2024-05-28T02:03:44.197Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/Notification.js":"2024-05-28T02:03:44.196Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/Helloworld.js":"2024-05-28T02:03:44.192Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/Storage.js":"2024-05-28T02:03:44.185Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-05-28T02:03:44.182Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/Load.js":"2024-05-28T02:03:44.170Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/BallAudioManager.js":"2024-05-28T02:03:44.187Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-05-28T02:03:44.167Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/test.js":"2024-05-28T02:03:44.199Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/Sun.js":"2024-05-28T02:03:44.171Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/crypto/crypto-js.min.js":"2024-05-28T02:03:44.194Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/ListView/List.js":"2024-05-28T02:03:44.190Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/tool/DynamicAtlasManager.js":"2024-05-28T02:03:44.168Z","C:/Work/Project/Test/Test/temp/quick-scripts/src/assets/Script/tool/Shake.js":"2024-05-28T02:03:44.173Z"}}
|
||||
{"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-05-30T10:01:32.316Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/ListView/ItemRender.js":"2024-05-30T09:49:46.892Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-05-30T09:49:46.876Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-05-30T09:49:46.883Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-05-30T09:49:46.884Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/crypto/serverAPI.js":"2024-05-30T09:49:46.885Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/DynamicAtlasManager.js":"2024-05-30T09:49:46.878Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Storage.js":"2024-05-30T10:01:32.291Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/test.js":"2024-05-30T09:49:46.898Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-05-30T09:49:46.880Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Helloworld.js":"2024-05-30T09:49:46.894Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/BallAudioManager.js":"2024-05-30T09:49:46.890Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameData.js":"2024-05-30T09:49:46.897Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/ListView/List.js":"2024-05-30T09:49:46.893Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/Shake.js":"2024-05-30T09:49:46.881Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-05-30T09:49:46.887Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-05-30T10:01:32.265Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Notification.js":"2024-05-30T09:49:46.896Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/tool/GameTool.js":"2024-05-30T09:49:46.886Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/CtrlFluxayTexture.js":"2024-05-30T09:49:46.888Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/crypto/crypto-js.min.js":"2024-05-30T09:49:46.895Z"}}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
|
||||
(function () {
|
||||
var scripts = [{"deps":{"./assets/Script/GameData":7,"./assets/Script/GameManager":11,"./assets/Script/GameOver":3,"./assets/Script/GuideManager":14,"./assets/Script/Helloworld":9,"./assets/Script/Load":12,"./assets/Script/Notification":8,"./assets/Script/Storage":10,"./assets/Script/Sun":16,"./assets/Script/test":15,"./assets/Script/BallAudioManager":13,"./assets/Script/ListView/List":18,"./assets/Script/ListView/ItemRender":1,"./assets/Script/crypto/serverAPI":4,"./assets/Script/crypto/crypto-js.min":17,"./assets/Script/tool/GameTool":6,"./assets/Script/tool/Shake":20,"./assets/Script/tool/DynamicAtlasManager":19,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":5,"./assets/Script/CtrlFluxayTexture":2},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/Script/ListView/ItemRender.js"},{"deps":{},"path":"preview-scripts/assets/Script/CtrlFluxayTexture.js"},{"deps":{"./GameData":7,"./crypto/serverAPI":4},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{"../GameData":7,"./crypto-js.min.js":17},"path":"preview-scripts/assets/Script/crypto/serverAPI.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{"Storage":10},"path":"preview-scripts/assets/Script/tool/GameTool.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameData.js"},{"deps":{},"path":"preview-scripts/assets/Script/Notification.js"},{"deps":{"./GameData":7,"./ListView/List":18,"./crypto/serverAPI":4},"path":"preview-scripts/assets/Script/Helloworld.js"},{"deps":{},"path":"preview-scripts/assets/Script/Storage.js"},{"deps":{"./GameData":7,"./Notification":8,"./crypto/serverAPI":4},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{"./GameData":7},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"path":"preview-scripts/assets/Script/BallAudioManager.js"},{"deps":{"./GameData":7,"./Notification":8},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/test.js"},{"deps":{"./Notification":8},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{},"path":"preview-scripts/assets/Script/crypto/crypto-js.min.js"},{"deps":{"./ItemRender":1},"path":"preview-scripts/assets/Script/ListView/List.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/DynamicAtlasManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/Shake.js"}];
|
||||
var scripts = [{"deps":{"./assets/Script/GameData":11,"./assets/Script/GameManager":14,"./assets/Script/GameOver":4,"./assets/Script/GuideManager":2,"./assets/Script/Helloworld":9,"./assets/Script/Load":15,"./assets/Script/Notification":16,"./assets/Script/Storage":20,"./assets/Script/Sun":8,"./assets/Script/test":7,"./assets/Script/BallAudioManager":10,"./assets/Script/ListView/List":12,"./assets/Script/ListView/ItemRender":1,"./assets/Script/crypto/serverAPI":5,"./assets/Script/crypto/crypto-js.min":19,"./assets/Script/tool/GameTool":17,"./assets/Script/tool/Shake":13,"./assets/Script/tool/DynamicAtlasManager":6,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":3,"./assets/Script/CtrlFluxayTexture":18},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/Script/ListView/ItemRender.js"},{"deps":{"./GameData":11,"./Notification":16},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{"./GameData":11,"./crypto/serverAPI":5},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{"../GameData":11,"./crypto-js.min.js":19},"path":"preview-scripts/assets/Script/crypto/serverAPI.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/DynamicAtlasManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/test.js"},{"deps":{"./Notification":16},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{"./GameData":11,"./ListView/List":12,"./crypto/serverAPI":5},"path":"preview-scripts/assets/Script/Helloworld.js"},{"deps":{},"path":"preview-scripts/assets/Script/BallAudioManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameData.js"},{"deps":{"./ItemRender":1},"path":"preview-scripts/assets/Script/ListView/List.js"},{"deps":{},"path":"preview-scripts/assets/Script/tool/Shake.js"},{"deps":{"./GameData":11,"./Notification":16,"./crypto/serverAPI":5},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{"./GameData":11,"./Storage":20},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"path":"preview-scripts/assets/Script/Notification.js"},{"deps":{"Storage":20},"path":"preview-scripts/assets/Script/tool/GameTool.js"},{"deps":{},"path":"preview-scripts/assets/Script/CtrlFluxayTexture.js"},{"deps":{},"path":"preview-scripts/assets/Script/crypto/crypto-js.min.js"},{"deps":{},"path":"preview-scripts/assets/Script/Storage.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
|
@ -10,44 +10,41 @@
|
|||
};
|
||||
function __define (exports, require, module) {
|
||||
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
|
||||
cc._RF.push(module, 'b5d92kgCRlKu5IYKnaGPgoa', 'Storage');
|
||||
// Script/Storage.js
|
||||
cc._RF.push(module, '7cf8cMT5zJA0ZU4Gp0JcL8v', 'Storage');
|
||||
// Script/Storage.ts
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StorageMessage = void 0;
|
||||
// var jequry = require("jquery");
|
||||
// var coinManager = require("coinManager");
|
||||
var StorageMessage = {
|
||||
getStorage: function getStorage(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 setStorage(key, value) {
|
||||
//主动拉起分享接口
|
||||
var temp = JSON.stringify(value);
|
||||
cc.sys.localStorage.setItem(key, temp); // debugger;
|
||||
// var temp = cc.sys.localStorage.getItem(key);
|
||||
// debugger;
|
||||
},
|
||||
removeStorage: function removeStorage(key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
}
|
||||
};
|
||||
module.exports = {
|
||||
StorageMessage: 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);
|
||||
// debugger;
|
||||
// var temp = cc.sys.localStorage.getItem(key);
|
||||
// debugger;
|
||||
},
|
||||
removeStorage: function (key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
},
|
||||
};
|
||||
exports.StorageMessage = StorageMessage;
|
||||
|
||||
cc._RF.pop();
|
||||
}
|
||||
|
@ -60,4 +57,4 @@ cc._RF.pop();
|
|||
});
|
||||
}
|
||||
})();
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0c1xcU2NyaXB0XFxTdG9yYWdlLmpzIl0sIm5hbWVzIjpbIlN0b3JhZ2VNZXNzYWdlIiwiZ2V0U3RvcmFnZSIsImtleSIsInJlc3VsdCIsImNjIiwic3lzIiwibG9jYWxTdG9yYWdlIiwiZ2V0SXRlbSIsIkpTT04iLCJwYXJzZSIsInNldFN0b3JhZ2UiLCJ2YWx1ZSIsInRlbXAiLCJzdHJpbmdpZnkiLCJzZXRJdGVtIiwicmVtb3ZlU3RvcmFnZSIsInJlbW92ZUl0ZW0iLCJtb2R1bGUiLCJleHBvcnRzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUNBO0FBQ0E7QUFDQSxJQUFJQSxjQUFjLEdBQUc7QUFDakJDLEVBQUFBLFVBQVUsRUFBRyxvQkFBU0MsR0FBVCxFQUFhO0FBQ3RCLFFBQUlDLE1BQU0sR0FBRyxJQUFiOztBQUNBLFFBQUdDLEVBQUUsQ0FBQ0MsR0FBSCxDQUFPQyxZQUFQLENBQW9CQyxPQUFwQixDQUE0QkwsR0FBNUIsQ0FBSCxFQUFvQztBQUNsQyxVQUFJQyxNQUFNLEdBQUdDLEVBQUUsQ0FBQ0MsR0FBSCxDQUFPQyxZQUFQLENBQW9CQyxPQUFwQixDQUE0QkwsR0FBNUIsQ0FBYjtBQUNEOztBQUVELFFBQUdDLE1BQUgsRUFBVTtBQUNSQSxNQUFBQSxNQUFNLEdBQUdLLElBQUksQ0FBQ0MsS0FBTCxDQUFXTixNQUFYLENBQVQ7QUFDRDs7QUFDRCxXQUFPQSxNQUFQO0FBQ0gsR0FYZ0I7QUFZakJPLEVBQUFBLFVBQVUsRUFBRyxvQkFBU1IsR0FBVCxFQUFhUyxLQUFiLEVBQW1CO0FBQzVCO0FBQ0EsUUFBSUMsSUFBSSxHQUFHSixJQUFJLENBQUNLLFNBQUwsQ0FBZUYsS0FBZixDQUFYO0FBQ0FQLElBQUFBLEVBQUUsQ0FBQ0MsR0FBSCxDQUFPQyxZQUFQLENBQW9CUSxPQUFwQixDQUE0QlosR0FBNUIsRUFBaUNVLElBQWpDLEVBSDRCLENBSTVCO0FBQ0E7QUFDQTtBQUNILEdBbkJnQjtBQW9CakJHLEVBQUFBLGFBQWEsRUFBRyx1QkFBU2IsR0FBVCxFQUFhO0FBQzNCO0FBQ0EsUUFBR0UsRUFBRSxDQUFDQyxHQUFILENBQU9DLFlBQVAsQ0FBb0JDLE9BQXBCLENBQTRCTCxHQUE1QixDQUFILEVBQW9DO0FBQ2xDRSxNQUFBQSxFQUFFLENBQUNDLEdBQUgsQ0FBT0MsWUFBUCxDQUFvQlUsVUFBcEIsQ0FBK0JkLEdBQS9CO0FBQ0Q7QUFDRjtBQXpCZ0IsQ0FBckI7QUE0QkFlLE1BQU0sQ0FBQ0MsT0FBUCxHQUFpQjtBQUNmbEIsRUFBQUEsY0FBYyxFQUFFQTtBQURELENBQWpCIiwic291cmNlUm9vdCI6Ii8iLCJzb3VyY2VzQ29udGVudCI6WyJcbi8vIHZhciBqZXF1cnkgPSByZXF1aXJlKFwianF1ZXJ5XCIpO1xuLy8gdmFyIGNvaW5NYW5hZ2VyID0gcmVxdWlyZShcImNvaW5NYW5hZ2VyXCIpO1xudmFyIFN0b3JhZ2VNZXNzYWdlID0ge1xuICAgIGdldFN0b3JhZ2UgOiBmdW5jdGlvbihrZXkpe1xuICAgICAgICB2YXIgcmVzdWx0ID0gbnVsbDtcbiAgICAgICAgaWYoY2Muc3lzLmxvY2FsU3RvcmFnZS5nZXRJdGVtKGtleSkpe1xuICAgICAgICAgIHZhciByZXN1bHQgPSBjYy5zeXMubG9jYWxTdG9yYWdlLmdldEl0ZW0oa2V5KTtcbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgaWYocmVzdWx0KXtcbiAgICAgICAgICByZXN1bHQgPSBKU09OLnBhcnNlKHJlc3VsdCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9LFxuICAgIHNldFN0b3JhZ2UgOiBmdW5jdGlvbihrZXksdmFsdWUpe1xuICAgICAgICAvL+S4u+WKqOaLiei1t+WIhuS6q+aOpeWPo1xuICAgICAgICB2YXIgdGVtcCA9IEpTT04uc3RyaW5naWZ5KHZhbHVlKTtcbiAgICAgICAgY2Muc3lzLmxvY2FsU3RvcmFnZS5zZXRJdGVtKGtleSwgdGVtcClcbiAgICAgICAgLy8gZGVidWdnZXI7XG4gICAgICAgIC8vIHZhciB0ZW1wID0gY2Muc3lzLmxvY2FsU3RvcmFnZS5nZXRJdGVtKGtleSk7XG4gICAgICAgIC8vIGRlYnVnZ2VyO1xuICAgIH0sXG4gICAgcmVtb3ZlU3RvcmFnZSA6IGZ1bmN0aW9uKGtleSl7XG4gICAgICAvL+S4u+WKqOWIoOmZpOa2iOaBr+aOpeWPo1xuICAgICAgaWYoY2Muc3lzLmxvY2FsU3RvcmFnZS5nZXRJdGVtKGtleSkpe1xuICAgICAgICBjYy5zeXMubG9jYWxTdG9yYWdlLnJlbW92ZUl0ZW0oa2V5KVxuICAgICAgfVxuICAgIH0sXG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgU3RvcmFnZU1lc3NhZ2U6IFN0b3JhZ2VNZXNzYWdlLFxufSJdfQ==
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0c1xcU2NyaXB0XFxTdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLGtDQUFrQztBQUNsQyw0Q0FBNEM7QUFDNUMsSUFBSSxjQUFjLEdBQUc7SUFDakIsVUFBVSxFQUFHLFVBQVMsR0FBRztRQUNyQixJQUFJLE1BQU0sR0FBRyxJQUFJLENBQUM7UUFDbEIsSUFBRyxFQUFFLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUM7WUFDbEMsSUFBSSxNQUFNLEdBQUcsRUFBRSxDQUFDLEdBQUcsQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1NBQy9DO1FBRUQsSUFBRyxNQUFNLEVBQUM7WUFDUixNQUFNLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQztTQUM3QjtRQUNELE9BQU8sTUFBTSxDQUFDO0lBQ2xCLENBQUM7SUFDRCxVQUFVLEVBQUcsVUFBUyxHQUFHLEVBQUMsS0FBSztRQUMzQixVQUFVO1FBQ1YsSUFBSSxJQUFJLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNqQyxFQUFFLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFLElBQUksQ0FBQyxDQUFBO1FBQ3RDLFlBQVk7UUFDWiwrQ0FBK0M7UUFDL0MsWUFBWTtJQUNoQixDQUFDO0lBQ0QsYUFBYSxFQUFHLFVBQVMsR0FBRztRQUMxQixVQUFVO1FBQ1YsSUFBRyxFQUFFLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUM7WUFDbEMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxZQUFZLENBQUMsVUFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFBO1NBQ3BDO0lBQ0gsQ0FBQztDQUNKLENBQUM7QUFFTyx3Q0FBYyIsImZpbGUiOiIiLCJzb3VyY2VSb290IjoiLyIsInNvdXJjZXNDb250ZW50IjpbIlxuLy8gdmFyIGplcXVyeSA9IHJlcXVpcmUoXCJqcXVlcnlcIik7XG4vLyB2YXIgY29pbk1hbmFnZXIgPSByZXF1aXJlKFwiY29pbk1hbmFnZXJcIik7XG52YXIgU3RvcmFnZU1lc3NhZ2UgPSB7XG4gICAgZ2V0U3RvcmFnZSA6IGZ1bmN0aW9uKGtleSl7XG4gICAgICAgIHZhciByZXN1bHQgPSBudWxsO1xuICAgICAgICBpZihjYy5zeXMubG9jYWxTdG9yYWdlLmdldEl0ZW0oa2V5KSl7XG4gICAgICAgICAgdmFyIHJlc3VsdCA9IGNjLnN5cy5sb2NhbFN0b3JhZ2UuZ2V0SXRlbShrZXkpO1xuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBpZihyZXN1bHQpe1xuICAgICAgICAgIHJlc3VsdCA9IEpTT04ucGFyc2UocmVzdWx0KTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH0sXG4gICAgc2V0U3RvcmFnZSA6IGZ1bmN0aW9uKGtleSx2YWx1ZSl7XG4gICAgICAgIC8v5Li75Yqo5ouJ6LW35YiG5Lqr5o6l5Y+jXG4gICAgICAgIHZhciB0ZW1wID0gSlNPTi5zdHJpbmdpZnkodmFsdWUpO1xuICAgICAgICBjYy5zeXMubG9jYWxTdG9yYWdlLnNldEl0ZW0oa2V5LCB0ZW1wKVxuICAgICAgICAvLyBkZWJ1Z2dlcjtcbiAgICAgICAgLy8gdmFyIHRlbXAgPSBjYy5zeXMubG9jYWxTdG9yYWdlLmdldEl0ZW0oa2V5KTtcbiAgICAgICAgLy8gZGVidWdnZXI7XG4gICAgfSxcbiAgICByZW1vdmVTdG9yYWdlIDogZnVuY3Rpb24oa2V5KXtcbiAgICAgIC8v5Li75Yqo5Yig6Zmk5raI5oGv5o6l5Y+jXG4gICAgICBpZihjYy5zeXMubG9jYWxTdG9yYWdlLmdldEl0ZW0oa2V5KSl7XG4gICAgICAgIGNjLnN5cy5sb2NhbFN0b3JhZ2UucmVtb3ZlSXRlbShrZXkpXG4gICAgICB9XG4gICAgfSxcbn07XG5cbmV4cG9ydCB7IFN0b3JhZ2VNZXNzYWdlIH07Il19
|
File diff suppressed because one or more lines are too long
|
@ -258,19 +258,23 @@ var GameManager = /** @class */ (function (_super) {
|
|||
}
|
||||
this.clickNow += 1;
|
||||
// GameData._instance.GM_INFO.total += 1;
|
||||
setTimeout(function () {
|
||||
if (_this.ball_Array[_this.clickNow - 1])
|
||||
_this.ball_Array[_this.clickNow - 1].getChildByName("guang").active = false;
|
||||
}, 200);
|
||||
if (this.ball_Array[this.clickNow - 1])
|
||||
this.ball_Array[this.clickNow - 1].getChildByName("guang").active = false;
|
||||
// setTimeout(() => {
|
||||
// }, 200);
|
||||
if (this.clickNow == this.now_Array.length) {
|
||||
this.pause = true;
|
||||
GameData_1.default._instance.GM_INFO.total += this.clickNow;
|
||||
this.overTime = this.getTime();
|
||||
GameData_1.default._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
console.log(GameData_1.default._instance.GM_INFO.mean_Time);
|
||||
if (this.startTime > 0 && this.overTime > 0) {
|
||||
GameData_1.default._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
}
|
||||
// console.log("成功",GameData._instance.GM_INFO.mean_Time,this.overTime,this.startTime);
|
||||
// console.log(GameData._instance.GM_INFO.mean_Time);
|
||||
var finish_time = parseInt((this.overTime - this.startTime) / 100 + "");
|
||||
this.startTime = 0;
|
||||
this.overTime = 0;
|
||||
// console.log("33333333");
|
||||
var color = "y";
|
||||
if (this.level < 4 && this.level > 1)
|
||||
color = "yr";
|
||||
|
@ -354,8 +358,9 @@ var GameManager = /** @class */ (function (_super) {
|
|||
GameData_1.default._instance.AudioManager.playWarning();
|
||||
this.begin = false;
|
||||
this.overTime = this.getTime();
|
||||
GameData_1.default._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
console.log(GameData_1.default._instance.GM_INFO.mean_Time);
|
||||
if (this.startTime > 0 && this.overTime > 0) {
|
||||
GameData_1.default._instance.GM_INFO.mean_Time += (this.overTime - this.startTime);
|
||||
}
|
||||
var finish_time = parseInt((this.overTime - this.startTime) / 100 + "");
|
||||
this.startTime = 0;
|
||||
this.overTime = 0;
|
||||
|
@ -550,27 +555,24 @@ var GameManager = /** @class */ (function (_super) {
|
|||
//0 1 2 3 4 5 6 7 8 9
|
||||
//可移动区分
|
||||
var pos_1 = cc.v2(0, 0);
|
||||
if (info.number == 3)
|
||||
this.moveArray = [0, 1, 0];
|
||||
else if (info.number == 4)
|
||||
this.moveArray = [0, 0, 1, 0];
|
||||
else if (info.number == 5)
|
||||
this.moveArray = [0, 0, 1, 0, 0];
|
||||
else if (info.number == 5)
|
||||
this.moveArray = [0, 0, 1, 0, 0];
|
||||
else if (info.number == 6)
|
||||
this.moveArray = [0, 0, 1, 1, 0, 0];
|
||||
else if (info.number == 7)
|
||||
this.moveArray = [0, 0, 1, 1, 1, 0, 0];
|
||||
else if (info.number == 8)
|
||||
this.moveArray = [0, 0, 0, 1, 1, 1, 1, 0];
|
||||
else if (info.number == 9)
|
||||
this.moveArray = [0, 0, 1, 1, 1, 1, 1, 0, 0];
|
||||
else if (info.number == 10)
|
||||
this.moveArray = [0, 0, 0, 1, 1, 1, 1, 1, 0, 0];
|
||||
for (var z = 0; z < info.number; z++) {
|
||||
this.moveArray[z] = 0;
|
||||
}
|
||||
for (var p = 0; p < info.moveNumber; p++) {
|
||||
this.moveArray[info.number - 1 - p] = 1;
|
||||
}
|
||||
var timeOut = 0;
|
||||
//打乱可移动顺序
|
||||
// this.moveArray .sort(() => Math.random() - 0.5);
|
||||
this.moveArray.sort(function () { return Math.random() - 0.5; });
|
||||
if (this.moveArray[0] == 1) {
|
||||
for (var r = info.number - 1; r >= 0; r--) {
|
||||
if (this.moveArray[r] == 0) {
|
||||
this.moveArray[r] = 1;
|
||||
this.moveArray[0] = 0;
|
||||
r = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
// debugger;
|
||||
//设置重叠
|
||||
// this.repeat = -1;
|
||||
|
@ -972,12 +974,15 @@ var GameManager = /** @class */ (function (_super) {
|
|||
this.unschedule(this.updateCountDownTime);
|
||||
this.setLoss();
|
||||
var time = 0;
|
||||
console.log(GameData_1.default._instance.GM_INFO.mean_Time, this.clickCount);
|
||||
// console.log(GameData._instance.GM_INFO.mean_Time,this.clickCount);
|
||||
if (this.clickCount > 0)
|
||||
time = parseInt(GameData_1.default._instance.GM_INFO.mean_Time / this.clickCount + "");
|
||||
GameData_1.default._instance.GM_INFO.mean_Time = parseInt(time / 100 + "");
|
||||
GameData_1.default._instance.GM_INFO.mean_Time = GameData_1.default._instance.GM_INFO.mean_Time / 10;
|
||||
console.log(GameData_1.default._instance.GM_INFO.mean_Time);
|
||||
// console.log( GameData._instance.GM_INFO.mean_Time,time);
|
||||
// debugger;
|
||||
if (time > 10000)
|
||||
time = (Math.random() * 10 + 5) * 100;
|
||||
this.setRank(time);
|
||||
}
|
||||
}
|
||||
|
@ -985,11 +990,12 @@ var GameManager = /** @class */ (function (_super) {
|
|||
GameManager.prototype.setData = function () {
|
||||
var data = GameData_1.default._instance.GAME_DATA;
|
||||
var matchId = this.getMatchId();
|
||||
console.log(matchId);
|
||||
var postData = {
|
||||
"matchId": matchId,
|
||||
"data": data
|
||||
};
|
||||
// console.log("上传数据:",postData)
|
||||
console.log("上传数据:");
|
||||
serverAPI_1.default.uploadUserLogData(postData, function () { });
|
||||
};
|
||||
GameManager.prototype.getMatchId = function () {
|
||||
|
@ -998,14 +1004,24 @@ var GameManager = /** @class */ (function (_super) {
|
|||
matchId = this.setMatchId();
|
||||
}
|
||||
else {
|
||||
var char = parseInt(matchId[10]);
|
||||
char += 1;
|
||||
matchId = matchId.slice(0, 10) + char + "";
|
||||
GameData_1.default._instance.GM_INFO.matchId = matchId;
|
||||
cc.sys.localStorage.setItem("matchId", matchId);
|
||||
if (this.containsNanana(matchId) == true) {
|
||||
matchId = this.setMatchId();
|
||||
}
|
||||
else {
|
||||
var char = parseInt(matchId[10]);
|
||||
if (this.round == 1) {
|
||||
char += 1;
|
||||
}
|
||||
matchId = matchId.slice(0, 10) + char + "";
|
||||
GameData_1.default._instance.GM_INFO.matchId = matchId;
|
||||
cc.sys.localStorage.setItem("matchId", matchId);
|
||||
}
|
||||
}
|
||||
return matchId;
|
||||
};
|
||||
GameManager.prototype.containsNanana = function (str) {
|
||||
return /na/i.test(str);
|
||||
};
|
||||
GameManager.prototype.setMatchId = function () {
|
||||
// 定义包含可用字符的字符集
|
||||
var characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||
|
@ -1033,7 +1049,7 @@ var GameManager = /** @class */ (function (_super) {
|
|||
"totalSunCount": GameData_1.default._instance.GM_INFO.total,
|
||||
"success": GameData_1.default._instance.GM_INFO.success
|
||||
};
|
||||
console.log(postData);
|
||||
// console.log(postData);
|
||||
serverAPI_1.default.rankData(1, function () { }, postData);
|
||||
this.node.getChildByName("GameOver").active = true;
|
||||
this.node.getChildByName("GameOver").opacity = 0;
|
||||
|
@ -1049,20 +1065,6 @@ var GameManager = /** @class */ (function (_super) {
|
|||
GameManager.prototype.outPut = function () {
|
||||
var data = GameData_1.default._instance.CLICK_DATA;
|
||||
GameData_1.default._instance.GAME_DATA = [];
|
||||
// if(data.succeed == true) this.label1.string = "成功/失败:成功";
|
||||
// else if(data.succeed == false) this.label1.string = "成功/失败:失败";
|
||||
// this.label2.string = "太阳总数量:"+data.sun_total;
|
||||
// this.label3.string = "太阳移动数量:"+data.sun_move;
|
||||
// this.label4.string = "太阳移动速度:"+data.sun_speed;
|
||||
// this.label5.string = "太阳重叠个数:"+data.sun_overlap;
|
||||
// if(data.sun_color == "y") this.label6.string = "太阳颜色:yellow";
|
||||
// else if(data.sun_color == "yr") this.label6.string = "太阳颜色:yellow,red";
|
||||
// else if(data.sun_color == "yrb") this.label6.string = "太阳颜色:yellow,red,black";
|
||||
// this.label7.string = "完成时间:"+data.finish_time+"s";
|
||||
// this.label8.string = "难度等级:"+data.sun_difficulty+"级";
|
||||
// if(data.sun_color == "y") console.log("太阳颜色:","yellow" );
|
||||
// else if(data.sun_color == "yr") console.log("太阳颜色:","yellow,red" );
|
||||
// else if(data.sun_color == "yrb") console.log("太阳颜色:","yellow,red,black" );
|
||||
GameData_1.default._instance.GAME_DATA.push(GameData_1.default._instance.CLICK_DATA);
|
||||
GameData_1.default._instance.CLICK_init();
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -51,6 +51,9 @@ var NewClass = /** @class */ (function (_super) {
|
|||
// onLoad () {}
|
||||
NewClass.prototype.start = function () {
|
||||
this.count.string = GameData_1.default._instance.GM_INFO.total;
|
||||
if (GameData_1.default._instance.GM_INFO.mean_Time > 10) {
|
||||
GameData_1.default._instance.GM_INFO.mean_Time = (parseInt(Math.random() * 10 + "") + 5) / 10;
|
||||
}
|
||||
this.time.string = GameData_1.default._instance.GM_INFO.mean_Time + "s";
|
||||
this.listData = [];
|
||||
this.selfData = null;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -38,6 +38,7 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
return _this;
|
||||
}
|
||||
Helloworld.prototype.onLoad = function () {
|
||||
this.Player.getChildByName("rank").active = false;
|
||||
this.rankList = cc.find("ScrollView", this.node).getComponent(List_1.default);
|
||||
this.listData = [];
|
||||
this.selfData = null;
|
||||
|
@ -46,11 +47,12 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
this.selfNode.opacity = 0;
|
||||
};
|
||||
Helloworld.prototype.start = function () {
|
||||
this.Player.active = false;
|
||||
this.getRank();
|
||||
};
|
||||
Helloworld.prototype.getRankData = function (data) {
|
||||
if (data) {
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
this.listData = data.data.list;
|
||||
this.selfData = data.data.info;
|
||||
var rankData = [];
|
||||
|
@ -88,6 +90,8 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
// this.selfNode.getChildByName("four").active = true;
|
||||
}
|
||||
this.selfNode.opacity = 255;
|
||||
if (this.selfData.totalSunCount == 0)
|
||||
this.selfNode.opacity = 0;
|
||||
}
|
||||
};
|
||||
Helloworld.prototype.backClick = function () {
|
||||
|
@ -96,19 +100,34 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
Helloworld.prototype.playerAction = function () {
|
||||
var _this = this;
|
||||
//-254 377 210 453
|
||||
this.Player.getChildByName("rank").active = false;
|
||||
var time = 1;
|
||||
this.tween = cc.tween(this.Player)
|
||||
.to(2, { position: cc.v3(210, 453, 0) })
|
||||
.call(function () {
|
||||
_this.Player.getChildByName("rank").active = true;
|
||||
_this.Player.getChildByName("rank").getChildByName("number")
|
||||
.getComponent(cc.Label).string = parseInt(time * 100 + "") + "%";
|
||||
})
|
||||
.start();
|
||||
time = (this.listData.length - this.rankNumber) / this.listData.length;
|
||||
if (this.listData.length >= 99) {
|
||||
if (this.rankNumber >= 99) {
|
||||
time = (Math.random() * 49 + 1) / 100;
|
||||
var matchId = cc.sys.localStorage.getItem("matchNumber");
|
||||
if (matchId == null || matchId == undefined) {
|
||||
time = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
}
|
||||
setTimeout(function () {
|
||||
if (_this.tween)
|
||||
_this.tween.stop();
|
||||
_this.Player.getChildByName("rank").active = true;
|
||||
_this.Player.getChildByName("rank").getChildByName("number")
|
||||
.getComponent(cc.Label).string = parseInt(time * 100 + "") + "%";
|
||||
}, time * 2000);
|
||||
};
|
||||
Helloworld.prototype.getRank = function () {
|
||||
|
@ -148,6 +167,8 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
};
|
||||
Helloworld.prototype.setPic2 = function (pic) {
|
||||
var _this = this;
|
||||
this.Player.active = true;
|
||||
this.Player.opacity = 0;
|
||||
this.Player.getChildByName("mask").getChildByName("icon").active = false;
|
||||
this.Player.getChildByName("mask").getChildByName("phone").active = false;
|
||||
var url = pic;
|
||||
|
@ -166,6 +187,8 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
var self = this;
|
||||
cc.assetManager.loadRemote(url, { ext: '.jpg' }, function (err, texture) {
|
||||
if (texture) {
|
||||
_this.Player.opacity = 255;
|
||||
_this.Player.getChildByName("mask").getChildByName("icon").active = false;
|
||||
_this.Player.getChildByName("mask").getChildByName("phone").active = true;
|
||||
_this.Player.getChildByName("mask").getChildByName("phone").getComponent(cc.Sprite)
|
||||
.spriteFrame = new cc.SpriteFrame(texture);
|
||||
|
@ -175,7 +198,9 @@ var Helloworld = /** @class */ (function (_super) {
|
|||
// console.log("设置头像成功",err);
|
||||
}
|
||||
else {
|
||||
_this.Player.opacity = 255;
|
||||
// console.log("设置头像失败",url);
|
||||
_this.Player.getChildByName("mask").getChildByName("icon").active = true;
|
||||
console.log(err, texture);
|
||||
setTimeout(function () {
|
||||
_this.playerAction();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -31,6 +31,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property, requireComponent = _a.requireComponent;
|
||||
var GameData_1 = require("./GameData");
|
||||
var Storage_1 = require("./Storage");
|
||||
// import {StorageMessage} from "./StorageMessage";
|
||||
// import { apiSign } from "./crypto/sign";
|
||||
var NewClass = /** @class */ (function (_super) {
|
||||
__extends(NewClass, _super);
|
||||
|
@ -42,12 +44,33 @@ var NewClass = /** @class */ (function (_super) {
|
|||
// update (dt) {}
|
||||
}
|
||||
NewClass.prototype.start = function () {
|
||||
var userId = Storage_1.StorageMessage.getStorage("user");
|
||||
if (userId == "undifend" || userId == null) {
|
||||
this.setId();
|
||||
}
|
||||
else {
|
||||
var data = Storage_1.StorageMessage.getStorage("user");
|
||||
data = this.getId(data);
|
||||
var timestamp = parseInt(new Date().getTime() / 1000 + "");
|
||||
if ((timestamp - data[2]) > 86400) {
|
||||
this.setId();
|
||||
return;
|
||||
}
|
||||
GameData_1.default._instance.GM_INFO.userId = data[1];
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(GameData_1.default._instance.GM_INFO.userId);
|
||||
}
|
||||
};
|
||||
NewClass.prototype.setId = function () {
|
||||
GameData_1.default._instance.GM_INFO.userId = this.getUserId();
|
||||
if (GameData_1.default._instance.GM_INFO.userId == null) {
|
||||
var url = "http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback=http://train.sparkus.cn/test/Sun_moves/";
|
||||
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);
|
||||
GameData_1.default._instance.GM_INFO.userId = parseInt(GameData_1.default._instance.GM_INFO.userId);
|
||||
}
|
||||
};
|
||||
|
@ -70,13 +93,28 @@ var NewClass = /** @class */ (function (_super) {
|
|||
arr.map(function (item) {
|
||||
arr2_1.push(item.split("=")[1]);
|
||||
});
|
||||
GameData_1.default._instance.GM_INFO.userId = arr2_1[0] + "";
|
||||
// GameData._instance.GM_INFO.userId = arr2[0] + "";
|
||||
return arr2_1[0];
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
NewClass.prototype.getId = function (str) {
|
||||
var pathStr = str;
|
||||
var arr = pathStr.split("?");
|
||||
if (pathStr.length >= 0 && arr.length > 0) {
|
||||
var arr2_2 = [];
|
||||
arr.map(function (item) {
|
||||
arr2_2.push(item.split("=")[1]);
|
||||
});
|
||||
// GameData._instance.GM_INFO.userId = arr2[1] + "";
|
||||
return arr2_2;
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
NewClass.prototype.startGame = function () {
|
||||
GameData_1.default._instance.GM_INFO.custom = 0;
|
||||
cc.director.loadScene("GuideScene");
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,41 +1,38 @@
|
|||
"use strict";
|
||||
cc._RF.push(module, 'b5d92kgCRlKu5IYKnaGPgoa', 'Storage');
|
||||
// Script/Storage.js
|
||||
cc._RF.push(module, '7cf8cMT5zJA0ZU4Gp0JcL8v', 'Storage');
|
||||
// Script/Storage.ts
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StorageMessage = void 0;
|
||||
// var jequry = require("jquery");
|
||||
// var coinManager = require("coinManager");
|
||||
var StorageMessage = {
|
||||
getStorage: function getStorage(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 setStorage(key, value) {
|
||||
//主动拉起分享接口
|
||||
var temp = JSON.stringify(value);
|
||||
cc.sys.localStorage.setItem(key, temp); // debugger;
|
||||
// var temp = cc.sys.localStorage.getItem(key);
|
||||
// debugger;
|
||||
},
|
||||
removeStorage: function removeStorage(key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
}
|
||||
};
|
||||
module.exports = {
|
||||
StorageMessage: 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);
|
||||
// debugger;
|
||||
// var temp = cc.sys.localStorage.getItem(key);
|
||||
// debugger;
|
||||
},
|
||||
removeStorage: function (key) {
|
||||
//主动删除消息接口
|
||||
if (cc.sys.localStorage.getItem(key)) {
|
||||
cc.sys.localStorage.removeItem(key);
|
||||
}
|
||||
},
|
||||
};
|
||||
exports.StorageMessage = StorageMessage;
|
||||
|
||||
cc._RF.pop();
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user