Commit ba1f5b1e authored by wildfirecode's avatar wildfirecode

1

parent 263a5af9
...@@ -2425,8 +2425,9 @@ export default class MainScene extends Scene { ...@@ -2425,8 +2425,9 @@ export default class MainScene extends Scene {
//算个数 //算个数
this.goElementTarget(ele.type, [ele.x, ele.y]); this.goElementTarget(ele.type, [ele.x, ele.y]);
} }
// else if (ele.type == ElementType.MONSTER_JELLY) { // //烟花
// this.removeMonsterJelly(index); // else if (ele.type == ElementType.FIREWORKS_SHOOTER) {
// //没有处理
// } // }
//鸡蛋 //鸡蛋
else if (ele.type == ElementType.CHICKEN_EGG) { else if (ele.type == ElementType.CHICKEN_EGG) {
...@@ -2985,6 +2986,27 @@ export default class MainScene extends Scene { ...@@ -2985,6 +2986,27 @@ export default class MainScene extends Scene {
} }
} }
checkFireworksNebEle(lat: Lattice) {
var indexMy = lat.index;
var indexs = [
indexMy - Tool.colNum,
indexMy + Tool.colNum,
]
if (lat.column > 0) {
indexs.push(indexMy - 1)
}
if (lat.column < Tool.colNum - 1) {
indexs.push(indexMy + 1)
}
for (let i = 0; i < indexs.length; i++) {
let index = indexs[i];
let lat = this.lattices[index];
if (lat.element && lat.element.type == ElementType.FIREWORKS_SHOOTER) {
}
}
}
//检查附近所有元素 //检查附近所有元素
checkNebAll(latttice: Lattice) { checkNebAll(latttice: Lattice) {
//如果格子有冰 //如果格子有冰
......
This diff is collapsed.
...@@ -38,6 +38,13 @@ export enum ElementType { ...@@ -38,6 +38,13 @@ export enum ElementType {
MONSTER_JELLY1, MONSTER_JELLY1,
JELLY_MONSTER, JELLY_MONSTER,
FIREWORKS_SHOOTER,//烟花
FIREWORKS_RABBIT,//烟花目标元素,下同
FIREWORKS_CHICKEN,
FIREWORKS_CATTLE,
FIREWORKS_LION,
FIREWORKS_PIG,
} }
export enum CandyBaseElementType { export enum CandyBaseElementType {
......
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