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
52b616e4
Commit
52b616e4
authored
Feb 12, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4f955692
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
doFishAI.ts
egret/src/mainScene/doFishAI.ts
+20
-4
Chapter16.ts
egret/src/something/chapters/Chapter16.ts
+1
-1
No files found.
egret/src/mainScene/doFishAI.ts
View file @
52b616e4
import
MainScene
from
"./MainScene"
;
import
MainScene
,
{
baseScore
,
effectBaseTimes
}
from
"./MainScene"
;
import
{
ElementType
}
from
"../something/enum/ElementType"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
{
Tool
}
from
"../something/Tool"
;
import
{
Lattice
}
from
"../something/class/Lattice"
;
/**
* fish爆炸
*/
...
...
@@ -12,11 +14,25 @@ export default async (thisObj: MainScene) => {
const
lattice
=
thisObj
.
lattices
[
i
]
if
(
lattice
&&
lattice
.
element
&&
lattice
.
element
.
type
==
ElementType
.
FISH
&&
lattice
.
element
.
isNeb
)
{
lattice
.
element
.
fishCanEliFlag
=
true
;
indexs
.
push
(
i
);
thisObj
.
eliminatedElements
.
push
(
i
);
indexs
.
push
(
lattice
.
index
);
thisObj
.
eliminatedElements
.
push
(
lattice
.
index
);
}
}
await
wait
(
1000
);
for
(
const
index
of
indexs
)
{
const
lat
:
Lattice
=
thisObj
.
lattices
[
index
];
for
(
var
i
=
0
;
i
<
thisObj
.
lattices
.
length
;
i
++
)
{
if
(
Tool
.
judgeEliminate
(
thisObj
.
lattices
[
i
])
&&
(
Math
.
abs
(
thisObj
.
lattices
[
i
].
row
-
lat
.
row
)
<
2
&&
Math
.
abs
(
thisObj
.
lattices
[
i
].
column
-
lat
.
column
)
<
2
))
{
if
(
thisObj
.
eliminatedElements
.
indexOf
(
thisObj
.
lattices
[
i
].
index
)
<
0
)
{
thisObj
.
eliminatedElements
.
push
(
thisObj
.
lattices
[
i
].
index
);
}
}
}
}
await
wait
(
500
);
//然后再消除四周的
return
indexs
;
}
\ No newline at end of file
egret/src/something/chapters/Chapter16.ts
View file @
52b616e4
...
...
@@ -53,7 +53,7 @@ export const Chapters16: ChapterData[] = [
20
,
10
,
20
,
10
,
20
,
10
,
40
,
10
,
20
,
21
,
10
,
20
,
20
,
0
,
40
,
20
,
10
,
20
,
0
,
30
,
10
,
30
,
10
,
30
,
10
,
20
,
0
,
0
,
0
,
20
,
30
,
2
2
,
10
,
20
,
0
,
0
,
0
,
0
,
20
,
30
,
2
3
,
10
,
20
,
0
,
0
,
0
,
0
,
0
,
20
,
10
,
30
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
20
,
0
,
0
,
0
,
0
,
],
...
...
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