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
c038b52d
Commit
c038b52d
authored
Oct 31, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
64590fe5
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
554 additions
and
48 deletions
+554
-48
MainScene.ts
egret/src/mainScene/MainScene.ts
+7
-5
Chapter1.ts
egret/src/something/chapters/Chapter1.ts
+1
-1
Chapter10.ts
egret/src/something/chapters/Chapter10.ts
+24
-5
Chapter6.ts
egret/src/something/chapters/Chapter6.ts
+336
-15
Chapter7.ts
egret/src/something/chapters/Chapter7.ts
+38
-8
Chapter8.ts
egret/src/something/chapters/Chapter8.ts
+127
-8
Chapter9.ts
egret/src/something/chapters/Chapter9.ts
+20
-5
config.js
mock/config.js
+1
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
c038b52d
...
...
@@ -639,12 +639,14 @@ export default class MainScene extends Scene {
var
arr
:
number
[]
=
Tool
.
returnTO
(
elements
[
i
]);
//基础类型,没有就是null,有就-1,对ElementType对应
var
baseType
=
arr
[
1
]
?
arr
[
1
]
-
1
:
null
;
//
不是基础类型
,跳出
if
(
FiveBaseElementTypes
.
indexOf
(
baseType
)
==
-
1
)
continue
;
//
baseType不是基础类型,且不是null
,跳出
if
(
FiveBaseElementTypes
.
indexOf
(
baseType
)
==
-
1
&&
baseType
!=
null
)
continue
;
let
ele
:
Element
=
this
.
lattices
[
i
].
element
;
if
(
baseType
!=
null
)
{
ele
.
resetType
(
baseType
);
}
//原先元素的类型不是基础元素
if
(
FiveBaseElementTypes
.
indexOf
(
ele
.
type
)
==
-
1
)
continue
;
//如果baseType不为null,重置类型
if
(
baseType
!=
null
)
ele
.
resetType
(
baseType
);
//特效类型,有气炮的不能加特效
if
(
!
ele
.
hasState
(
StateType
.
BUBBLE
))
ele
.
effectType
=
arr
[
0
]
?
arr
[
0
]
-
1
:
null
;
}
...
...
egret/src/something/chapters/Chapter1.ts
View file @
c038b52d
...
...
@@ -22,7 +22,7 @@ export const Chapters1: ChapterData[] = [
},
],
},
starScores
:
[
4000
,
8000
,
1200
0
],
starScores
:
[
100
,
500
,
95
0
],
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
...
...
egret/src/something/chapters/Chapter10.ts
View file @
c038b52d
...
...
@@ -11,7 +11,7 @@ export const Chapters10: ChapterData[] = [
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0.1
,
stepCount
:
27
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
103
}]
},
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
60
}]
},
starScores
:
[
5000
,
12000
,
21000
],
map
:
{
lattices
:
[
...
...
@@ -64,13 +64,32 @@ export const Chapters10: ChapterData[] = [
},
//182
{
baseElementTypes
:
[
0
,
2
,
1
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
21
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
59
}]
},
starScores
:
[
50001
,
12000
,
21000
],
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
0
,
0
,
3
,
3
,
3
,
0
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
0
,
3
,
3
,
3
,
0
,
3
,
3
,
3
,
0
,
3
,
3
,
3
,
3
,
3
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
],
connectedLats
:
[],
elements
:
[
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
,
2
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
5
,
5
,
5
,
2
,
1
,
1
,
1
,
2
,
1
,
2
,
2
,
2
,
1
,
2
,
1
,
5
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
],
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
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,
0
,
0
,
0
,
0
,
0
,
0
,
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
}]
}
},
//183
{
baseElementTypes
:
[
0
,
3
,
4
,
2
],
bubbleProbability
:
0.
2
,
stepCount
:
22
,
bubbleProbability
:
0.
1
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
1
,
count
:
30
}]
},
starScores
:
[
5000
,
18888
,
43000
],
map
:
{
...
...
@@ -142,7 +161,7 @@ export const Chapters10: ChapterData[] = [
2
,
5
,
5
,
5
,
2
,
5
,
5
,
5
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
],
recycles
:
[],
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/Chapter6.ts
View file @
c038b52d
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/Chapter7.ts
View file @
c038b52d
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/Chapter8.ts
View file @
c038b52d
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/Chapter9.ts
View file @
c038b52d
This diff is collapsed.
Click to expand it.
mock/config.js
View file @
c038b52d
...
...
@@ -46,7 +46,7 @@ const config = {
data
:
'./happyclear/openTreasureBox.json'
},
'/customActivity/happyclear/home'
:
{
data
:
'./happyclear/home.json'
data
:
'./happyclear/home
max
.json'
},
'/customActivity/happyclear/getLevelInfo'
:
{
data
:
'./happyclear/getLevelInfo.json'
...
...
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