Commit f68ee2ab authored by spc's avatar spc

modified: src/xiaoxiaole/XxlConfig.ts

parent 9f4aa579
......@@ -15100,7 +15100,7 @@ exports.Star = Star;
Object.defineProperty(exports, "__esModule", { value: true });
exports.config = void 0;
exports.config = {
time: 12,
time: 120,
first: 1000,
second: 2000,
third: 3000,
......@@ -15214,7 +15214,8 @@ var XxlScene = (function (_super) {
_this.isGameStart = false;
_this.isGameEnd = false;
_this.robot = null;
_this.robotScore = 0;
_this.robotScore = 0.;
_this.rlevel = 0;
_this.hexIndices = [
[3],
[9, 10],
......@@ -15677,10 +15678,12 @@ var XxlScene = (function (_super) {
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) {
......@@ -16002,11 +16005,14 @@ var XxlScene = (function (_super) {
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;
this.rect.x = this.rectX;
this.star1.dark();
this.star2.dark();
......
This diff is collapsed.
......@@ -15102,7 +15102,7 @@ exports.Star = Star;
Object.defineProperty(exports, "__esModule", { value: true });
exports.config = void 0;
exports.config = {
time: 12,
time: 120,
first: 1000,
second: 2000,
third: 3000,
......@@ -15216,7 +15216,8 @@ var XxlScene = (function (_super) {
_this.isGameStart = false;
_this.isGameEnd = false;
_this.robot = null;
_this.robotScore = 0;
_this.robotScore = 0.;
_this.rlevel = 0;
_this.hexIndices = [
[3],
[9, 10],
......@@ -15679,10 +15680,12 @@ var XxlScene = (function (_super) {
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) {
......@@ -16004,11 +16007,14 @@ var XxlScene = (function (_super) {
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;
this.rect.x = this.rectX;
this.star1.dark();
this.star2.dark();
......
export const config = {
//倒计时时间s
time: 12,
time: 120,
//3关分数
first: 1000,
second: 2000,
......
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