Commit 051f1658 authored by wjf's avatar wjf

l

parent b43c4135
......@@ -199,7 +199,7 @@ export default class MainScene extends Scene {
Tool.init();
//第几关
this.chapter = (data && data.chapter) ? data.chapter : 1;
// this.chapter = 14;
// this.chapter = 33;
this.chapterTxt.text = "第" + this.chapter + "关";
//关卡数据,1期定制,70,后面35关地图一致,步数减少
var mapDataIndex = this.chapter;
......@@ -277,7 +277,7 @@ export default class MainScene extends Scene {
fail.y = 10;
fail.addEventListener(egret.TouchEvent.TOUCH_TAP, function () {
playSound(SoundType.fail);
PanelCtrl.instance.show("failed");
PanelCtrl.instance.show("failed", { level: this.chapter });
}, this)
this.addChild(fail);
var sucess = new eui.Image(RES.getRes("guideKnowBtn_png"));
......
......@@ -402,6 +402,7 @@ export const Chapters: ChapterData[] = [
{
map: {
lattices: [
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 4, 1, 1, 1, 4, 0, 0,
0, 1, 1, 1, 1, 1, 1, 1, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1,
......@@ -410,13 +411,12 @@ export const Chapters: ChapterData[] = [
1, 1, 1, 1, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
],
generateLats: [2, 3, 4, 5, 6],
generateLats: [11, 12, 13, 14, 15],
},
baseElementTypes: [0, 1, 2, 3],
effectInitProbability: 0.05,
stepCount: 18,
stepCount: 20,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
......@@ -426,7 +426,7 @@ export const Chapters: ChapterData[] = [
},
]
},
starScores: [3500, 40000, 45000]
starScores: [5000, 8000, 10000]
},
//第十五关
{
......@@ -1005,7 +1005,7 @@ export const Chapters: ChapterData[] = [
},
baseElementTypes: [0, 1, 2, 3],
effectInitProbability: 0.1,
stepCount: 40,
stepCount: 30,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
......
......@@ -8,13 +8,28 @@ export interface MapData {
* 一维格子数组,步长9
* 0为空,1基本元素,2为浅冰块,3深冰块,4棒棒糖,5石头,6元素枷锁
* 最大9*9长度
* 0无格子
* 1普通格子
* 2浅冰块
* 3深冰块
*
*/
lattices: number[];
/**
* 能生成元素的格子索引
* 默认第一排都能生成
* 0无元素
* 1普通元素
* 2石头
* 3元素枷锁
* 4棒棒糖
*/
generateLats: number[];
/**
* 一维格子数组,步长9
*
*/
// elements:number[]
/**
* 路径的索引
* 暂时不需要了
......
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