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
31336ec2
Commit
31336ec2
authored
Aug 22, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
48b9ceb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
316 additions
and
5 deletions
+316
-5
default.thm.json
egret/resource/default.thm.json
+1
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+17
-4
Chapters.ts
egret/src/something/Chapters.ts
+298
-0
No files found.
egret/resource/default.thm.json
View file @
31336ec2
...
...
@@ -32,7 +32,7 @@
"resource/skins/StartSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
,
"resource/skins/
m
ainSkin.exml"
"resource/skins/
M
ainSkin.exml"
],
"path"
:
"resource/default.thm.json"
}
\ No newline at end of file
egret/src/mainScene/MainScene.ts
View file @
31336ec2
...
...
@@ -191,7 +191,7 @@ export default class MainScene extends Scene {
Tool
.
init
();
//第几关
var
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
// var chapter = 9
// var chapter =
1
9
this
.
chapterTxt
.
text
=
"第"
+
chapter
+
"关"
;
//关卡数据
this
.
chapterData
=
Chapters
[
chapter
];
...
...
@@ -549,8 +549,19 @@ export default class MainScene extends Scene {
.
to
({
x
:
bx
,
y
:
by
},
100
)
.
wait
(
400
)
}
else
{
egret
.
Tween
.
removeTweens
(
this
.
warningCop
[
0
])
egret
.
Tween
.
removeTweens
(
this
.
warningCop
[
1
])
egret
.
Tween
.
removeTweens
(
this
.
warningCop
[
0
]);
egret
.
Tween
.
removeTweens
(
this
.
warningCop
[
1
]);
//还原位置
var
a
=
this
.
warningCop
[
0
];
var
b
=
this
.
warningCop
[
1
];
var
aIndex
=
a
.
index
;
var
bIndex
=
b
.
index
;
var
ap
=
Tool
.
getPositionByIndex
(
aIndex
);
var
bp
=
Tool
.
getPositionByIndex
(
bIndex
);
a
.
x
=
ap
[
0
];
a
.
y
=
ap
[
1
];
b
.
x
=
bp
[
0
];
b
.
y
=
bp
[
1
];
}
}
...
...
@@ -1632,8 +1643,10 @@ export default class MainScene extends Scene {
if
(
ele
.
temEffectType
!=
null
)
{
ele
.
effectType
=
ele
.
temEffectType
;
ele
.
temEffectType
=
null
;
//但是算个数,
考虑是否冰块要消除
//但是算个数,
this
.
goElementTarget
(
ele
);
//如果格子有冰
this
.
iceBroke
(
this
.
lattices
[
index
]);
}
else
{
//单纯元素消失特效
this
.
playAni
(
RecoverName
.
ELEDIS_ANI
,
p
)
...
...
egret/src/something/Chapters.ts
View file @
31336ec2
...
...
@@ -316,4 +316,302 @@ export const Chapters: ChapterData[] = [
},
starScores
:
[
1000
,
2000
,
3000
]
},
//////////////////////////////
//第十一关
{
map
:
{
lattices
:
[
0
,
0
,
0
,
4
,
4
,
4
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
],
generateLats
:
[
3
,
4
,
5
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
38
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
LOLLIPOP
,
count
:
3
,
},
]
},
starScores
:
[
500
,
1000
,
1500
]
},
//第十二关
{
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
2
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
],
generateLats
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
24
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
ICE
,
count
:
32
,
},
]
},
starScores
:
[
12000
,
14000
,
15000
]
},
//第十三关
{
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
0
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
0
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
0
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
0
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
0
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
0
,
1
,
1
,
1
,
1
,
],
generateLats
:
[
0
,
1
,
2
,
3
,
5
,
6
,
7
,
8
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
42
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
ICE
,
count
:
32
,
},
]
},
starScores
:
[
22000
,
40000
,
50000
]
},
//第十四关
{
map
:
{
lattices
:
[
0
,
0
,
4
,
1
,
1
,
1
,
4
,
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
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
],
generateLats
:
[
2
,
3
,
4
,
5
,
6
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
18
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
LOLLIPOP
,
count
:
6
,
},
]
},
starScores
:
[
3500
,
40000
,
45000
]
},
//第十五关
{
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
,
2
,
],
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
.
ICE
,
count
:
56
,
},
]
},
starScores
:
[
40000
,
80000
,
120000
]
},
//第十六关
{
map
:
{
lattices
:
[
0
,
0
,
4
,
0
,
4
,
0
,
4
,
0
,
0
,
0
,
0
,
1
,
0
,
1
,
0
,
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
,
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
,
],
generateLats
:
[
2
,
4
,
6
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
19
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
LOLLIPOP
,
count
:
3
,
},
]
},
starScores
:
[
23000
,
25000
,
30000
]
},
//第十七关
{
map
:
{
lattices
:
[
0
,
0
,
3
,
2
,
3
,
2
,
3
,
0
,
0
,
0
,
2
,
3
,
2
,
3
,
2
,
3
,
2
,
0
,
3
,
2
,
3
,
2
,
3
,
2
,
3
,
2
,
3
,
3
,
2
,
3
,
2
,
3
,
2
,
3
,
2
,
3
,
0
,
2
,
0
,
2
,
0
,
2
,
0
,
2
,
0
,
3
,
2
,
3
,
2
,
3
,
2
,
3
,
2
,
3
,
3
,
2
,
3
,
2
,
3
,
2
,
3
,
2
,
3
,
0
,
2
,
3
,
2
,
3
,
2
,
3
,
2
,
0
,
0
,
0
,
3
,
2
,
3
,
2
,
3
,
0
,
0
,
],
generateLats
:
[
2
,
3
,
4
,
5
,
6
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
28
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
ICE
,
count
:
64
,
},
]
},
starScores
:
[
10000
,
15000
,
20000
]
},
//第十八关
{
map
:
{
lattices
:
[
1
,
3
,
3
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
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
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
],
generateLats
:
[
0
,
1
,
2
,
13
,
6
,
7
,
8
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
30
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
ICE
,
count
:
49
,
},
]
},
starScores
:
[
40000
,
80000
,
100000
]
},
//第十九关
{
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
,
],
generateLats
:
[
0
,
1
,
2
,
4
,
5
,
6
,
7
,
8
],
connectedLats
:
[[
27
,
45
],
[
28
,
46
],
[
29
,
47
]]
},
baseElementTypes
:
[
0
,
1
,
2
,
3
],
effectInitProbability
:
0.05
,
stepCount
:
15
,
passTarget
:
{
type
:
PassType
.
SCORE_TARGET
,
score
:
22000
},
starScores
:
[
8000
,
16000
,
22000
]
},
//第二十关
{
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
5
,
1
,
1
,
1
,
5
,
2
,
1
,
1
,
2
,
5
,
1
,
1
,
1
,
5
,
2
,
1
,
1
,
5
,
5
,
1
,
1
,
1
,
5
,
5
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
5
,
5
,
2
,
2
,
2
,
5
,
5
,
2
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
2
,
5
,
2
,
0
,
1
,
0
,
2
,
5
,
2
,
],
generateLats
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
46
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
ICE
,
count
:
22
}
]
},
starScores
:
[
11000
,
22000
,
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