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
5745a9bf
Commit
5745a9bf
authored
Nov 08, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
6ea681fb
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1169 additions
and
5 deletions
+1169
-5
index.html
egret/index.html
+2
-2
Tool.ts
egret/src/something/Tool.ts
+4
-2
Chapter11.ts
egret/src/something/chapters/Chapter11.ts
+749
-0
Chapter12.ts
egret/src/something/chapters/Chapter12.ts
+264
-0
getChapter.ts
egret/src/something/chapters/getChapter.ts
+4
-0
config.js
mock/config.js
+1
-1
homemax.json
mock/happyclear/homemax.json
+145
-0
No files found.
egret/index.html
View file @
5745a9bf
...
@@ -132,8 +132,8 @@
...
@@ -132,8 +132,8 @@
];
];
// localStorage.clear();
// localStorage.clear();
window
[
'imgver'
]
=
'1022'
window
[
'imgver'
]
=
'1022'
window
[
'total_level'
]
=
18
+
13
*
1
4
;
window
[
'total_level'
]
=
18
+
13
*
1
6
;
window
[
'last_level'
]
=
2
00
;
//必须大于等于total_level
window
[
'last_level'
]
=
2
25
;
//必须大于等于total_level
// localStorage.clear();
// localStorage.clear();
...
...
egret/src/something/Tool.ts
View file @
5745a9bf
...
@@ -15,7 +15,7 @@ import { StateType } from "./enum/StateType";
...
@@ -15,7 +15,7 @@ import { StateType } from "./enum/StateType";
const
offsetYTwo
:
number
[]
=
[];
const
offsetYTwo
:
number
[]
=
[];
const
gameAreaHeightTwo
:
number
[]
=
[];
const
gameAreaHeightTwo
:
number
[]
=
[];
//初始化适配位置,就因为棒棒糖的45偏移
//初始化适配位置,就因为棒棒糖的45偏移
(
function
()
{
function
initClientScale
()
{
var
stageHeight
=
document
.
body
.
clientHeight
/
document
.
body
.
clientWidth
*
750
;
var
stageHeight
=
document
.
body
.
clientHeight
/
document
.
body
.
clientWidth
*
750
;
var
middleHeight
=
80
*
9
;
var
middleHeight
=
80
*
9
;
var
smallestHeight
=
230
+
middleHeight
+
180
;
var
smallestHeight
=
230
+
middleHeight
+
180
;
...
@@ -30,7 +30,7 @@ const gameAreaHeightTwo: number[] = [];
...
@@ -30,7 +30,7 @@ const gameAreaHeightTwo: number[] = [];
gameAreaHeightTwo
[
0
]
=
stageHeight
-
230
-
180
;;
gameAreaHeightTwo
[
0
]
=
stageHeight
-
230
-
180
;;
gameAreaHeightTwo
[
1
]
=
stageHeight
-
230
-
180
;
gameAreaHeightTwo
[
1
]
=
stageHeight
-
230
-
180
;
}
}
}
)()
}
export
class
Tool
{
export
class
Tool
{
/**
/**
...
@@ -95,6 +95,8 @@ export class Tool {
...
@@ -95,6 +95,8 @@ export class Tool {
* 提前的缓存数据,千万别修改,因为给出的数据都没有深拷贝过
* 提前的缓存数据,千万别修改,因为给出的数据都没有深拷贝过
*/
*/
public
static
init
(
isTwo
:
boolean
=
false
,
hasLollipop
:
boolean
=
false
)
{
public
static
init
(
isTwo
:
boolean
=
false
,
hasLollipop
:
boolean
=
false
)
{
//初始化屏幕尺寸
if
(
!
offsetYTwo
.
length
)
initClientScale
();
//x的偏移
//x的偏移
var
ooox
:
number
=
isTwo
?
55
:
15
;
// 49 : 8.25
var
ooox
:
number
=
isTwo
?
55
:
15
;
// 49 : 8.25
var
oooy
:
number
=
hasLollipop
?
offsetYTwo
[
1
]
:
offsetYTwo
[
0
];
var
oooy
:
number
=
hasLollipop
?
offsetYTwo
[
1
]
:
offsetYTwo
[
0
];
...
...
egret/src/something/chapters/Chapter11.ts
0 → 100644
View file @
5745a9bf
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/Chapter12.ts
0 → 100644
View file @
5745a9bf
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/getChapter.ts
View file @
5745a9bf
...
@@ -9,9 +9,11 @@ import { Chapters7 } from "./Chapter7";
...
@@ -9,9 +9,11 @@ import { Chapters7 } from "./Chapter7";
import
{
Chapters8
}
from
"./Chapter8"
;
import
{
Chapters8
}
from
"./Chapter8"
;
import
{
Chapters9
}
from
"./Chapter9"
;
import
{
Chapters9
}
from
"./Chapter9"
;
import
{
Chapters10
}
from
"./Chapter10"
;
import
{
Chapters10
}
from
"./Chapter10"
;
import
{
Chapters11
}
from
"./Chapter11"
;
import
{
PassTargetData
}
from
"../interface/PassTargetData"
;
import
{
PassTargetData
}
from
"../interface/PassTargetData"
;
import
{
PassType
}
from
"../enum/PassType"
;
import
{
PassType
}
from
"../enum/PassType"
;
import
{
submitTran
}
from
"../enum/ElementType"
;
import
{
submitTran
}
from
"../enum/ElementType"
;
import
{
Chapters12
}
from
"./Chapter12"
;
//所有的关卡
//所有的关卡
const
chapters
:
ChapterData
[]
=
[].
concat
(
const
chapters
:
ChapterData
[]
=
[].
concat
(
...
@@ -25,6 +27,8 @@ const chapters: ChapterData[] = [].concat(
...
@@ -25,6 +27,8 @@ const chapters: ChapterData[] = [].concat(
Chapters8
,
Chapters8
,
Chapters9
,
Chapters9
,
Chapters10
,
Chapters10
,
Chapters11
,
Chapters12
,
)
)
/**
/**
* 获取关卡数据,返回关卡数据
* 获取关卡数据,返回关卡数据
...
...
mock/config.js
View file @
5745a9bf
...
@@ -52,7 +52,7 @@ const config = {
...
@@ -52,7 +52,7 @@ const config = {
data
:
'./happyclear/openTreasureBox.json'
data
:
'./happyclear/openTreasureBox.json'
},
},
'/customActivity/happyclear/home'
:
{
'/customActivity/happyclear/home'
:
{
data
:
'./happyclear/home.json'
data
:
'./happyclear/home
max
.json'
},
},
'/customActivity/happyclear/getLevelInfo'
:
{
'/customActivity/happyclear/getLevelInfo'
:
{
data
:
'./happyclear/getLevelInfo.json'
data
:
'./happyclear/getLevelInfo.json'
...
...
mock/happyclear/homemax.json
View file @
5745a9bf
...
@@ -986,6 +986,151 @@
...
@@ -986,6 +986,151 @@
"levelNum"
:
196
,
"levelNum"
:
196
,
"maxScore"
:
47440
,
"maxScore"
:
47440
,
"stars"
:
1
"stars"
:
1
},
{
"levelNum"
:
197
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
198
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
199
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
200
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
201
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
202
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
203
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
204
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
205
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
206
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
207
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
208
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
209
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
210
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
211
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
212
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
213
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
214
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
215
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
216
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
217
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
218
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
219
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
220
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
221
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
222
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
223
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
224
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
225
,
"maxScore"
:
47440
,
"stars"
:
1
}
}
],
],
"remainProp"
:
[
"remainProp"
:
[
...
...
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