Commit e80745b7 authored by wjf's avatar wjf

l

parent b3b56844
...@@ -199,7 +199,7 @@ export default class MainScene extends Scene { ...@@ -199,7 +199,7 @@ export default class MainScene extends Scene {
Tool.init(); Tool.init();
//第几关 //第几关
this.chapter = (data && data.chapter) ? data.chapter : 1; this.chapter = (data && data.chapter) ? data.chapter : 1;
// this.chapter = 30; // this.chapter = 20;
this.chapterTxt.text = "第" + this.chapter + "关"; this.chapterTxt.text = "第" + this.chapter + "关";
//关卡数据 //关卡数据
this.chapterData = Chapters[this.chapter]; this.chapterData = Chapters[this.chapter];
...@@ -1856,7 +1856,6 @@ export default class MainScene extends Scene { ...@@ -1856,7 +1856,6 @@ export default class MainScene extends Scene {
if (s) { if (s) {
const submitData = DataManager.ins.getData('hc_submit').data; const submitData = DataManager.ins.getData('hc_submit').data;
if (submitData.prizeType == 1) { if (submitData.prizeType == 1) {
//提交成功后捞结果 //提交成功后捞结果
NetManager.ins.getPlugOrderStatus((s) => { NetManager.ins.getPlugOrderStatus((s) => {
Loading2.instace.hide(); Loading2.instace.hide();
...@@ -1878,9 +1877,9 @@ export default class MainScene extends Scene { ...@@ -1878,9 +1877,9 @@ export default class MainScene extends Scene {
() => { return DataManager.ins.getData('getPlugOrderStatus').result == 0 }); () => { return DataManager.ins.getData('getPlugOrderStatus').result == 0 });
} else { } else {
Loading2.instace.hide();
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { level: this.chapter }); PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { level: this.chapter });
} }
} else { } else {
Loading2.instace.hide(); Loading2.instace.hide();
if (!data) { if (!data) {
......
...@@ -2,6 +2,14 @@ import { ChapterData } from "./interface/ChapterData"; ...@@ -2,6 +2,14 @@ import { ChapterData } from "./interface/ChapterData";
import { PassType } from "./enum/PassType"; import { PassType } from "./enum/PassType";
import { ElementType } from "./enum/ElementType"; import { ElementType } from "./enum/ElementType";
// const CipherJS = require('cipherjs');
// const Vigenere = CipherJS.Vigenere;
// Vigenere.encrypt('MY SECRET MESSAGE', 'MY SECRET KEY')
export const Chapters: ChapterData[] = [ export const Chapters: ChapterData[] = [
//第0关为空吧, //第0关为空吧,
null, null,
...@@ -889,7 +897,7 @@ export const Chapters: ChapterData[] = [ ...@@ -889,7 +897,7 @@ export const Chapters: ChapterData[] = [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
], ],
generateLats: [54, 1, 29, 3, 31, 5, 33, 7, 62], generateLats: [54, 1, 29, 3, 31, 5, 33, 7, 62],
connectedLats:[[10,55],[38,56],[12,57],[40,58],[14,59],[42,60],[16,61]] connectedLats: [[10, 55], [38, 56], [12, 57], [40, 58], [14, 59], [42, 60], [16, 61]]
}, },
baseElementTypes: [0, 1, 2], baseElementTypes: [0, 1, 2],
effectInitProbability: 0.1, effectInitProbability: 0.1,
...@@ -909,4 +917,137 @@ export const Chapters: ChapterData[] = [ ...@@ -909,4 +917,137 @@ export const Chapters: ChapterData[] = [
50000 50000
] ]
}, },
//////////////////////
//第三十一关
{
map: {
lattices: [
0, 0, 0, 1, 1, 1, 0, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 1, 1, 5, 5, 5, 1, 1, 0,
1, 1, 5, 5, 5, 5, 5, 1, 1,
1, 1, 5, 5, 5, 5, 5, 1, 1,
1, 1, 5, 5, 5, 5, 5, 1, 1,
0, 1, 1, 5, 5, 5, 1, 1, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 0, 0, 1, 1, 1, 0, 0, 0,
],
generateLats: [3, 4, 5],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.1,
stepCount: 33,
passTarget: {
type: PassType.SCORE_TARGET,
score: 12000,
},
starScores: [
12000,
18000,
20000
]
},
//第三十二关
{
map: {
lattices: [
1, 1, 1, 1, 0, 1, 1, 1, 1,
1, 3, 3, 1, 0, 1, 3, 3, 1,
1, 3, 3, 1, 0, 1, 3, 3, 1,
1, 1, 1, 1, 0, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 0, 1, 1, 1, 1,
1, 3, 3, 1, 0, 1, 3, 3, 1,
1, 3, 3, 1, 0, 1, 3, 3, 1,
1, 1, 1, 1, 0, 1, 1, 1, 1,
],
generateLats: [0, 1, 2, 3, 5, 6, 7, 8],
connectedLats: [[27, 45], [28, 46], [29, 47], [30, 48], [32, 50], [33, 51], [34, 52], [35, 53]]
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.1,
stepCount: 17,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.ICE,
count: 16
}
],
},
starScores: [
18000,
25000,
35000
]
},
//第三十三关
{
map: {
lattices: [
1, 1, 4, 1, 1, 1, 1, 1, 4,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 0, 0, 1, 0, 0, 1, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1,
1, 1, 0, 0, 1, 0, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
],
generateLats: [0, 1, 2, 3, 5, 6, 7, 8],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.1,
stepCount: 30,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.LOLLIPOP,
count: 7
}
],
},
starScores: [
15000,
30000,
45000
]
},
//第三十四关
{
map: {
lattices: [
1, 1, 4, 1, 1, 1, 1, 1, 4,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 0, 0, 1, 0, 0, 1, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1,
1, 1, 0, 1, 1, 1, 0, 1, 1,
1, 1, 0, 0, 1, 0, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
],
generateLats: [0, 1, 2, 3, 5, 6, 7, 8],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 30,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.LOLLIPOP,
count: 7
}
],
},
starScores: [
15000,
30000,
45000
]
},
] ]
\ No newline at end of file
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