Commit 21b3fade authored by zjz1994's avatar zjz1994

冰下食物元素

parent a85b70cd
......@@ -1655,7 +1655,7 @@ export default class MainScene extends Scene {
//初始化引导,游戏和道具
initGuide() {
//游戏引导
const gameGuideChapterNum = [1, 2, 3, 5, 8, 9, 10, 12, 17, 25, 41, 61, 101, 121, 226, 301,331, 377, 406, 426, 453, 501, 556, 601,661,703];
const gameGuideChapterNum = [1, 2, 3, 5, 8, 9, 10, 12, 17, 25, 41, 61, 101, 121, 226, 301,331, 377, 406, 426, 453, 501, 556, 601,661,703,752];
if (gameGuideChapterNum.indexOf(this.chapter >> 0) > -1) {
if (!readCache(getCacheKey() + this.chapter)) {
this.gameGuide = new GameGuide(this);
......
This diff is collapsed.
......@@ -716,7 +716,7 @@ export class Element extends eui.Component {
}
playCandySubAni() {
console.log("candy动画1111");
// console.log("candy动画1111");
return new Promise((r) => {
egret.Tween.removeTweens(this.showImage);
egret.Tween.get(this.showImage).to({ scaleX: 0, scaleY: 0 }, 200)
......@@ -730,7 +730,7 @@ export class Element extends eui.Component {
}
addCandyStandbyAni() {
console.log("candy动画2222");
// console.log("candy动画2222");
egret.Tween.removeTweens(this.showImage);
egret.Tween.get(this.showImage, { loop: true })
.to({ scaleX: 1.1, scaleY: 0.9 }, 500).to({ scaleX: 0.9, scaleY: 1.1 }, 200).to({ scaleX: 1, scaleY: 1 }, 200).wait(1000);
......@@ -764,7 +764,7 @@ export class Element extends eui.Component {
set effectType(value: EffectType) {
//糖果被直接设置成特效元素
if(this.candy&&this.candy.step){
console.log("清除candy动画")
// console.log("清除candy动画")
this.playCandyDieAni();
if(this.candy&&this.candy.parent){
this.candy.parent.removeChild(this.candy);
......
......@@ -123,6 +123,9 @@ export class GameGuide extends egret.DisplayObjectContainer {
if(this.thisObj.chapter == 501) {
this.boxGroup.y -= 100;
}
if(this.thisObj.chapter == 752){
this.boxGroup.y += 100;
}
this.stepCount--;
}
......@@ -654,7 +657,26 @@ const chapterFuns = {
"移动元素消除,\n给地图铺上草坪",
"必须在有草坪的元素上进行\n消除,才能铺上草坪哦~"
]
}
},
752:{
stepCount: 2,
showIndexs: [
[5,6,14,15,23,24],
[5,6,14,15,23,24]
],
hideIndexs: [
[14,15,23,24],
[14,15,23,24]
],
handIndexs: [
[6,5],
[5,6]
],
msg: [
"冰下食物消除1",
"冰下食物消除2"
]
},
};
/**
......
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