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
e221eb03
Commit
e221eb03
authored
Apr 26, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑洞烟花卡住游戏bug暂存
parent
75521c9a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
3 deletions
+44
-3
MainScene.ts
egret/src/mainScene/MainScene.ts
+5
-1
Chapter26.ts
egret/src/something/chapters/Chapter26.ts
+37
-1
getChapter.ts
egret/src/something/chapters/getChapter.ts
+1
-1
Element.ts
egret/src/something/class/Element.ts
+1
-0
No files found.
egret/src/mainScene/MainScene.ts
View file @
e221eb03
...
...
@@ -3440,13 +3440,15 @@ export default class MainScene extends Scene {
* 果冻蔓延和气泡变色需要重新检查死图
*/
async
aiMotionCheckDieMap
()
{
console
.
log
(
"重置点击"
);
//黑洞转移
if
(
this
.
_checkMtag
.
wormhole
){
this
.
_checkMtag
.
wormhole
=
false
;
let
wormholes
=
this
.
chapterData
.
map
.
WORMHOLE
;
if
(
wormholes
&&
wormholes
.
length
>
0
){
console
.
log
(
"虫洞位移"
)
await
Promise
.
all
(
this
.
wormHolePromise
).
then
(()
=>
{
// console.log("本次烟花播放完毕
");
console
.
log
(
"虫洞可以开始移动
"
);
});
await
doWormHoleAI
(
this
);
// console.log("黑洞转移完毕");
...
...
@@ -3513,6 +3515,7 @@ export default class MainScene extends Scene {
this
.
gameGuide
.
show
()
}
;
console
.
log
(
"重置点击222"
);
//允许移动
this
.
enableMouseEvt
(
true
);
//检查是否有红包炸弹弹框;有就弹出;然后置空
...
...
@@ -4723,6 +4726,7 @@ export default class MainScene extends Scene {
let
isInworm
=
Tool
.
judgeInWormHole
(
index
,
this
.
chapterData
.
map
.
WORMHOLE
);
if
(
isInworm
){
console
.
error
(
"添加烟花pro"
);
this
.
wormHolePromise
.
push
(
pro
);
}
}
...
...
egret/src/something/chapters/Chapter26.ts
View file @
e221eb03
...
...
@@ -185,4 +185,40 @@ export const Chapters26: ChapterData[] = [
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[
{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
},
{
index
:
36
,
type
:
null
},
{
index
:
44
,
type
:
null
}
]
}
},
]
//672
{
baseElementTypes
:
[
1
,
2
,
0
,
4
],
bubbleProbability
:
0
,
stepCount
:
27
,
passTarget
:
{
type
:
1
,
elements
:
[
{
type
:
22
,
count
:
25
},
{
type
:
24
,
count
:
25
},
{
type
:
26
,
count
:
25
}
]
},
starScores
:
[
15000
,
20000
,
25000
],
map
:
{
lattices
:
[
4
,
4
,
1
,
41
,
41
,
41
,
1
,
4
,
4
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
4
,
4
,
1
,
1
,
1
,
1
,
1
,
4
,
4
],
connectedLats
:
[
[
31
,
49
]
],
conveyor
:
[],
conveyorConnectedLats
:
[],
WORMHOLE
:
[
[
37
,
38
],
[
42
,
43
]
],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
5
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
5
,
5
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
5
,
5
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
5
,
5
,
1
,
13
,
13
,
13
,
13
,
13
,
1
,
5
,
5
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
5
,
5
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
5
,
5
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
5
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
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
:
[],
generateLats
:
[
{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
}
]
}
},
]
egret/src/something/chapters/getChapter.ts
View file @
e221eb03
...
...
@@ -78,7 +78,7 @@ chapters.forEach((chapter,index) => {
export
function
getChapterData
(
index
:
number
):
ChapterData
{
//没有数据就返回第一关数据
// return chapters[626];
return
chapters
[
index
]
||
chapters
[
1
];
return
chapters
[
index
]
||
chapters
[
655
];
}
var
a
=
{
...
...
egret/src/something/class/Element.ts
View file @
e221eb03
...
...
@@ -126,6 +126,7 @@ export class Element extends eui.Component {
if
(
this
.
_fireworks
.
currentFrame
==
end
)
{
//向上吹
this
.
_fireworks
.
gotoAndStop
(
start
);
this
.
_fireworks
.
removeEventListener
(
egret
.
Event
.
ENTER_FRAME
,
cb
,
this
);
console
.
error
(
"释放烟花pro"
);
resolve
();
}
};
...
...
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