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"); ...@@ -6,8 +6,8 @@ var fs = require("fs");
// fs.readFileSync("./output.js") // fs.readFileSync("./output.js")
// ) // )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/'; // 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 = "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 = '/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/'
var version = Math.round(new Date().getTime() / 1000); var version = Math.round(new Date().getTime() / 1000);
......
export const config = { export const config = {
//倒计时时间s //倒计时时间s
time: 12, time: 120,
//3关分数 //3关分数
first: 1000, first: 1000,
second: 2000, second: 2000,
third: 3000, third: 3000,
//5种每个球的分数 //5种每个球的分数
score: [1000, 10, 10, 10, 10], score: [10, 10, 10, 10, 10],
//游戏难度3,4,5 //游戏难度3,4,5
difficulty: 3, difficulty: 3,
//球的资源 //球的资源
......
...@@ -1141,6 +1141,8 @@ export class XxlScene extends Scene { ...@@ -1141,6 +1141,8 @@ export class XxlScene extends Scene {
this.rightUserContainer.visible = false this.rightUserContainer.visible = false
this.lscore.text = "0" this.lscore.text = "0"
this.rscore.text = "0" this.rscore.text = "0"
this.llevelText.text = "第一关"
this.rlevelText.text = "第一关"
//进度条归0 //进度条归0
this.rect.x = this.rectX this.rect.x = this.rectX
this.star1.dark() this.star1.dark()
...@@ -1150,6 +1152,7 @@ export class XxlScene extends Scene { ...@@ -1150,6 +1152,7 @@ export class XxlScene extends Scene {
this.timeNum = config.time this.timeNum = config.time
this.time.text = this.timeNum + "" this.time.text = this.timeNum + ""
if (config.time >= 100) { if (config.time >= 100) {
this.time.textWidth = 80 this.time.textWidth = 80
} else if (config.time >= 10) { } else if (config.time >= 10) {
...@@ -1157,6 +1160,7 @@ export class XxlScene extends Scene { ...@@ -1157,6 +1160,7 @@ export class XxlScene extends Scene {
} else { } else {
this.time.textWidth = 50 this.time.textWidth = 50
} }
this.time.x = Ins.stageW / 2 - this.time.textWidth / 2 - 15
const userInfoRes = await sendTbNet(TbNetName.getUserInfo, {}) const userInfoRes = await sendTbNet(TbNetName.getUserInfo, {})
this.userInfo = userInfoRes.data as UserInfo this.userInfo = userInfoRes.data as UserInfo
...@@ -1166,6 +1170,8 @@ export class XxlScene extends Scene { ...@@ -1166,6 +1170,8 @@ export class XxlScene extends Scene {
} else { } else {
this.robot = new Robot(!this.userInfo.win) this.robot = new Robot(!this.userInfo.win)
showPanel(MatchingPanel, this.userInfo) 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