Commit 9f4aa579 authored by spc's avatar spc

modified: src/xiaoxiaole/XxlScene.ts

parent d88643fc
......@@ -15104,7 +15104,7 @@ exports.config = {
first: 1000,
second: 2000,
third: 3000,
score: [1000, 10, 10, 10, 10],
score: [10, 10, 10, 10, 10],
difficulty: 3,
circleRes: ['2a747211-0210-4215-86a2-a6955b37c45b', '7d1ec658-9371-4d52-b4d7-e75d04037daf', '6a1345f6-969c-4969-8bfb-f4de637df34d', '2e12a9ec-46be-487f-a9cd-550dd0af3746', 'b022fbdd-8607-435a-a205-19fc3b5123eb']
};
......@@ -15280,7 +15280,7 @@ var XxlScene = (function (_super) {
this.addChild(this.bg);
this.x = (Ins_1.Ins.stageW - 750) >> 1;
this.y = (Ins_1.Ins.stageH - 1624) >> 1;
this.backBtn = Tools_1.Tools.getSprite(resCanvasList_1.default['334aff33-1a9e-4277-aafe-3d9f22eab3d5'].url, 0, 40 + 1624 / 2 - this.stage.viewRect.height / 2);
this.backBtn = Tools_1.Tools.getSprite(resCanvasList_1.default['334aff33-1a9e-4277-aafe-3d9f22eab3d5'].url, 0, 20 + 1624 / 2 - this.stage.viewRect.height / 2);
this.backBtn.mouseEnable = true;
this.backBtn.addEventListener(FYGE.MouseEvent.MOUSE_DOWN, function () {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.backToPage, {}, function (s, res) { console.log('backToPage'); });
......@@ -15999,7 +15999,6 @@ var XxlScene = (function (_super) {
switch (_a.label) {
case 0:
this.selectItems.splice(0);
this.refresh();
this.isGameEnd = false;
this.isGameStart = false;
this.userScore = 0;
......@@ -16014,6 +16013,8 @@ var XxlScene = (function (_super) {
this.star3.dark();
this.timeNum = XxlConfig_1.config.time;
this.time.text = this.timeNum + "";
this.difficulty = XxlConfig_1.config.difficulty;
this.refresh();
if (XxlConfig_1.config.time >= 100) {
this.time.textWidth = 80;
}
......
This diff is collapsed.
......@@ -15106,7 +15106,7 @@ exports.config = {
first: 1000,
second: 2000,
third: 3000,
score: [1000, 10, 10, 10, 10],
score: [10, 10, 10, 10, 10],
difficulty: 3,
circleRes: ['2a747211-0210-4215-86a2-a6955b37c45b', '7d1ec658-9371-4d52-b4d7-e75d04037daf', '6a1345f6-969c-4969-8bfb-f4de637df34d', '2e12a9ec-46be-487f-a9cd-550dd0af3746', 'b022fbdd-8607-435a-a205-19fc3b5123eb']
};
......@@ -15282,7 +15282,7 @@ var XxlScene = (function (_super) {
this.addChild(this.bg);
this.x = (Ins_1.Ins.stageW - 750) >> 1;
this.y = (Ins_1.Ins.stageH - 1624) >> 1;
this.backBtn = Tools_1.Tools.getSprite(resCanvasList_1.default['334aff33-1a9e-4277-aafe-3d9f22eab3d5'].url, 0, 40 + 1624 / 2 - this.stage.viewRect.height / 2);
this.backBtn = Tools_1.Tools.getSprite(resCanvasList_1.default['334aff33-1a9e-4277-aafe-3d9f22eab3d5'].url, 0, 20 + 1624 / 2 - this.stage.viewRect.height / 2);
this.backBtn.mouseEnable = true;
this.backBtn.addEventListener(FYGE.MouseEvent.MOUSE_DOWN, function () {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.backToPage, {}, function (s, res) { console.log('backToPage'); });
......@@ -16001,7 +16001,6 @@ var XxlScene = (function (_super) {
switch (_a.label) {
case 0:
this.selectItems.splice(0);
this.refresh();
this.isGameEnd = false;
this.isGameStart = false;
this.userScore = 0;
......@@ -16016,6 +16015,8 @@ var XxlScene = (function (_super) {
this.star3.dark();
this.timeNum = XxlConfig_1.config.time;
this.time.text = this.timeNum + "";
this.difficulty = XxlConfig_1.config.difficulty;
this.refresh();
if (XxlConfig_1.config.time >= 100) {
this.time.textWidth = 80;
}
......
......@@ -118,7 +118,9 @@ export class XxlScene extends Scene {
//机器人用户
robot: Robot = null
//机器人用户分数
robotScore: number = 0
robotScore: number = 0.
//当前用户游戏关卡
rlevel: number = 0
/**
* 右移偶数行
......@@ -738,9 +740,11 @@ export class XxlScene extends Scene {
if (this.robotScore == userGetScore) {
return
}
if (this.level < 2 && userGetScore >= 1000 && userGetScore < 2000) {
if (this.rlevel < 2 && userGetScore >= 1000 && userGetScore < 2000) {
this.rlevel = 2
this.rlevelText.text = "第" + 2 + "关"
} else if (this.level < 3 && userGetScore >= 2000 && userGetScore < 3000) {
} else if (this.rlevel < 3 && userGetScore >= 2000 && userGetScore < 3000) {
this.rlevel = 3
this.rlevelText.text = "第" + 3 + "关"
} else if (userGetScore >= 3000) {
this.gameOver()
......@@ -1136,12 +1140,15 @@ export class XxlScene extends Scene {
this.isGameEnd = false
this.isGameStart = false
this.userScore = 0
this.robotScore = 0
//先隐藏
this.rightUserContainer.visible = false
this.lscore.text = "0"
this.rscore.text = "0"
this.llevelText.text = "第一关"
this.rlevelText.text = "第一关"
this.llevelText.text = "第1关"
this.rlevelText.text = "第1关"
this.level = 0
this.rlevel = 0
//进度条归0
this.rect.x = this.rectX
this.star1.dark()
......
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