Commit 31336ec2 authored by wjf's avatar wjf

l

parent 48b9ceb9
......@@ -32,7 +32,7 @@
"resource/skins/StartSkin.exml",
"resource/skins/ToastSkin.exml",
"resource/skins/VScrollBarSkin.exml",
"resource/skins/mainSkin.exml"
"resource/skins/MainSkin.exml"
],
"path": "resource/default.thm.json"
}
\ No newline at end of file
......@@ -191,7 +191,7 @@ export default class MainScene extends Scene {
Tool.init();
//第几关
var chapter = (data && data.chapter) ? data.chapter : 1;
// var chapter = 9
// var chapter = 19
this.chapterTxt.text = "第" + chapter + "关";
//关卡数据
this.chapterData = Chapters[chapter];
......@@ -549,8 +549,19 @@ export default class MainScene extends Scene {
.to({ x: bx, y: by }, 100)
.wait(400)
} else {
egret.Tween.removeTweens(this.warningCop[0])
egret.Tween.removeTweens(this.warningCop[1])
egret.Tween.removeTweens(this.warningCop[0]);
egret.Tween.removeTweens(this.warningCop[1]);
//还原位置
var a = this.warningCop[0];
var b = this.warningCop[1];
var aIndex = a.index;
var bIndex = b.index;
var ap = Tool.getPositionByIndex(aIndex);
var bp = Tool.getPositionByIndex(bIndex);
a.x = ap[0];
a.y = ap[1];
b.x = bp[0];
b.y = bp[1];
}
}
......@@ -1632,8 +1643,10 @@ export default class MainScene extends Scene {
if (ele.temEffectType != null) {
ele.effectType = ele.temEffectType;
ele.temEffectType = null;
//但是算个数,考虑是否冰块要消除
//但是算个数,
this.goElementTarget(ele);
//如果格子有冰
this.iceBroke(this.lattices[index]);
} else {
//单纯元素消失特效
this.playAni(RecoverName.ELEDIS_ANI, p)
......
......@@ -316,4 +316,302 @@ export const Chapters: ChapterData[] = [
},
starScores: [1000, 2000, 3000]
},
//////////////////////////////
//第十一关
{
map: {
lattices: [
0, 0, 0, 4, 4, 4, 0, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
],
generateLats: [3, 4, 5],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 38,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.LOLLIPOP,
count: 3,
},
]
},
starScores: [500, 1000, 1500]
},
//第十二关
{
map: {
lattices: [
1, 1, 1, 1, 1, 1, 1, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 0, 2, 0, 1, 1, 1,
1, 1, 1, 2, 2, 2, 1, 1, 1,
1, 1, 1, 0, 2, 0, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2,
0, 2, 2, 2, 2, 2, 2, 2, 2,
0, 0, 2, 2, 2, 2, 2, 2, 2,
],
generateLats: [0, 1, 2, 3, 4, 5, 6],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 24,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.ICE,
count: 32,
},
]
},
starScores: [12000, 14000, 15000]
},
//第十三关
{
map: {
lattices: [
1, 1, 1, 1, 0, 2, 2, 2, 2,
1, 1, 1, 1, 0, 2, 2, 2, 2,
1, 1, 1, 1, 0, 2, 2, 2, 2,
0, 2, 2, 2, 2, 2, 2, 2, 0,
0, 2, 2, 2, 2, 2, 2, 2, 0,
0, 2, 2, 2, 2, 2, 2, 2, 0,
2, 2, 2, 2, 0, 1, 1, 1, 1,
2, 2, 2, 2, 0, 1, 1, 1, 1,
2, 2, 2, 2, 0, 1, 1, 1, 1,
],
generateLats: [0, 1, 2, 3, 5, 6, 7, 8],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 42,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.ICE,
count: 32,
},
]
},
starScores: [22000, 40000, 50000]
},
//第十四关
{
map: {
lattices: [
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,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
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],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 18,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.LOLLIPOP,
count: 6,
},
]
},
starScores: [3500, 40000, 45000]
},
//第十五关
{
map: {
lattices: [
1, 1, 1, 1, 0, 1, 1, 1, 1,
1, 1, 1, 1, 0, 1, 1, 1, 1,
2, 2, 2, 2, 0, 2, 2, 2, 2,
2, 2, 2, 2, 0, 2, 2, 2, 2,
2, 2, 2, 2, 0, 2, 2, 2, 2,
2, 2, 2, 2, 0, 2, 2, 2, 2,
2, 2, 2, 2, 0, 2, 2, 2, 2,
2, 2, 2, 2, 0, 2, 2, 2, 2,
2, 2, 2, 2, 0, 2, 2, 2, 2,
],
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.ICE,
count: 56,
},
]
},
starScores: [40000, 80000, 120000]
},
//第十六关
{
map: {
lattices: [
0, 0, 4, 0, 4, 0, 4, 0, 0,
0, 0, 1, 0, 1, 0, 1, 0, 0,
0, 1, 1, 1, 1, 1, 1, 1, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
0, 1, 1, 1, 1, 1, 1, 1, 0,
0, 0, 1, 1, 1, 1, 1, 0, 0,
],
generateLats: [2, 4, 6],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 19,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.LOLLIPOP,
count: 3,
},
]
},
starScores: [23000, 25000, 30000]
},
//第十七关
{
map: {
lattices: [
0, 0, 3, 2, 3, 2, 3, 0, 0,
0, 2, 3, 2, 3, 2, 3, 2, 0,
3, 2, 3, 2, 3, 2, 3, 2, 3,
3, 2, 3, 2, 3, 2, 3, 2, 3,
0, 2, 0, 2, 0, 2, 0, 2, 0,
3, 2, 3, 2, 3, 2, 3, 2, 3,
3, 2, 3, 2, 3, 2, 3, 2, 3,
0, 2, 3, 2, 3, 2, 3, 2, 0,
0, 0, 3, 2, 3, 2, 3, 0, 0,
],
generateLats: [2, 3, 4, 5, 6],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 28,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.ICE,
count: 64,
},
]
},
starScores: [10000, 15000, 20000]
},
//第十八关
{
map: {
lattices: [
1, 3, 3, 0, 0, 0, 1, 1, 1,
1, 3, 3, 3, 3, 3, 3, 1, 1,
1, 3, 3, 3, 3, 3, 3, 3, 1,
0, 3, 3, 3, 3, 3, 3, 3, 0,
0, 3, 3, 3, 3, 3, 3, 3, 0,
0, 3, 3, 3, 3, 3, 3, 3, 0,
1, 3, 3, 3, 3, 3, 3, 3, 1,
1, 3, 3, 3, 3, 3, 3, 1, 1,
1, 1, 1, 0, 0, 0, 1, 1, 1,
],
generateLats: [0, 1, 2, 13, 6, 7, 8],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 30,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.ICE,
count: 49,
},
]
},
starScores: [40000, 80000, 100000]
},
//第十九关
{
map: {
lattices: [
1, 1, 1, 0, 1, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 1, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1,
1, 1, 1, 0, 1, 1, 1, 1, 1,
],
generateLats: [0, 1, 2, 4, 5, 6, 7, 8],
connectedLats: [[27, 45], [28, 46], [29, 47]]
},
baseElementTypes: [0, 1, 2, 3],
effectInitProbability: 0.05,
stepCount: 15,
passTarget: {
type: PassType.SCORE_TARGET,
score: 22000
},
starScores: [8000, 16000, 22000]
},
//第二十关
{
map: {
lattices: [
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 5, 1, 1, 1, 5, 2, 1,
1, 2, 5, 1, 1, 1, 5, 2, 1,
1, 5, 5, 1, 1, 1, 5, 5, 1,
1, 1, 2, 1, 1, 1, 2, 1, 1,
2, 2, 2, 1, 1, 1, 2, 2, 2,
2, 5, 5, 2, 2, 2, 5, 5, 2,
5, 5, 5, 5, 5, 5, 5, 5, 5,
2, 5, 2, 0, 1, 0, 2, 5, 2,
],
generateLats: [0, 1, 2, 3, 4, 5, 6, 7, 8],
},
baseElementTypes: [0, 1, 2, 3, 4],
effectInitProbability: 0.05,
stepCount: 46,
passTarget: {
type: PassType.ELEMENT_TARGET,
elements: [
{
type: ElementType.ICE,
count: 22
}
]
},
starScores: [11000, 22000, 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