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
550c49df
Commit
550c49df
authored
Aug 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
2290f6d8
02c685f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
18 deletions
+32
-18
MainScene.ts
egret/src/mainScene/MainScene.ts
+11
-2
Chapters.ts
egret/src/something/Chapters.ts
+21
-16
No files found.
egret/src/mainScene/MainScene.ts
View file @
550c49df
...
@@ -199,10 +199,19 @@ export default class MainScene extends Scene {
...
@@ -199,10 +199,19 @@ export default class MainScene extends Scene {
Tool
.
init
();
Tool
.
init
();
//第几关
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
// this.chapter =
70
;
// this.chapter =
19
;
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
//关卡数据,1期定制,70,后面35关地图一致,步数减少
//关卡数据,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
.
initUi
();
this
.
initSvgas
();
this
.
initSvgas
();
//先禁掉事件
//先禁掉事件
...
...
egret/src/something/Chapters.ts
View file @
550c49df
...
@@ -552,27 +552,32 @@ export const Chapters: ChapterData[] = [
...
@@ -552,27 +552,32 @@ export const Chapters: ChapterData[] = [
{
{
map
:
{
map
:
{
lattices
:
[
lattices
:
[
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
5
,
1
,
5
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
5
,
1
,
5
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
5
,
4
,
5
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
5
,
5
,
5
,
5
,
5
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
5
,
5
,
5
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
5
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
4
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
],
],
generateLats
:
[
0
,
1
,
2
,
4
,
5
,
6
,
7
,
8
],
generateLats
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
],
connectedLats
:
[[
27
,
45
],
[
28
,
46
],
[
29
,
47
]]
//
connectedLats: [[27, 45], [28, 46], [29, 47]]
},
},
baseElementTypes
:
[
0
,
1
,
2
,
4
],
baseElementTypes
:
[
0
,
1
,
2
,
3
],
effectInitProbability
:
0.05
,
effectInitProbability
:
0.05
,
stepCount
:
15
,
stepCount
:
22
,
passTarget
:
{
passTarget
:
{
type
:
PassType
.
SCORE_TARGET
,
type
:
PassType
.
ELEMENT_TARGET
,
score
:
18000
elements
:
[
{
type
:
ElementType
.
LOLLIPOP
,
count
:
2
}
]
},
},
starScores
:
[
8000
,
12000
,
1
8
000
]
starScores
:
[
8000
,
12000
,
1
5
000
]
},
},
//第二十关
//第二十关
{
{
...
...
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