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
eedf494c
Commit
eedf494c
authored
Sep 25, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
1774e2bb
91f6ba74
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1132 additions
and
11 deletions
+1132
-11
MainScene.ts
egret/src/mainScene/MainScene.ts
+5
-4
StartPanel.ts
egret/src/panels/StartPanel.ts
+2
-2
Chapters.ts
egret/src/something/Chapters.ts
+1124
-4
MapData.ts
egret/src/something/interface/MapData.ts
+1
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
eedf494c
...
...
@@ -217,7 +217,8 @@ export default class MainScene extends Scene {
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
//关卡数据,1期定制,70,后面35关地图一致,步数减少
var
mapDataIndex
=
this
.
chapter
;
if
(
this
.
chapter
>=
56
)
{
//56到70的话,中间36到50
if
(
this
.
chapter
>=
56
&&
this
.
chapter
<=
70
)
{
//循环36到50
mapDataIndex
=
this
.
chapter
-
20
}
...
...
@@ -233,8 +234,8 @@ export default class MainScene extends Scene {
NetManager
.
ins
.
showLog
(
getlogItem
(
10
))
NetManager
.
ins
.
showLog
(
getlogItem
(
13
))
//步数初始化,1期定制,
if
(
this
.
chapter
>=
56
)
{
//步数初始化,1期定制,
56到70的话
if
(
this
.
chapter
>=
56
&&
this
.
chapter
<=
70
)
{
this
.
steps
=
this
.
chapterData
.
stepCount
-
4
;
}
else
{
...
...
@@ -2373,7 +2374,7 @@ export default class MainScene extends Scene {
Loading2
.
instace
.
show
();
NetManager
.
ins
.
hc_submit
((
s
,
data
)
=>
{
if
(
s
)
{
wait
(
200
).
then
(()
=>
{
wait
(
200
).
then
(()
=>
{
updateMainTimerAfterGetData
();
//submit之后再判断一次home,更新倒计时
});
const
submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
...
...
egret/src/panels/StartPanel.ts
View file @
eedf494c
...
...
@@ -28,7 +28,7 @@ export default class StartPanel extends Panel {
this
[
'levelTxt'
].
text
=
`第
${
data
}
关`
;
this
.
_level
=
data
;
let
mapDataIndex
=
data
;
if
(
data
>=
56
)
{
if
(
data
>=
56
&&
data
<=
70
)
{
//循环36到50
mapDataIndex
=
data
-
20
}
...
...
@@ -103,7 +103,7 @@ export default class StartPanel extends Panel {
// Loading.instace.hide();
this
.
touchChildren
=
true
;
this
.
touchEnabled
=
true
;
wait
(
5000
).
then
(()
=>
{
wait
(
5000
).
then
(()
=>
{
updateMainTimerAfterGetData
();
});
if
(
success
)
{
...
...
egret/src/something/Chapters.ts
View file @
eedf494c
This diff is collapsed.
Click to expand it.
egret/src/something/interface/MapData.ts
View file @
eedf494c
...
...
@@ -7,7 +7,7 @@ import { PathData } from "./PathData";
export
interface
MapData
{
/**
* 一维格子数组,步长9
*
0为空,1基本元素,2为浅冰块,3深冰块,4棒棒糖,5石头,6元素枷锁,废弃
*
* 9*9长度
* 0无格子
* 1普通格子
...
...
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