Commit 23f92795 authored by wildfirecode's avatar wildfirecode

1

parent 3ed316d9
...@@ -2074,6 +2074,8 @@ export default class MainScene extends Scene { ...@@ -2074,6 +2074,8 @@ export default class MainScene extends Scene {
this.eliminate(); this.eliminate();
return return
} }
if (this._converyorTag) { if (this._converyorTag) {
await doConveyorAI(this); await doConveyorAI(this);
this._converyorTag = false; this._converyorTag = false;
......
...@@ -67,4 +67,11 @@ export enum ElementConfigType { ...@@ -67,4 +67,11 @@ export enum ElementConfigType {
FISH = 15, FISH = 15,
HONEY_POT = 16, HONEY_POT = 16,
FLOWER = 17, FLOWER = 17,
/** 大炮 */
CANNO_DIR_LEFT = 18,
CANNO_DIR_RIGHT = 19,
CANNO_DIR_TOP = 20,
CANNO_DIR_BOTTOM = 21,
/** 大炮石头 */
CANNO_BLOCK = 22,
} }
\ No newline at end of file
...@@ -58,6 +58,11 @@ export enum ElementType { ...@@ -58,6 +58,11 @@ export enum ElementType {
HONEY_POT,//蜂蜜罐 HONEY_POT,//蜂蜜罐
SAND, SAND,
FLOWER, FLOWER,
CANNO_LEFT,
CANNO_RIGHT,
CANNO_TOP,
CANNO_BOTTOM,
CANNO_BLOCK,
} }
export const isMonsterEle = (t: ElementType) => { export const isMonsterEle = (t: ElementType) => {
......
import { GenerateLatData } from "./GenerateLatData"; import { GenerateLatData } from "./GenerateLatData";
import { LatticeType } from "../enum/LatticeType"; import { LatticeType } from "../enum/LatticeType";
import { ElementConfigType } from "../enum/ElementConfigType";
/** /**
* 地图数据接口 * 地图数据接口
* 包括地图格子,和地图上的特殊元素,生成口,联通口 * 包括地图格子,和地图上的特殊元素,生成口,联通口
*/ */
export interface MapData { export interface MapData {
/**
* 传送带
*/
conveyor?:number[][]; conveyor?:number[][];
conveyorConnectedLats?:number[][]; conveyorConnectedLats?:number[][];
/** /**
...@@ -42,7 +46,7 @@ export interface MapData { ...@@ -42,7 +46,7 @@ export interface MapData {
* 9褐色毛球 特效消除,分裂 * 9褐色毛球 特效消除,分裂
* 10黑色毛球 两次消除,一次眩晕, * 10黑色毛球 两次消除,一次眩晕,
*/ */
elements?: number[]; elements?: ElementConfigType[];
/** /**
* 9*9的格子,不修改写null或[] * 9*9的格子,不修改写null或[]
* 十位是基础元素类型,对应数字减1就是基础元素类型 * 十位是基础元素类型,对应数字减1就是基础元素类型
......
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