Commit 3170eebe authored by spc's avatar spc

modified: scripts/copyJs.js

parent c84a6d20
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -6,8 +6,8 @@ var fs = require("fs");
// fs.readFileSync("./output.js")
// )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
// var endPath = "C:/Users/Duiba/Desktop/work/雅顿/new/new_taobao/taobao_mini/client/pages/pagecanvas/"
var endPath = '/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/'
var endPath = "C:/Users/Duiba/Desktop/work/雅顿/new/new_taobao/taobao_mini/client/pages/pagecanvas/"
// var endPath = '/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/'
var version = Math.round(new Date().getTime() / 1000);
......
export const config = {
//倒计时时间s
time: 12,
time: 120,
//3关分数
first: 1000,
second: 2000,
third: 3000,
//5种每个球的分数
score: [1000, 10, 10, 10, 10],
score: [10, 10, 10, 10, 10],
//游戏难度3,4,5
difficulty: 3,
//球的资源
......
......@@ -224,27 +224,27 @@ export class XxlScene extends Scene {
const userInfoRes = await sendTbNet(TbNetName.getUserInfo, {})
// const prizeInfoRes = sendTbNet(TbNetName.getPrizeInfo, {})
this.userInfo = userInfoRes.data as UserInfo
(function init() {
for (var i = 0; i < that.ROW_NUM; i++) {
for (var j = 0; j < that.COL_NUM; j++) {
that.rcToIndexMap["" + i + j] = i * that.COL_NUM + j;
// console.log(i * that.COL_NUM + j)
that.indexToRcMap[i * that.COL_NUM + j] = [i, j];
(function init() {
for (var i = 0; i < that.ROW_NUM; i++) {
for (var j = 0; j < that.COL_NUM; j++) {
that.rcToIndexMap["" + i + j] = i * that.COL_NUM + j;
// console.log(i * that.COL_NUM + j)
that.indexToRcMap[i * that.COL_NUM + j] = [i, j];
var x = that.offsetX + (i & 1) * that.radiusX / 2 + j * that.radiusX;
var y = that.offsetY + i * that.halfSq3 * that.radiusY
var x = that.offsetX + (i & 1) * that.radiusX / 2 + j * that.radiusX;
var y = that.offsetY + i * that.halfSq3 * that.radiusY
that.rowColPositions["" + i + j] = { x: x, y: y };
that.indexPositions[i * that.COL_NUM + j] = { x: x, y: y };
}
that.rowColPositions["" + i + j] = { x: x, y: y };
that.indexPositions[i * that.COL_NUM + j] = { x: x, y: y };
}
})()
}
})()
this.robot = new Robot(!this.userInfo.win)
......@@ -1141,6 +1141,8 @@ export class XxlScene extends Scene {
this.rightUserContainer.visible = false
this.lscore.text = "0"
this.rscore.text = "0"
this.llevelText.text = "第一关"
this.rlevelText.text = "第一关"
//进度条归0
this.rect.x = this.rectX
this.star1.dark()
......@@ -1150,6 +1152,7 @@ export class XxlScene extends Scene {
this.timeNum = config.time
this.time.text = this.timeNum + ""
if (config.time >= 100) {
this.time.textWidth = 80
} else if (config.time >= 10) {
......@@ -1157,6 +1160,7 @@ export class XxlScene extends Scene {
} else {
this.time.textWidth = 50
}
this.time.x = Ins.stageW / 2 - this.time.textWidth / 2 - 15
const userInfoRes = await sendTbNet(TbNetName.getUserInfo, {})
this.userInfo = userInfoRes.data as UserInfo
......@@ -1166,6 +1170,8 @@ export class XxlScene extends Scene {
} else {
this.robot = new Robot(!this.userInfo.win)
showPanel(MatchingPanel, this.userInfo)
this.ravatar.texture = FYGE.Sprite.fromUrl(this.userInfo.fakeUserImgUrl).texture
this.rnickname.text = this.userInfo.fakeUserName
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment