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
06b4513e
Commit
06b4513e
authored
May 25, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
石门河豚问题
parent
0c1287ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
MainScene.ts
egret/src/mainScene/MainScene.ts
+10
-10
Chapter30.ts
egret/src/something/chapters/Chapter30.ts
+12
-1
Element.ts
egret/src/something/class/Element.ts
+1
-0
No files found.
egret/src/mainScene/MainScene.ts
View file @
06b4513e
...
@@ -2066,7 +2066,7 @@ export default class MainScene extends Scene {
...
@@ -2066,7 +2066,7 @@ export default class MainScene extends Scene {
var
jlat
=
this
.
lattices
[
jelidx
];
var
jlat
=
this
.
lattices
[
jelidx
];
if
(
this
.
eliminatedElements
.
indexOf
(
jelidx
)
==-
1
){
if
(
this
.
eliminatedElements
.
indexOf
(
jelidx
)
==-
1
){
this
.
eliminatedElements
.
push
(
jelidx
);
this
.
eliminatedElements
.
push
(
jelidx
);
if
(
jlat
.
element
.
type
==
ElementType
.
FISH
){
if
(
jlat
.
element
.
type
==
ElementType
.
FISH
&&!
jlat
.
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
){
jlat
.
element
.
nextFishState
();
jlat
.
element
.
nextFishState
();
}
}
if
(
Tool
.
judgeHasScore
(
jlat
.
element
)){
if
(
Tool
.
judgeHasScore
(
jlat
.
element
)){
...
@@ -3878,7 +3878,7 @@ export default class MainScene extends Scene {
...
@@ -3878,7 +3878,7 @@ export default class MainScene extends Scene {
// }
// }
//本来没必要判断特效组合时是否有重复的消除元素,但是recoverEle里会有判断石头或果冻的加入,造成重复
//本来没必要判断特效组合时是否有重复的消除元素,但是recoverEle里会有判断石头或果冻的加入,造成重复
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
)
{
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
&&!
this
.
lattices
[
i
].
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
)
{
this
.
lattices
[
i
].
element
.
nextFishState
();
this
.
lattices
[
i
].
element
.
nextFishState
();
}
}
//两个魔力鸟分数MM
//两个魔力鸟分数MM
...
@@ -4023,7 +4023,7 @@ export default class MainScene extends Scene {
...
@@ -4023,7 +4023,7 @@ export default class MainScene extends Scene {
// allidxs.push(jelidx);
// allidxs.push(jelidx);
if
(
this
.
eliminatedElements
.
indexOf
(
jelidx
)
==-
1
){
if
(
this
.
eliminatedElements
.
indexOf
(
jelidx
)
==-
1
){
this
.
eliminatedElements
.
push
(
jelidx
);
this
.
eliminatedElements
.
push
(
jelidx
);
if
(
jlat
.
element
.
type
==
ElementType
.
FISH
){
if
(
jlat
.
element
.
type
==
ElementType
.
FISH
&&!
jlat
.
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
){
jlat
.
element
.
nextFishState
();
jlat
.
element
.
nextFishState
();
}
}
if
(
Tool
.
judgeHasScore
(
jlat
.
element
)){
if
(
Tool
.
judgeHasScore
(
jlat
.
element
)){
...
@@ -4123,7 +4123,7 @@ export default class MainScene extends Scene {
...
@@ -4123,7 +4123,7 @@ export default class MainScene extends Scene {
// grassArr.push(i);
// grassArr.push(i);
// }
// }
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
)
{
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
&&!
this
.
lattices
[
i
].
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
)
{
this
.
lattices
[
i
].
element
.
nextFishState
();
this
.
lattices
[
i
].
element
.
nextFishState
();
}
}
if
(
Tool
.
judgeHasScore
(
lat
.
element
))
{
if
(
Tool
.
judgeHasScore
(
lat
.
element
))
{
...
@@ -4221,7 +4221,7 @@ export default class MainScene extends Scene {
...
@@ -4221,7 +4221,7 @@ export default class MainScene extends Scene {
// grassArr.push(i);
// grassArr.push(i);
// }
// }
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
)
{
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
&&!
this
.
lattices
[
i
].
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
)
{
this
.
lattices
[
i
].
element
.
nextFishState
();
this
.
lattices
[
i
].
element
.
nextFishState
();
}
}
if
(
Tool
.
judgeHasScore
(
lat
.
element
))
{
if
(
Tool
.
judgeHasScore
(
lat
.
element
))
{
...
@@ -4565,7 +4565,7 @@ export default class MainScene extends Scene {
...
@@ -4565,7 +4565,7 @@ export default class MainScene extends Scene {
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
<
0
&&
effectIndexs
.
indexOf
(
i
)
<
0
)
{
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
<
0
&&
effectIndexs
.
indexOf
(
i
)
<
0
)
{
this
.
eliminatedElements
.
push
(
i
);
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
)
{
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
&&!
this
.
lattices
[
i
].
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
)
{
this
.
lattices
[
i
].
element
.
nextFishState
();
this
.
lattices
[
i
].
element
.
nextFishState
();
}
}
//加分
//加分
...
@@ -4617,7 +4617,7 @@ export default class MainScene extends Scene {
...
@@ -4617,7 +4617,7 @@ export default class MainScene extends Scene {
if
(
this
.
eliminatedElements
.
indexOf
(
jelidx
)
==-
1
&&
effectIndexs
.
indexOf
(
jelidx
)
==-
1
){
if
(
this
.
eliminatedElements
.
indexOf
(
jelidx
)
==-
1
&&
effectIndexs
.
indexOf
(
jelidx
)
==-
1
){
this
.
eliminatedElements
.
push
(
jelidx
);
this
.
eliminatedElements
.
push
(
jelidx
);
if
(
jlat
.
element
.
type
==
ElementType
.
FISH
){
if
(
jlat
.
element
.
type
==
ElementType
.
FISH
&&!
jlat
.
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
){
jlat
.
element
.
nextFishState
();
jlat
.
element
.
nextFishState
();
}
}
if
(
Tool
.
judgeHasScore
(
jlat
.
element
)){
if
(
Tool
.
judgeHasScore
(
jlat
.
element
)){
...
@@ -4681,7 +4681,7 @@ export default class MainScene extends Scene {
...
@@ -4681,7 +4681,7 @@ export default class MainScene extends Scene {
if
(
this
.
eliminatedElements
.
indexOf
(
jelidx
)
==-
1
&&
effectIndexs
.
indexOf
(
jelidx
)
==-
1
){
if
(
this
.
eliminatedElements
.
indexOf
(
jelidx
)
==-
1
&&
effectIndexs
.
indexOf
(
jelidx
)
==-
1
){
this
.
eliminatedElements
.
push
(
jelidx
);
this
.
eliminatedElements
.
push
(
jelidx
);
if
(
jlat
.
element
.
type
==
ElementType
.
FISH
){
if
(
jlat
.
element
.
type
==
ElementType
.
FISH
&&!
jlat
.
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
){
jlat
.
element
.
nextFishState
();
jlat
.
element
.
nextFishState
();
}
}
if
(
Tool
.
judgeHasScore
(
jlat
.
element
)){
if
(
Tool
.
judgeHasScore
(
jlat
.
element
)){
...
@@ -5484,7 +5484,7 @@ export default class MainScene extends Scene {
...
@@ -5484,7 +5484,7 @@ export default class MainScene extends Scene {
if
(
this
.
eliminatedElements
.
indexOf
(
k3kuangidx
)
==-
1
){
if
(
this
.
eliminatedElements
.
indexOf
(
k3kuangidx
)
==-
1
){
this
.
eliminatedElements
.
push
(
k3kuangidx
);
this
.
eliminatedElements
.
push
(
k3kuangidx
);
}
}
if
(
this
.
lattices
[
k3kuangidx
].
element
.
type
==
ElementType
.
FISH
)
{
if
(
this
.
lattices
[
k3kuangidx
].
element
.
type
==
ElementType
.
FISH
&&!
this
.
lattices
[
k3kuangidx
].
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
)
{
this
.
lattices
[
k3kuangidx
].
element
.
nextFishState
();
this
.
lattices
[
k3kuangidx
].
element
.
nextFishState
();
}
}
}
}
...
@@ -5621,7 +5621,7 @@ export default class MainScene extends Scene {
...
@@ -5621,7 +5621,7 @@ export default class MainScene extends Scene {
// }
// }
//本来没必要判断特效组合时是否有重复的消除元素,但是recoverEle里会有判断石头或果冻的加入,造成重复
//本来没必要判断特效组合时是否有重复的消除元素,但是recoverEle里会有判断石头或果冻的加入,造成重复
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
this
.
eliminatedElements
.
push
(
i
);
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
)
{
if
(
this
.
lattices
[
i
].
element
.
type
==
ElementType
.
FISH
&&!
this
.
lattices
[
i
].
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
)
{
this
.
lattices
[
i
].
element
.
nextFishState
();
this
.
lattices
[
i
].
element
.
nextFishState
();
}
}
//两个魔力鸟分数MM
//两个魔力鸟分数MM
...
...
egret/src/something/chapters/Chapter30.ts
View file @
06b4513e
...
@@ -75,5 +75,16 @@ export const Chapters30: ChapterData[] = [
...
@@ -75,5 +75,16 @@ export const Chapters30: ChapterData[] = [
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
}
]
}
{
index
:
8
,
type
:
null
}
]
}
}
},
//测试752
{
baseElementTypes
:
[
0
,
1
,
2
,
3
],
bubbleProbability
:
0
,
stepCount
:
26
,
passTarget
:
{
type
:
1
,
elements
:
[
{
type
:
9
,
count
:
69
}
]
},
starScores
:
[
15000
,
20000
,
25000
],
map
:
{
lattices
:
[
0
,
0
,
0
,
3
,
3
,
3
,
0
,
0
,
0
,
0
,
0
,
3
,
3
,
3
,
3
,
3
,
0
,
0
,
0
,
3
,
3
,
3
,
6
,
3
,
3
,
3
,
0
,
3
,
3
,
3
,
3
,
6
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
6
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
6
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
6
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
],
connectedLats
:
[],
conveyor
:
[],
conveyorConnectedLats
:
[],
WORMHOLE
:
[],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
15
,
4
,
1
,
1
,
1
,
2
,
1
,
2
,
4
,
15
,
4
,
2
,
1
,
2
,
1
,
2
,
1
,
4
,
15
,
4
,
1
,
2
,
1
,
2
,
1
,
2
,
4
,
15
,
4
,
2
,
1
,
2
,
1
,
2
,
1
,
4
,
15
,
4
,
1
,
2
,
1
,
2
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
2
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
foodsdata
:
[
{
type
:
43
,
dir
:
"up"
,
luidx
:
54
},
{
type
:
43
,
dir
:
"up"
,
luidx
:
60
},
{
type
:
45
,
dir
:
"down"
,
luidx
:
23
},
{
type
:
42
,
dir
:
"up"
,
luidx
:
30
},
{
type
:
42
,
dir
:
"up"
,
luidx
:
32
},
{
type
:
42
,
dir
:
"up"
,
luidx
:
48
},
{
type
:
42
,
dir
:
"up"
,
luidx
:
50
}
],
generateLats
:
[
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
11
,
type
:
null
},
{
index
:
15
,
type
:
null
},
{
index
:
19
,
type
:
null
},
{
index
:
25
,
type
:
null
},
{
index
:
27
,
type
:
null
},
{
index
:
35
,
type
:
null
}
]
}
},
]
]
egret/src/something/class/Element.ts
View file @
06b4513e
...
@@ -72,6 +72,7 @@ export class Element extends eui.Component {
...
@@ -72,6 +72,7 @@ export class Element extends eui.Component {
}
}
}
}
async
nextFishState
()
{
async
nextFishState
()
{
// console.log("河豚充能");
await
wait
(
1000
);
await
wait
(
1000
);
this
.
_fishState
++
;
this
.
_fishState
++
;
if
(
this
.
_fishState
==
1
)
{
if
(
this
.
_fishState
==
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