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
edf11652
Commit
edf11652
authored
Dec 23, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4971035b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+5
-0
BaseBlock.ts
egret/src/something/block/BaseBlock.ts
+3
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
edf11652
...
...
@@ -1893,6 +1893,11 @@ export default class MainScene extends Scene {
}
//消除结束之后检查石门
await
this
.
checkAllBlock
();
//再检查一次
if
(
this
.
threeMatch
())
{
this
.
eliminate
()
return
}
//鸡蛋的ai操作,存在判断三消,毛球的ai,也一样,所以放前面,存在三消时都直接执行eliminate了。不执行后续的回调
AiControl
.
ins
.
eggMotion
(
this
,
()
=>
{
//后执行毛球跳动
...
...
egret/src/something/block/BaseBlock.ts
View file @
edf11652
...
...
@@ -135,7 +135,7 @@ export default class BaseBlock extends egret.DisplayObjectContainer {
async
changeState
(
first
)
{
if
(
this
.
_changing
)
{
throw
new
Error
(
'正在更改状态中'
)
//
throw new Error('正在更改状态中')
}
this
.
_changing
=
true
;
this
.
_block
.
visible
=
false
;
...
...
@@ -157,6 +157,7 @@ export default class BaseBlock extends egret.DisplayObjectContainer {
}
this
.
_blockBgRed
.
visible
=
true
;
this
.
addAni
(
this
.
_blockBgRed
);
this
.
dispatchEvent
(
new
egret
.
Event
(
'onAniOver'
));
break
;
case
1
:
this
.
_block
.
visible
=
true
;
...
...
@@ -175,6 +176,7 @@ export default class BaseBlock extends egret.DisplayObjectContainer {
this
.
_block
.
scaleX
=
1
;
this
.
_blockBgRed
.
visible
=
true
;
this
.
addAni
(
this
.
_blockBgRed
);
this
.
dispatchEvent
(
new
egret
.
Event
(
'onAniOver'
));
break
;
case
4
:
//翻转了
this
.
_blockBgFront
.
visible
=
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