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
e80745b7
Commit
e80745b7
authored
Aug 24, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
b3b56844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
144 additions
and
4 deletions
+144
-4
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-3
Chapters.ts
egret/src/something/Chapters.ts
+142
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
e80745b7
...
...
@@ -199,7 +199,7 @@ export default class MainScene extends Scene {
Tool
.
init
();
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
// this.chapter =
3
0;
// this.chapter =
2
0;
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
//关卡数据
this
.
chapterData
=
Chapters
[
this
.
chapter
];
...
...
@@ -1856,7 +1856,6 @@ export default class MainScene extends Scene {
if
(
s
)
{
const
submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
if
(
submitData
.
prizeType
==
1
)
{
//提交成功后捞结果
NetManager
.
ins
.
getPlugOrderStatus
((
s
)
=>
{
Loading2
.
instace
.
hide
();
...
...
@@ -1878,9 +1877,9 @@ export default class MainScene extends Scene {
()
=>
{
return
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
0
});
}
else
{
Loading2
.
instace
.
hide
();
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
NO_PRIZE_PANEL
,
{
level
:
this
.
chapter
});
}
}
else
{
Loading2
.
instace
.
hide
();
if
(
!
data
)
{
...
...
egret/src/something/Chapters.ts
View file @
e80745b7
...
...
@@ -2,6 +2,14 @@ import { ChapterData } from "./interface/ChapterData";
import
{
PassType
}
from
"./enum/PassType"
;
import
{
ElementType
}
from
"./enum/ElementType"
;
// const CipherJS = require('cipherjs');
// const Vigenere = CipherJS.Vigenere;
// Vigenere.encrypt('MY SECRET MESSAGE', 'MY SECRET KEY')
export
const
Chapters
:
ChapterData
[]
=
[
//第0关为空吧,
null
,
...
...
@@ -889,7 +897,7 @@ export const Chapters: ChapterData[] = [
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
],
generateLats
:
[
54
,
1
,
29
,
3
,
31
,
5
,
33
,
7
,
62
],
connectedLats
:
[[
10
,
55
],[
38
,
56
],[
12
,
57
],[
40
,
58
],[
14
,
59
],[
42
,
60
],[
16
,
61
]]
connectedLats
:
[[
10
,
55
],
[
38
,
56
],
[
12
,
57
],
[
40
,
58
],
[
14
,
59
],
[
42
,
60
],
[
16
,
61
]]
},
baseElementTypes
:
[
0
,
1
,
2
],
effectInitProbability
:
0.1
,
...
...
@@ -909,4 +917,137 @@ export const Chapters: ChapterData[] = [
50000
]
},
//////////////////////
//第三十一关
{
map
:
{
lattices
:
[
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
5
,
5
,
5
,
1
,
1
,
0
,
1
,
1
,
5
,
5
,
5
,
5
,
5
,
1
,
1
,
1
,
1
,
5
,
5
,
5
,
5
,
5
,
1
,
1
,
1
,
1
,
5
,
5
,
5
,
5
,
5
,
1
,
1
,
0
,
1
,
1
,
5
,
5
,
5
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
],
generateLats
:
[
3
,
4
,
5
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.1
,
stepCount
:
33
,
passTarget
:
{
type
:
PassType
.
SCORE_TARGET
,
score
:
12000
,
},
starScores
:
[
12000
,
18000
,
20000
]
},
//第三十二关
{
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
1
,
0
,
1
,
3
,
3
,
1
,
1
,
3
,
3
,
1
,
0
,
1
,
3
,
3
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
1
,
0
,
1
,
3
,
3
,
1
,
1
,
3
,
3
,
1
,
0
,
1
,
3
,
3
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
],
generateLats
:
[
0
,
1
,
2
,
3
,
5
,
6
,
7
,
8
],
connectedLats
:
[[
27
,
45
],
[
28
,
46
],
[
29
,
47
],
[
30
,
48
],
[
32
,
50
],
[
33
,
51
],
[
34
,
52
],
[
35
,
53
]]
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.1
,
stepCount
:
17
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
ICE
,
count
:
16
}
],
},
starScores
:
[
18000
,
25000
,
35000
]
},
//第三十三关
{
map
:
{
lattices
:
[
1
,
1
,
4
,
1
,
1
,
1
,
1
,
1
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
],
generateLats
:
[
0
,
1
,
2
,
3
,
5
,
6
,
7
,
8
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.1
,
stepCount
:
30
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
LOLLIPOP
,
count
:
7
}
],
},
starScores
:
[
15000
,
30000
,
45000
]
},
//第三十四关
{
map
:
{
lattices
:
[
1
,
1
,
4
,
1
,
1
,
1
,
1
,
1
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
],
generateLats
:
[
0
,
1
,
2
,
3
,
5
,
6
,
7
,
8
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
30
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
LOLLIPOP
,
count
:
7
}
],
},
starScores
:
[
15000
,
30000
,
45000
]
},
]
\ No newline at end of file
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