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
45c5db23
Commit
45c5db23
authored
Oct 29, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
a945e2dc
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1313 additions
and
300 deletions
+1313
-300
GameGuide.ts
egret/src/mainScene/GameGuide.ts
+32
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+5
-3
Chapter2.ts
egret/src/something/chapters/Chapter2.ts
+1
-1
Chapter3.ts
egret/src/something/chapters/Chapter3.ts
+10
-4
Chapter4.ts
egret/src/something/chapters/Chapter4.ts
+64
-63
Chapter6.ts
egret/src/something/chapters/Chapter6.ts
+192
-15
Chapter7.ts
egret/src/something/chapters/Chapter7.ts
+384
-32
Chapter8.ts
egret/src/something/chapters/Chapter8.ts
+414
-33
Chapter9.ts
egret/src/something/chapters/Chapter9.ts
+128
-44
getChapter.ts
egret/src/something/chapters/getChapter.ts
+35
-26
Element.ts
egret/src/something/class/Element.ts
+28
-77
StateType.ts
egret/src/something/enum/StateType.ts
+18
-1
LockState.ts
egret/src/something/states/LockState.ts
+2
-0
No files found.
egret/src/mainScene/GameGuide.ts
View file @
45c5db23
...
...
@@ -78,7 +78,6 @@ export class GameGuide extends egret.DisplayObjectContainer {
hideSelf
()
{
if
(
this
.
parent
)
this
.
parent
.
removeChild
(
this
);
console
.
log
(
this
.
stepCount
)
if
(
!
this
.
stepCount
)
{
//计入缓存
writeCache
(
getCacheKey
()
+
this
.
thisObj
.
chapter
);
...
...
@@ -324,6 +323,22 @@ const chapterFuns = {
"小心!会蔓延的果冻!
\n
消除果冻旁边的动物
\n
就能消除果冻~"
]
},
//鸡蛋
61
:
{
stepCount
:
1
,
showIndexs
:
[
[
66
,
57
,
48
,
39
],
],
hideIndexs
:
[
[
48
,
39
],
],
handIndexs
:
[
[
66
,
57
]
],
msg
:
[
"鸡蛋边上不断有动物消除时,会孵出小鸡"
]
},
//灰毛球
101
:
{
stepCount
:
1
,
...
...
@@ -339,6 +354,22 @@ const chapterFuns = {
msg
:
[
"灰毛球每步会随机选择
\n
相邻的格子跳动~
\n
移动一步试试吧"
]
},
//褐色毛球
121
:
{
stepCount
:
1
,
showIndexs
:
[
[
55
,
56
,
65
,
47
],
],
hideIndexs
:
[
[
65
,
47
],
],
handIndexs
:
[
[
55
,
56
]
],
msg
:
[
"需用特效将褐色毛球分裂成
\n
两个灰色毛球,才能将它消除"
]
}
}
...
...
egret/src/mainScene/MainScene.ts
View file @
45c5db23
...
...
@@ -493,6 +493,7 @@ export default class MainScene extends Scene {
for
(
var
i
=
0
;
i
<
connectedLats
.
length
;
i
++
)
{
//0是上格子,1是下格子
var
connectedLat
=
connectedLats
[
i
];
if
(
!
connectedLat
||
!
connectedLat
.
length
)
continue
;
this
.
lattices
[
connectedLat
[
0
]].
down
=
connectedLat
[
1
];
this
.
lattices
[
connectedLat
[
1
]].
up
=
connectedLat
[
0
];
...
...
@@ -651,7 +652,7 @@ export default class MainScene extends Scene {
//初始化引导,游戏和道具
initGuide
()
{
//游戏引导
const
gameGuideChapterNum
=
[
1
,
2
,
3
,
5
,
8
,
9
,
10
,
12
,
17
,
25
,
41
,
10
1
]
const
gameGuideChapterNum
=
[
1
,
2
,
3
,
5
,
8
,
9
,
10
,
12
,
17
,
25
,
41
,
61
,
101
,
12
1
]
if
(
gameGuideChapterNum
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
)
{
if
(
!
readCache
(
getCacheKey
()
+
this
.
chapter
))
{
this
.
gameGuide
=
new
GameGuide
(
this
);
...
...
@@ -2302,10 +2303,11 @@ export default class MainScene extends Scene {
var
r
=
Tool
.
getForwardRotation
(
stepPosition
,
[
ele
.
x
,
ele
.
y
])
bonusShootAni
.
play
(
r
*
180
/
Math
.
PI
,
[
ele
.
x
,
ele
.
y
],
()
=>
{
ele
.
effectType
=
Math
.
random
()
>
0.5
?
EffectType
.
HORIZONTAL
:
EffectType
.
VERTICAL
;
count
++
;
//去掉所有状态
ele
.
removeAllState
();
this
.
eliminatedElements
.
push
(
ele
.
index
);
this
.
pushScoreAni
(
baseScore
*
1
*
1.5
,
[
ele
.
x
,
ele
.
y
])
if
(
count
==
countAll
)
{
if
(
++
count
==
countAll
)
{
this
.
eliminate
();
//如果还有步数就置0
if
(
this
.
steps
)
{
...
...
egret/src/something/chapters/Chapter2.ts
View file @
45c5db23
...
...
@@ -259,7 +259,7 @@ export const Chapters2: ChapterData[] = [
connectedLats
:
[[
2
,
29
],
[
3
,
30
],
[
4
,
31
],
[
74
,
6
],
[
75
,
7
],
[
76
,
8
]]
},
},
//25
待调整
//25
{
baseElementTypes
:
[
0
,
1
,
2
,
3
],
bubbleProbability
:
0
,
...
...
egret/src/something/chapters/Chapter3.ts
View file @
45c5db23
...
...
@@ -118,7 +118,9 @@ export const Chapters3: ChapterData[] = [
}
},
//43
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
22
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
41
}]
},
starScores
:
[
5000
,
15000
,
22000
],
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
0
,
0
,
0
,
0
],
connectedLats
:
[],
elements
:
[
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
4
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
0
,
1
,
1
,
4
,
5
,
5
,
5
,
4
,
1
,
1
,
0
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
4
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
],
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
:
4
,
type
:
0
},
{
index
:
12
,
type
:
0
},
{
index
:
14
,
type
:
0
},
{
index
:
20
,
type
:
0
},
{
index
:
24
,
type
:
0
},
{
index
:
28
,
type
:
0
},
{
index
:
34
,
type
:
0
},
{
index
:
36
,
type
:
0
},
{
index
:
44
,
type
:
0
}]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
22
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
41
}]
},
starScores
:
[
5000
,
15000
,
22000
],
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
0
,
0
,
0
,
0
],
connectedLats
:
[],
elements
:
[
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
4
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
0
,
1
,
1
,
4
,
5
,
5
,
5
,
4
,
1
,
1
,
0
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
4
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
],
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
:
4
,
type
:
0
},
{
index
:
12
,
type
:
0
},
{
index
:
14
,
type
:
0
},
{
index
:
20
,
type
:
0
},
{
index
:
24
,
type
:
0
},
{
index
:
28
,
type
:
0
},
{
index
:
34
,
type
:
0
},
{
index
:
36
,
type
:
0
},
{
index
:
44
,
type
:
0
}]
}
},
//44
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
...
...
@@ -221,7 +223,9 @@ export const Chapters3: ChapterData[] = [
}
},
//46
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
32
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
50
}]
},
starScores
:
[
6000
,
14000
,
25000
],
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
3
,
3
,
3
,
0
,
0
,
0
,
0
,
0
,
3
,
3
,
3
,
3
,
3
,
0
,
0
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
0
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
0
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
],
connectedLats
:
[],
elements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
1
,
2
,
0
,
0
,
0
,
0
,
0
,
1
,
2
,
1
,
2
,
2
,
0
,
0
,
0
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
0
,
0
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
0
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
4
,
4
,
4
,
4
,
4
,
2
,
1
,
2
,
2
,
4
,
4
,
4
,
4
,
4
,
2
,
2
,
2
,
2
,
4
,
4
,
4
,
4
,
4
,
2
,
2
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
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
:
12
,
type
:
0
},
{
index
:
13
,
type
:
0
},
{
index
:
14
,
type
:
0
},
{
index
:
20
,
type
:
0
},
{
index
:
24
,
type
:
0
},
{
index
:
28
,
type
:
0
},
{
index
:
34
,
type
:
0
},
{
index
:
45
,
type
:
0
},
{
index
:
53
,
type
:
0
}]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
32
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
50
}]
},
starScores
:
[
6000
,
14000
,
25000
],
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
3
,
3
,
3
,
0
,
0
,
0
,
0
,
0
,
3
,
3
,
3
,
3
,
3
,
0
,
0
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
0
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
0
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
],
connectedLats
:
[],
elements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
1
,
2
,
0
,
0
,
0
,
0
,
0
,
1
,
2
,
1
,
2
,
2
,
0
,
0
,
0
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
0
,
0
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
0
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
4
,
4
,
4
,
4
,
4
,
2
,
1
,
2
,
2
,
4
,
4
,
4
,
4
,
4
,
2
,
2
,
2
,
2
,
4
,
4
,
4
,
4
,
4
,
2
,
2
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
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
:
12
,
type
:
0
},
{
index
:
13
,
type
:
0
},
{
index
:
14
,
type
:
0
},
{
index
:
20
,
type
:
0
},
{
index
:
24
,
type
:
0
},
{
index
:
28
,
type
:
0
},
{
index
:
34
,
type
:
0
},
{
index
:
45
,
type
:
0
},
{
index
:
53
,
type
:
0
}]
}
},
//47
{
baseElementTypes
:
[
0
,
1
,
2
,
3
],
...
...
@@ -445,7 +449,9 @@ export const Chapters3: ChapterData[] = [
//52
{
baseElementTypes
:
[
0
,
1
,
2
,
4
,
3
],
bubbleProbability
:
0
,
stepCount
:
43
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
6
,
count
:
4
}]
},
starScores
:
[
6000
,
12000
,
21000
],
map
:
{
lattices
:
[
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
,
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
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
3
,
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
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
5
,
1
,
1
,
1
,
5
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
11
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
43
,
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
:
0
},
{
index
:
1
,
type
:
0
},
{
index
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
7
,
type
:
0
},
{
index
:
8
,
type
:
0
}]
}
},
//53
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
34
}]
},
starScores
:
[
6000
,
14000
,
24000
],
map
:
{
lattices
:
[
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
],
connectedLats
:
[],
elements
:
[
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
4
,
2
,
1
,
1
,
1
,
2
,
4
,
2
,
0
,
2
,
4
,
2
,
1
,
2
,
4
,
2
,
0
,
0
,
0
,
2
,
4
,
2
,
4
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
4
,
2
,
0
,
0
,
0
],
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
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
10
,
type
:
0
},
{
index
:
16
,
type
:
0
},
{
index
:
18
,
type
:
0
},
{
index
:
26
,
type
:
0
}]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
34
}]
},
starScores
:
[
6000
,
14000
,
24000
],
map
:
{
lattices
:
[
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
],
connectedLats
:
[],
elements
:
[
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
4
,
2
,
1
,
1
,
1
,
2
,
4
,
2
,
0
,
2
,
4
,
2
,
1
,
2
,
4
,
2
,
0
,
0
,
0
,
2
,
4
,
2
,
4
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
4
,
2
,
0
,
0
,
0
],
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
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
10
,
type
:
0
},
{
index
:
16
,
type
:
0
},
{
index
:
18
,
type
:
0
},
{
index
:
26
,
type
:
0
}]
}
},
//54
{
baseElementTypes
:
[
1
,
2
,
3
,
4
],
...
...
@@ -715,7 +721,7 @@ export const Chapters3: ChapterData[] = [
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
]
}
},
...
...
egret/src/something/chapters/Chapter4.ts
View file @
45c5db23
...
...
@@ -6,7 +6,7 @@ import { ElementType } from "../enum/ElementType";
* 61到80关数据
*/
export
const
Chapters4
:
ChapterData
[]
=
[
//61 鸡蛋引导
,待调整
//61 鸡蛋引导
待加引导
{
baseElementTypes
:
[
0
,
4
,
2
,
3
],
bubbleProbability
:
0
,
...
...
@@ -15,38 +15,38 @@ export const Chapters4: ChapterData[] = [
starScores
:
[
8000
,
15000
,
22000
],
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
],
connectedLats
:
[],
elements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
6
,
1
,
1
,
1
,
6
,
1
,
1
,
1
,
1
,
6
,
1
,
1
,
1
,
6
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
6
,
1
,
1
,
1
,
6
,
1
,
1
,
1
,
1
,
6
,
1
,
1
,
1
,
6
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
],
],
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
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
50
,
30
,
0
,
0
,
0
,
0
,
0
,
40
,
40
,
30
,
50
,
50
,
0
,
0
,
0
,
30
,
30
,
50
,
50
,
40
,
40
,
10
,
0
,
50
,
40
,
0
,
10
,
20
,
30
,
0
,
10
,
20
,
50
,
40
,
0
,
10
,
20
,
50
,
0
,
30
,
20
,
0
,
50
,
40
,
20
,
40
,
30
,
30
,
50
,
0
,
0
,
0
,
20
,
10
,
40
,
10
,
10
,
0
,
0
,
0
,
0
,
0
,
50
,
30
,
30
,
0
,
0
,
0
,
],
recycles
:
[],
generateLats
:
[
...
...
@@ -141,15 +141,16 @@ export const Chapters4: ChapterData[] = [
},
//77
{
baseElementTypes
:
[
0
,
1
,
3
,
2
],
bubbleProbability
:
20
,
stepCount
:
20
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
6
,
count
:
3
}]
},
starScores
:
[
5000
,
12000
,
18000
],
map
:
{
lattices
:
[
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
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
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
],
connectedLats
:
[[
45
,
2
],
[
53
,
6
]],
elements
:
[
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
3
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
0
,
0
,
0
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
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
:
[
55
,
61
,
65
,
69
,
75
,
76
,
77
],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
8
,
type
:
null
},
{
index
:
10
,
type
:
null
},
{
index
:
12
,
type
:
null
},
{
index
:
14
,
type
:
null
},
{
index
:
16
,
type
:
null
}]
}
baseElementTypes
:
[
0
,
1
,
3
,
2
],
bubbleProbability
:
20
,
stepCount
:
20
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
6
,
count
:
3
}]
},
starScores
:
[
5000
,
12000
,
18000
],
map
:
{
lattices
:
[
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
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
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
],
connectedLats
:
[[
45
,
2
],
[
53
,
6
]],
elements
:
[
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
3
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
0
,
0
,
0
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
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
:
[
55
,
61
,
65
,
69
,
75
,
76
,
77
],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
8
,
type
:
null
},
{
index
:
10
,
type
:
null
},
{
index
:
12
,
type
:
null
},
{
index
:
14
,
type
:
null
},
{
index
:
16
,
type
:
null
}]
}
},
//78
{
...
...
@@ -161,38 +162,38 @@ export const Chapters4: ChapterData[] = [
},
//80
{
baseElementTypes
:
[
0
,
2
,
1
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
23
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
1
,
count
:
50
},
{
type
:
5
,
count
:
26
}]
},
starScores
:
[
5000
,
11000
,
19000
],
map
:
{
lattices
:
[
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
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
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
connectedLats
:
[],
baseElementTypes
:
[
0
,
2
,
1
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
23
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
1
,
count
:
50
},
{
type
:
5
,
count
:
26
}]
},
starScores
:
[
5000
,
11000
,
19000
],
map
:
{
lattices
:
[
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
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
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
connectedLats
:
[],
elements
:
[
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
0
,
7
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
2
,
7
,
6
,
7
,
6
,
7
,
6
,
7
,
2
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
7
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
0
,
7
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
2
,
7
,
6
,
7
,
6
,
7
,
6
,
7
,
2
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
7
,
2
,
7
,
2
,
7
,
2
,
7
,
7
,
7
,
7
,
7
,
7
,
7
,
7
,
7
,
7
,
7
],
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
:
[],
],
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
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
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
:
18
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
18
,
type
:
null
},
{
index
:
26
,
type
:
null
}
]
}
}
}
]
\ No newline at end of file
egret/src/something/chapters/Chapter6.ts
View file @
45c5db23
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/Chapter7.ts
View file @
45c5db23
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/Chapter8.ts
View file @
45c5db23
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/Chapter9.ts
View file @
45c5db23
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/getChapter.ts
View file @
45c5db23
...
...
@@ -4,10 +4,14 @@ import { Chapters2 } from "./Chapter2";
import
{
Chapters3
}
from
"./Chapter3"
;
import
{
Chapters4
}
from
"./Chapter4"
;
import
{
Chapters5
}
from
"./Chapter5"
;
import
{
Chapters6
}
from
"./Chapter6"
;
import
{
Chapters7
}
from
"./Chapter7"
;
import
{
Chapters8
}
from
"./Chapter8"
;
import
{
Chapters9
}
from
"./Chapter9"
;
import
{
Chapters10
}
from
"./Chapter10"
;
import
{
PassTargetData
}
from
"../interface/PassTargetData"
;
import
{
PassType
}
from
"../enum/PassType"
;
import
{
submitTran
}
from
"../enum/ElementType"
;
import
{
Chapters6
}
from
"./Chapter6"
;
//所有的关卡
const
chapters
:
ChapterData
[]
=
[].
concat
(
...
...
@@ -17,6 +21,10 @@ const chapters: ChapterData[] = [].concat(
Chapters4
,
Chapters5
,
Chapters6
,
Chapters7
,
Chapters8
,
Chapters9
,
Chapters10
,
)
/**
* 获取关卡数据,返回关卡数据
...
...
@@ -37,29 +45,30 @@ var a = {
"twoStarScore"
:
15000
,
"threeStarScore"
:
32000
};
(
function
exportFile
(
chapters
:
ChapterData
[])
{
var
obj
=
[]
for
(
var
i
=
1
;
i
<
chapters
.
length
;
i
++
)
{
var
chapter
:
ChapterData
=
chapters
[
i
]
var
target
:
PassTargetData
=
chapter
.
passTarget
var
a
:
any
=
{};
a
[
"levelNum"
]
=
i
;
a
[
"levelTarget"
]
=
[];
if
(
target
.
type
==
PassType
.
SCORE_TARGET
)
{
a
[
"levelTarget"
].
push
({
"targetType"
:
1
,
"targetNum"
:
target
.
score
})
}
else
{
for
(
var
j
=
0
;
j
<
target
.
elements
.
length
;
j
++
)
{
var
element
=
target
.
elements
[
j
];
a
[
"levelTarget"
].
push
({
"targetType"
:
submitTran
[
element
.
type
],
"targetNum"
:
element
.
count
})
}
}
a
[
"oneStarScore"
]
=
chapter
.
starScores
[
0
];
a
[
"twoStarScore"
]
=
chapter
.
starScores
[
1
];
a
[
"threeStarScore"
]
=
chapter
.
starScores
[
2
];
//取数据格式用,一般情况注释
// (function exportFile(chapters: ChapterData[]) {
// var obj = []
// for (var i = 1; i < chapters.length; i++) {
// var chapter: ChapterData = chapters[i]
// var target: PassTargetData = chapter.passTarget
// var a: any = {};
// a["levelNum"] = i;
// a["levelTarget"] = [];
// if (target.type == PassType.SCORE_TARGET) {
// a["levelTarget"].push({ "targetType": 1, "targetNum": target.score })
// } else {
// for (var j = 0; j < target.elements.length; j++) {
// var element = target.elements[j];
// a["levelTarget"].push({ "targetType": submitTran[element.type], "targetNum": element.count })
// }
// }
// a["oneStarScore"] = chapter.starScores[0];
// a["twoStarScore"] = chapter.starScores[1];
// a["threeStarScore"] = chapter.starScores[2];
obj
.
push
(
a
)
}
// var file = new File([JSON.stringify(obj)], "cfg.json", { type: "text/plain;charset=utf-8" });
// window["saveAs"](file);
})(
chapters
)
\ No newline at end of file
// obj.push(a)
// }
// var file = new File([JSON.stringify(obj)], "cfg.json", { type: "text/plain;charset=utf-8" });
// window["saveAs"](file);
// })(chapters)
\ No newline at end of file
egret/src/something/class/Element.ts
View file @
45c5db23
...
...
@@ -8,7 +8,7 @@ import { VerticalBgAni } from "../periodAni/VerticalBgAni";
import
{
ExplosiveBgAni
}
from
"../periodAni/ExplosiveBgAni"
;
import
{
ChickenEgg
}
from
"./ChickenEgg"
;
import
{
State
}
from
"./State"
;
import
{
StateType
}
from
"../enum/StateType"
;
import
{
StateType
,
stateDatas
}
from
"../enum/StateType"
;
import
{
LockState
}
from
"../states/LockState"
;
import
{
HairballBrownState
}
from
"../states/HairballBrownState"
;
...
...
@@ -187,34 +187,7 @@ export class Element extends eui.Component {
this
.
effectType
=
null
;
this
.
temEffectType
=
null
;
//所有状态重置
for
(
var
i
=
0
;
i
<
this
.
states
.
length
;
i
++
)
{
let
state
=
this
.
states
[
i
];
if
(
!
state
)
continue
//直接移除
this
.
removeChild
(
state
);
//直接回收
var
recoverType
:
RecoverName
switch
(
i
)
{
case
StateType
.
LOCK
:
recoverType
=
RecoverName
.
LOCK_STATE
;
break
;
case
StateType
.
BUBBLE
:
recoverType
=
RecoverName
.
BUBBLE_STATE
;
break
;
case
StateType
.
HAIRBALLGREY
:
recoverType
=
RecoverName
.
HAIRBALLGREY_STATE
;
break
;
case
StateType
.
HAIRBALLBLACK
:
recoverType
=
RecoverName
.
HAIRBALLBLACK_STATE
;
break
;
case
StateType
.
HAIRBALLBROWN
:
recoverType
=
RecoverName
.
HAIRBALLBROWN_STATE
;
break
;
}
Pool
.
recover
(
recoverType
,
state
);
//置空
this
.
states
[
i
]
=
null
;
}
this
.
removeAllState
();
//如果类型是鸡蛋
if
(
type
==
ElementType
.
CHICKEN_EGG
)
{
this
.
chickenEgg
=
this
.
chickenEgg
||
Pool
.
takeOut
(
RecoverName
.
CHICKEN_EGG
)
...
...
@@ -343,56 +316,20 @@ export class Element extends eui.Component {
}
//没有的话加上
else
{
switch
(
state
)
{
case
StateType
.
LOCK
:
let
lockState
=
Pool
.
takeOut
(
RecoverName
.
LOCK_STATE
);
if
(
!
lockState
)
{
lockState
=
new
LockState
();
}
else
{
lockState
.
reset
()
}
this
.
states
[
state
]
=
lockState
;
break
;
case
StateType
.
BUBBLE
:
let
bubbleState
=
Pool
.
takeOut
(
RecoverName
.
BUBBLE_STATE
);
if
(
!
bubbleState
)
{
bubbleState
=
new
BubbleState
(
data
);
}
else
{
bubbleState
.
reset
(
data
)
}
this
.
states
[
state
]
=
bubbleState
;
this
.
showImage
.
alpha
=
0
;
break
;
case
StateType
.
HAIRBALLGREY
:
let
hairballGreyState
=
Pool
.
takeOut
(
RecoverName
.
HAIRBALLGREY_STATE
);
if
(
!
hairballGreyState
)
{
hairballGreyState
=
new
HairballGreyState
();
}
else
{
hairballGreyState
.
reset
()
}
this
.
states
[
state
]
=
hairballGreyState
;
break
;
case
StateType
.
HAIRBALLBLACK
:
let
hairballBlackState
=
Pool
.
takeOut
(
RecoverName
.
HAIRBALLBLACK_STATE
);
if
(
!
hairballBlackState
)
{
hairballBlackState
=
new
HairballBlackState
();
}
else
{
hairballBlackState
.
reset
()
}
this
.
states
[
state
]
=
hairballBlackState
;
break
;
case
StateType
.
HAIRBALLBROWN
:
let
hairballBrowState
=
Pool
.
takeOut
(
RecoverName
.
HAIRBALLBROWN_STATE
);
if
(
!
hairballBrowState
)
{
hairballBrowState
=
new
HairballBrownState
();
}
else
{
hairballBrowState
.
reset
()
}
this
.
states
[
state
]
=
hairballBrowState
;
break
;
var
stateData
=
stateDatas
[
state
];
var
recoverName
:
RecoverName
=
stateData
.
recoverName
;
var
className
=
stateData
.
className
;
let
stateEx
=
Pool
.
takeOut
(
recoverName
);
if
(
!
stateEx
)
{
stateEx
=
new
className
(
data
);
}
else
{
stateEx
.
reset
(
data
)
}
this
.
states
[
state
]
=
stateEx
;
//视图添加
this
.
addChild
(
this
.
states
[
state
]);
//气泡定制逻辑
if
(
state
===
StateType
.
BUBBLE
)
this
.
showImage
.
alpha
=
0
;
}
}
}
...
...
@@ -407,7 +344,21 @@ export class Element extends eui.Component {
}
return
false
}
/**
* 去掉所有状态
*/
removeAllState
()
{
for
(
var
i
=
0
;
i
<
this
.
states
.
length
;
i
++
)
{
let
state
=
this
.
states
[
i
];
if
(
!
state
)
continue
//直接移除
this
.
removeChild
(
state
);
//直接回收
Pool
.
recover
(
stateDatas
[
i
].
recoverName
,
state
);
//置空
this
.
states
[
i
]
=
null
;
}
}
/**
* 取得一个状态
* @param state
...
...
egret/src/something/enum/StateType.ts
View file @
45c5db23
import
{
RecoverName
}
from
"./RecoverName"
;
import
{
BubbleState
}
from
"../states/BubbleState"
;
import
{
LockState
}
from
"../states/LockState"
;
import
{
HairballGreyState
}
from
"../states/HairballGreyState"
;
import
{
HairballBrownState
}
from
"../states/HairballBrownState"
;
import
{
HairballBlackState
}
from
"../states/HairballBlackState"
;
/**
* 状态类型
*/
...
...
@@ -7,4 +14,14 @@ export enum StateType {
HAIRBALLGREY
,
//灰色毛球 ,一次就消除
HAIRBALLBROWN
,
//褐色毛球 ,只能特效消除
HAIRBALLBLACK
,
//黑色毛球 ,两次消除,一次闭眼
}
\ No newline at end of file
}
//与上面的枚举顺序一致
export
const
stateDatas
:
{
recoverName
:
RecoverName
,
className
:
any
}[]
=
[
{
recoverName
:
RecoverName
.
BUBBLE_STATE
,
className
:
BubbleState
},
{
recoverName
:
RecoverName
.
LOCK_STATE
,
className
:
LockState
},
{
recoverName
:
RecoverName
.
HAIRBALLGREY_STATE
,
className
:
HairballGreyState
},
{
recoverName
:
RecoverName
.
HAIRBALLBROWN_STATE
,
className
:
HairballBrownState
},
{
recoverName
:
RecoverName
.
HAIRBALLBLACK_STATE
,
className
:
HairballBlackState
},
]
\ No newline at end of file
egret/src/something/states/LockState.ts
View file @
45c5db23
...
...
@@ -21,6 +21,8 @@ export class LockState extends State {
reset
()
{
this
.
alpha
=
1
;
}
//要不要把动画放在这里,这种移除动效最好统一外面,常驻动效才
recover
()
{
egret
.
Tween
.
get
(
this
)
.
to
({
alpha
:
0
},
750
)
...
...
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