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
cecf8f87
Commit
cecf8f87
authored
Oct 30, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole
into dev
parents
a75a4ffc
a728ed0e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-10
No files found.
egret/src/mainScene/MainScene.ts
View file @
cecf8f87
...
...
@@ -163,8 +163,6 @@ export default class MainScene extends Scene {
oneStepScore
:
number
;
//果冻有消除的标记;
jellyBrokenMark
:
boolean
;
//有毛球消失的动画时,延迟掉落时间
hairballBrokenMark
:
boolean
;
/**
* 判断连通的状态
* 1表示存在小列连通到大列,从右往左遍历
...
...
@@ -1710,15 +1708,13 @@ export default class MainScene extends Scene {
this
.
eliminate
();
},
200
)
}
else
{
//没有可消除元素,执行掉落,又加定制,因为毛球的消失动画比较长 650ms,用500
var
time
=
this
.
hairballBrokenMark
?
500
:
200
;
this
.
hairballBrokenMark
=
false
;
//没有可消除元素,执行掉落,
setTimeout
(()
=>
{
this
.
fall
(()
=>
{
//掉落停止回调
this
.
fallCallback
();
});
},
time
)
},
200
)
}
}
/**
...
...
@@ -2053,8 +2049,6 @@ export default class MainScene extends Scene {
ele
.
setState
(
StateType
.
HAIRBALLGREY
,
false
)
//算个数
this
.
goElementTarget
(
ElementType
.
HAIRBALLGREY
,
[
ele
.
x
,
ele
.
y
]);
//标记有毛球消失
this
.
hairballBrokenMark
=
true
}
//有黑色毛球的,一次眩晕,两次消失
else
if
(
ele
.
hasState
(
StateType
.
HAIRBALLGREY
))
{
...
...
@@ -2071,8 +2065,6 @@ export default class MainScene extends Scene {
ele
.
setState
(
StateType
.
HAIRBALLBLACK
,
false
)
//算个数
this
.
goElementTarget
(
ElementType
.
HAIRBALLBLACK
,
[
ele
.
x
,
ele
.
y
]);
//标记有毛球消失
this
.
hairballBrokenMark
=
true
}
}
//如果有特效,存下
...
...
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