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
dd24cc6a
Commit
dd24cc6a
authored
Aug 26, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
197a414f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
17 deletions
+31
-17
MainScene.ts
egret/src/mainScene/MainScene.ts
+11
-2
Chapters.ts
egret/src/something/Chapters.ts
+20
-15
No files found.
egret/src/mainScene/MainScene.ts
View file @
dd24cc6a
...
...
@@ -199,10 +199,19 @@ export default class MainScene extends Scene {
Tool
.
init
();
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
// this.chapter =
70
;
// this.chapter =
19
;
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
//关卡数据,1期定制,70,后面35关地图一致,步数减少
this
.
chapterData
=
Chapters
[
this
.
chapter
%
35
||
35
];
var
mapDataIndex
=
this
.
chapter
;
if
(
this
.
chapter
>=
57
)
{
//循环20到33
mapDataIndex
=
this
.
chapter
-
37
}
else
if
(
this
.
chapter
>=
36
)
{
//循环15到35
mapDataIndex
=
this
.
chapter
-
21
}
this
.
chapterData
=
Chapters
[
mapDataIndex
];
this
.
initUi
();
this
.
initSvgas
();
//先禁掉事件
...
...
egret/src/something/Chapters.ts
View file @
dd24cc6a
...
...
@@ -552,25 +552,30 @@ export const Chapters: ChapterData[] = [
{
map
:
{
lattices
:
[
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
5
,
1
,
5
,
1
,
1
,
0
,
0
,
1
,
1
,
5
,
1
,
5
,
1
,
1
,
0
,
0
,
1
,
1
,
5
,
4
,
5
,
1
,
1
,
0
,
0
,
1
,
5
,
5
,
5
,
5
,
5
,
1
,
0
,
0
,
1
,
1
,
5
,
5
,
5
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
5
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
4
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
],
generateLats
:
[
0
,
1
,
2
,
4
,
5
,
6
,
7
,
8
],
connectedLats
:
[[
27
,
45
],
[
28
,
46
],
[
29
,
47
]]
generateLats
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
],
//
connectedLats: [[27, 45], [28, 46], [29, 47]]
},
baseElementTypes
:
[
0
,
1
,
2
,
4
],
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
15
,
stepCount
:
22
,
passTarget
:
{
type
:
PassType
.
SCORE_TARGET
,
score
:
18000
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
LOLLIPOP
,
count
:
4
}
]
},
starScores
:
[
8000
,
12000
,
18000
]
},
...
...
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