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
e4fededc
Commit
e4fededc
authored
Mar 28, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决石头阻挡横纵向消除影响的bug
parent
ea080f98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
MainScene.ts
egret/src/mainScene/MainScene.ts
+4
-5
No files found.
egret/src/mainScene/MainScene.ts
View file @
e4fededc
...
@@ -2288,7 +2288,6 @@ export default class MainScene extends Scene {
...
@@ -2288,7 +2288,6 @@ export default class MainScene extends Scene {
this
.
score
+=
scoreAll
;
this
.
score
+=
scoreAll
;
this
.
oneStepScore
+=
scoreAll
;
this
.
oneStepScore
+=
scoreAll
;
// console.log(this.score)
// console.log(this.score)
//this.eliminatedElements已为0;对有特效的特殊处理,又会添加进eliminatedElements,
//this.eliminatedElements已为0;对有特效的特殊处理,又会添加进eliminatedElements,
//必须在上面得分动效后,因为下面这波重新出现的元素要在下一次出现
//必须在上面得分动效后,因为下面这波重新出现的元素要在下一次出现
this
.
effectEliminate
(
effectIndexs
);
this
.
effectEliminate
(
effectIndexs
);
...
@@ -3100,8 +3099,8 @@ export default class MainScene extends Scene {
...
@@ -3100,8 +3099,8 @@ export default class MainScene extends Scene {
// }
// }
//新增石头阻挡
//新增石头阻挡
var
elimitarr
=
this
.
getEliHorPassCannoStone
(
row
,
lat
.
column
);
var
elimitarr
=
this
.
getEliHorPassCannoStone
(
row
,
lat
.
column
);
for
(
var
j
=
0
;
j
<
elimitarr
.
length
;
j
++
){
for
(
var
j
1
=
0
;
j1
<
elimitarr
.
length
;
j1
++
){
var
jelidx
=
elimitarr
[
j
];
var
jelidx
=
elimitarr
[
j
1
];
var
jlat
=
this
.
lattices
[
jelidx
];
var
jlat
=
this
.
lattices
[
jelidx
];
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
);
...
@@ -3136,8 +3135,8 @@ export default class MainScene extends Scene {
...
@@ -3136,8 +3135,8 @@ export default class MainScene extends Scene {
// }
// }
// }
// }
var
elimitarr
=
this
.
getEliVerPassCannoStone
(
lat
.
row
,
col
);
var
elimitarr
=
this
.
getEliVerPassCannoStone
(
lat
.
row
,
col
);
for
(
var
j
=
0
;
j
<
elimitarr
.
length
;
j
++
){
for
(
var
j
1
=
0
;
j1
<
elimitarr
.
length
;
j1
++
){
var
jelidx
=
elimitarr
[
j
];
var
jelidx
=
elimitarr
[
j
1
];
var
jlat
=
this
.
lattices
[
jelidx
];
var
jlat
=
this
.
lattices
[
jelidx
];
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
);
...
...
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