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
051f1658
Commit
051f1658
authored
Aug 26, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
b43c4135
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-2
Chapters.ts
egret/src/something/Chapters.ts
+5
-5
MapData.ts
egret/src/something/interface/MapData.ts
+15
-0
No files found.
egret/src/mainScene/MainScene.ts
View file @
051f1658
...
...
@@ -199,7 +199,7 @@ export default class MainScene extends Scene {
Tool
.
init
();
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
// this.chapter =
14
;
// this.chapter =
33
;
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
//关卡数据,1期定制,70,后面35关地图一致,步数减少
var
mapDataIndex
=
this
.
chapter
;
...
...
@@ -277,7 +277,7 @@ export default class MainScene extends Scene {
fail
.
y
=
10
;
fail
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
function
()
{
playSound
(
SoundType
.
fail
);
PanelCtrl
.
instance
.
show
(
"failed"
);
PanelCtrl
.
instance
.
show
(
"failed"
,
{
level
:
this
.
chapter
}
);
},
this
)
this
.
addChild
(
fail
);
var
sucess
=
new
eui
.
Image
(
RES
.
getRes
(
"guideKnowBtn_png"
));
...
...
egret/src/something/Chapters.ts
View file @
051f1658
...
...
@@ -402,6 +402,7 @@ export const Chapters: ChapterData[] = [
{
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
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
,
...
...
@@ -410,13 +411,12 @@ export const Chapters: ChapterData[] = [
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
],
generateLats
:
[
11
,
12
,
13
,
14
,
15
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
],
effectInitProbability
:
0.05
,
stepCount
:
18
,
stepCount
:
20
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
...
...
@@ -426,7 +426,7 @@ export const Chapters: ChapterData[] = [
},
]
},
starScores
:
[
3500
,
40000
,
45
000
]
starScores
:
[
5000
,
8000
,
10
000
]
},
//第十五关
{
...
...
@@ -1005,7 +1005,7 @@ export const Chapters: ChapterData[] = [
},
baseElementTypes
:
[
0
,
1
,
2
,
3
],
effectInitProbability
:
0.1
,
stepCount
:
4
0
,
stepCount
:
3
0
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
...
...
egret/src/something/interface/MapData.ts
View file @
051f1658
...
...
@@ -8,13 +8,28 @@ export interface MapData {
* 一维格子数组,步长9
* 0为空,1基本元素,2为浅冰块,3深冰块,4棒棒糖,5石头,6元素枷锁
* 最大9*9长度
* 0无格子
* 1普通格子
* 2浅冰块
* 3深冰块
*
*/
lattices
:
number
[];
/**
* 能生成元素的格子索引
* 默认第一排都能生成
* 0无元素
* 1普通元素
* 2石头
* 3元素枷锁
* 4棒棒糖
*/
generateLats
:
number
[];
/**
* 一维格子数组,步长9
*
*/
// elements:number[]
/**
* 路径的索引
* 暂时不需要了
...
...
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