Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
23f92795
Commit
23f92795
authored
Mar 25, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3ed316d9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-0
ElementConfigType.ts
egret/src/something/enum/ElementConfigType.ts
+7
-0
ElementType.ts
egret/src/something/enum/ElementType.ts
+5
-0
MapData.ts
egret/src/something/interface/MapData.ts
+5
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
23f92795
...
...
@@ -2074,6 +2074,8 @@ export default class MainScene extends Scene {
this
.
eliminate
();
return
}
if
(
this
.
_converyorTag
)
{
await
doConveyorAI
(
this
);
this
.
_converyorTag
=
false
;
...
...
egret/src/something/enum/ElementConfigType.ts
View file @
23f92795
...
...
@@ -67,4 +67,11 @@ export enum ElementConfigType {
FISH
=
15
,
HONEY_POT
=
16
,
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
egret/src/something/enum/ElementType.ts
View file @
23f92795
...
...
@@ -58,6 +58,11 @@ export enum ElementType {
HONEY_POT
,
//蜂蜜罐
SAND
,
FLOWER
,
CANNO_LEFT
,
CANNO_RIGHT
,
CANNO_TOP
,
CANNO_BOTTOM
,
CANNO_BLOCK
,
}
export
const
isMonsterEle
=
(
t
:
ElementType
)
=>
{
...
...
egret/src/something/interface/MapData.ts
View file @
23f92795
import
{
GenerateLatData
}
from
"./GenerateLatData"
;
import
{
LatticeType
}
from
"../enum/LatticeType"
;
import
{
ElementConfigType
}
from
"../enum/ElementConfigType"
;
/**
* 地图数据接口
* 包括地图格子,和地图上的特殊元素,生成口,联通口
*/
export
interface
MapData
{
/**
* 传送带
*/
conveyor
?:
number
[][];
conveyorConnectedLats
?:
number
[][];
/**
...
...
@@ -42,7 +46,7 @@ export interface MapData {
* 9褐色毛球 特效消除,分裂
* 10黑色毛球 两次消除,一次眩晕,
*/
elements
?:
number
[];
elements
?:
ElementConfigType
[];
/**
* 9*9的格子,不修改写null或[]
* 十位是基础元素类型,对应数字减1就是基础元素类型
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment