Commit dd24cc6a authored by wjf's avatar wjf

l

parent 197a414f
...@@ -199,10 +199,19 @@ export default class MainScene extends Scene { ...@@ -199,10 +199,19 @@ 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 = 70; // this.chapter = 19;
this.chapterTxt.text = "第" + this.chapter + "关"; this.chapterTxt.text = "第" + this.chapter + "关";
//关卡数据,1期定制,70,后面35关地图一致,步数减少 //关卡数据,1期定制,70,后面35关地图一致,步数减少
this.chapterData = Chapters[this.chapter % 35 || 35]; var mapDataIndex = this.chapter;
if (this.chapter >= 57) {
//循环20到33
mapDataIndex = this.chapter - 37
}
else if (this.chapter >= 36) {
//循环15到35
mapDataIndex = this.chapter - 21
}
this.chapterData = Chapters[mapDataIndex];
this.initUi(); this.initUi();
this.initSvgas(); this.initSvgas();
//先禁掉事件 //先禁掉事件
......
...@@ -552,25 +552,30 @@ export const Chapters: ChapterData[] = [ ...@@ -552,25 +552,30 @@ export const Chapters: ChapterData[] = [
{ {
map: { map: {
lattices: [ lattices: [
1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 5, 1, 5, 1, 1, 0,
1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 5, 1, 5, 1, 1, 0,
1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 5, 4, 5, 1, 1, 0,
1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 5, 5, 5, 5, 5, 1, 0,
0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 5, 5, 5, 1, 1, 0,
1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0,
1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 4, 1, 1, 0, 0,
1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0,
], ],
generateLats: [0, 1, 2, 4, 5, 6, 7, 8], generateLats: [0, 1, 2, 3, 4, 5, 6, 7, 8],
connectedLats: [[27, 45], [28, 46], [29, 47]] // connectedLats: [[27, 45], [28, 46], [29, 47]]
}, },
baseElementTypes: [0, 1, 2, 4], baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05, effectInitProbability: 0.05,
stepCount: 15, stepCount: 22,
passTarget: { passTarget: {
type: PassType.SCORE_TARGET, type: PassType.ELEMENT_TARGET,
score: 18000 elements: [
{
type: ElementType.LOLLIPOP,
count: 4
}
]
}, },
starScores: [8000, 12000, 18000] starScores: [8000, 12000, 18000]
}, },
......
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