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
66e558cc
Commit
66e558cc
authored
Mar 31, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
36c9437e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
MainScene.ts
egret/src/mainScene/MainScene.ts
+17
-3
No files found.
egret/src/mainScene/MainScene.ts
View file @
66e558cc
...
...
@@ -2316,11 +2316,24 @@ export default class MainScene extends Scene {
* 执行消除,应该是一个迭代,只要eliminatedElements有东西就一直执行
* 掉落后的逻辑很复杂
*/
eliminate
()
{
eliminate
(
data
:
Array
<
{
ineffect
:
boolean
,
addnum
:
number
}
>=
null
)
{
var
pcannostatArr
:
Array
<
{
ineffect
:
boolean
,
addnum
:
number
}
>
;
if
(
data
){
pcannostatArr
=
data
;
}
else
{
for
(
var
p
=
0
;
p
<
this
.
cannoArr
.
length
;
p
++
){
var
pcannodata
=
{
ineffect
:
false
,
addnum
:
0
,
}
pcannostatArr
.
push
(
pcannodata
);
}
}
//如果是是带组合特效的,组合时的特效本身的算分在effectCombination内,暂不计
if
(
this
.
isManual
)
{
this
.
isManual
=
false
;
this
.
effectCombination
()
this
.
effectCombination
()
;
}
else
{
//先消除有旋转的消除完就置空
this
.
rotateEliminate
()
...
...
@@ -2665,7 +2678,8 @@ export default class MainScene extends Scene {
/**
* 特效元素的组合效果
*/
effectCombination
()
{
effectCombination
(
pcannostatArr
:
Array
<
{
ineffect
:
boolean
,
addnum
:
number
}
>=
null
)
{
var
one
=
this
.
eliminatedElements
[
0
];
var
two
=
this
.
eliminatedElements
[
1
];
let
lat1
=
this
.
lattices
[
one
];
...
...
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