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
9fd657dd
Commit
9fd657dd
authored
Oct 28, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
bc38c93f
cd7d1c9f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
252 additions
and
131 deletions
+252
-131
map.tmproject
egret/resource/TextureMerger/map.tmproject
+1
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+3
-3
MapScene.ts
egret/src/mapScene/MapScene.ts
+105
-107
ScratchPanel.ts
egret/src/panels/ScratchPanel.ts
+3
-3
Chapter3.ts
egret/src/something/chapters/Chapter3.ts
+127
-6
MapData.ts
egret/src/something/interface/MapData.ts
+1
-1
AiControl.ts
egret/src/something/logic/AiControl.ts
+12
-10
No files found.
egret/resource/TextureMerger/map.tmproject
View file @
9fd657dd
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/taskicon.png","../assets/map/recordbtn.png","../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/namebg.png","../assets/map/msgTri.png","../assets/map/map_signicon.png","../assets/map/lionMsgBg.png","../assets/map/invite_txtbg.png","../assets/map/invite_icon.png","../assets/map/iconbg.png","../assets/map/icon.png","../assets/map/guideOver.png","../assets/map/guideMoney.png","../assets/map/guideLove.png","../assets/map/guideLevel.png","../assets/map/guideBox.png","../assets/map/friend_avatar.png","../assets/map/avatar.png","../assets/map/animal1.png","../assets/map/ad_icon.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐关闭.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音关闭.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/光 副本 4.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/宝箱.png","../assets/map/map明日可领.png","../assets/map/map今日可领.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/taskicon.png","../assets/map/recordbtn.png","../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/namebg.png","../assets/map/msgTri.png","../assets/map/map_signicon.png","../assets/map/lionMsgBg.png","../assets/map/invite_txtbg.png","../assets/map/invite_icon.png","../assets/map/iconbg.png","../assets/map/icon.png","../assets/map/guideOver.png","../assets/map/guideMoney.png","../assets/map/guideLove.png","../assets/map/guideLevel.png","../assets/map/guideBox.png","../assets/map/friend_avatar.png","../assets/map/avatar.png","../assets/map/animal1.png","../assets/map/ad_icon.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐关闭.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音关闭.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/光 副本 4.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/宝箱.png","../assets/map/map明日可领.png","../assets/map/map今日可领.png","../assets/map/map刮现金红包.png","../assets/map/map大转盘.png"]}
\ No newline at end of file
\ No newline at end of file
egret/src/mainScene/MainScene.ts
View file @
9fd657dd
...
@@ -409,8 +409,8 @@ export default class MainScene extends Scene {
...
@@ -409,8 +409,8 @@ export default class MainScene extends Scene {
if
(
!
recycles
||
!
recycles
.
length
)
{
if
(
!
recycles
||
!
recycles
.
length
)
{
var
endRowNumHash
=
{},
endRowNum
:
number
=
0
;;
var
endRowNumHash
=
{},
endRowNum
:
number
=
0
;;
for
(
var
i
=
0
;
i
<
this
.
chapterData
.
map
.
lattices
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
chapterData
.
map
.
lattices
.
length
;
i
++
)
{
var
lat
=
this
.
chapterData
.
map
.
lattices
[
i
];
var
d
=
this
.
chapterData
.
map
.
lattices
[
i
];
if
(
!
lat
[
i
]
)
continue
;
if
(
!
d
)
continue
;
var
rc
=
Tool
.
indexToRc
(
i
);
var
rc
=
Tool
.
indexToRc
(
i
);
const
[
row
,
col
]
=
rc
;
const
[
row
,
col
]
=
rc
;
//不用考虑0
//不用考虑0
...
@@ -428,6 +428,7 @@ export default class MainScene extends Scene {
...
@@ -428,6 +428,7 @@ export default class MainScene extends Scene {
const
{
index
,
row
}
=
endRowNumHash
[
key
];
const
{
index
,
row
}
=
endRowNumHash
[
key
];
if
(
endRowNum
==
row
)
this
.
recycleIndexs
.
push
(
index
)
if
(
endRowNum
==
row
)
this
.
recycleIndexs
.
push
(
index
)
}
}
console
}
}
//如果有数据,直接用数据,
//如果有数据,直接用数据,
else
{
else
{
...
@@ -1081,7 +1082,6 @@ export default class MainScene extends Scene {
...
@@ -1081,7 +1082,6 @@ export default class MainScene extends Scene {
}
}
/**
/**
* 竖直掉落,一格判断,,没有按竖直生成口从上到下,所以有点问题
* 竖直掉落,一格判断,,没有按竖直生成口从上到下,所以有点问题
* 逻辑要重写
*/
*/
private
fallVertical
()
{
private
fallVertical
()
{
var
anis
:
FallAniData
[]
=
[]
var
anis
:
FallAniData
[]
=
[]
...
...
egret/src/mapScene/MapScene.ts
View file @
9fd657dd
...
@@ -42,30 +42,29 @@ export default class MapScene extends Scene {
...
@@ -42,30 +42,29 @@ export default class MapScene extends Scene {
sendInvite
()
{
sendInvite
()
{
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
);
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
);
if
(
!
code
)
return
;
const
code2
=
Utils
.
getRequestByKey
(
'shareCode2'
);
if
(
!
code
&&
!
code2
)
return
;
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
if
(
!
dojoin
)
return
;
if
(
!
dojoin
)
return
;
if
(
doHelpFlag
)
{
if
(
doHelpFlag
)
{
return
;
return
;
}
}
NetManager
.
ins
.
doHelp
(
(
success
,
res
)
=>
{
let
callBack
=
(
success
,
res
)
=>
{
doHelpFlag
=
true
;
doHelpFlag
=
true
;
switch
(
true
)
{
switch
(
true
)
{
case
(
res
.
code
==
"400017"
):
case
(
res
.
code
==
"400017"
):
showToast
(
"您不是新用户呢~"
);
break
;
showToast
(
"您不是新用户呢~"
);
case
(
res
.
code
==
"0000022"
):
showToast
(
"不可以给自己助力哦~"
);
break
;
break
;
case
(
res
.
code
==
"0200202"
):
showToast
(
"已经给好友助力过了哦~"
);
break
;
case
(
res
.
code
==
"0000022"
):
default
:
break
;
showToast
(
"不可以给自己助力哦~"
);
break
;
case
(
res
.
code
==
"0200202"
):
showToast
(
"已经给好友助力过了哦~"
);
break
;
}
if
(
!
success
)
{
return
;
}
}
if
(
!
success
)
{
return
;
}
showToast
(
"助力成功"
);
showToast
(
"助力成功"
);
},
Utils
.
getRequestByKey
(
"shareCode"
),
dojoin
.
data
);
};
if
(
code
)
{
NetManager
.
ins
.
doHelp
(
callBack
,
code
,
dojoin
.
data
);
}
else
if
(
code2
)
{
NetManager
.
ins
.
scratchDoHelp
(
callBack
,
code2
);
}
}
}
// 邀请有礼角标倒计时
// 邀请有礼角标倒计时
...
@@ -79,7 +78,6 @@ export default class MapScene extends Scene {
...
@@ -79,7 +78,6 @@ export default class MapScene extends Scene {
this
.
sendInvite
();
this
.
sendInvite
();
this
.
updateMyInfo
();
this
.
updateMyInfo
();
this
.
updateAdData
();
this
.
updateAdData
();
...
@@ -90,7 +88,7 @@ export default class MapScene extends Scene {
...
@@ -90,7 +88,7 @@ export default class MapScene extends Scene {
// PanelCtrl.instance.show('failed');
// PanelCtrl.instance.show('failed');
},
1000
);
},
1000
);
if
(
getBgOn
()
&&
MapScene
[
'firstPlayBgTag'
]
==
true
)
{
if
(
getBgOn
()
&&
MapScene
[
'firstPlayBgTag'
]
==
true
)
{
playBg
();
playBg
();
}
}
...
@@ -107,12 +105,12 @@ export default class MapScene extends Scene {
...
@@ -107,12 +105,12 @@ export default class MapScene extends Scene {
const
oldTimerStr2
=
localStorage
.
getItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
);
const
oldTimerStr2
=
localStorage
.
getItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
);
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
let
{
noticeAdvert
}
=
hc_advert
;
let
{
noticeAdvert
}
=
hc_advert
;
if
(
noticeAdvert
==
null
)
{
if
(
noticeAdvert
==
null
)
{
noticeAdvert
=
{
enable
:
false
}
noticeAdvert
=
{
enable
:
false
}
}
}
if
(
noticeAdvert
&&
noticeAdvert
.
enable
&&
nowTimerStr2
!=
oldTimerStr2
)
{
if
(
noticeAdvert
&&
noticeAdvert
.
enable
&&
nowTimerStr2
!=
oldTimerStr2
)
{
// if (!adTag) {
// if (!adTag) {
panels
.
push
(
'ad'
);
panels
.
push
(
'ad'
);
// adTag = true;
// adTag = true;
...
@@ -120,16 +118,16 @@ export default class MapScene extends Scene {
...
@@ -120,16 +118,16 @@ export default class MapScene extends Scene {
localStorage
.
setItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr2
);
localStorage
.
setItem
(
'nowTimer2Str'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr2
);
}
}
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
.
todaySigned
==
0
&&
oldTimerStr
!=
nowTimerStr
)
{
if
(
signInfoVO
.
todaySigned
==
0
&&
oldTimerStr
!=
nowTimerStr
)
{
panels
.
push
(
'sign'
);
panels
.
push
(
'sign'
);
localStorage
.
setItem
(
'nowTimerStr'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr
);
localStorage
.
setItem
(
'nowTimerStr'
+
window
[
'CFG'
].
consumerId
,
nowTimerStr
);
}
}
}
}
this
.
updateSign
();
this
.
updateSign
();
if
(
!
readCache
()
&&
getHomeData
().
levels
.
length
<=
0
)
{
//引导
if
(
!
readCache
()
&&
getHomeData
().
levels
.
length
<=
0
)
{
//引导
const
guide
=
new
GuideCon
(()
=>
{
const
guide
=
new
GuideCon
(()
=>
{
PanelCtrl
.
instance
.
showPanels
(
panels
);
PanelCtrl
.
instance
.
showPanels
(
panels
);
...
@@ -171,18 +169,18 @@ export default class MapScene extends Scene {
...
@@ -171,18 +169,18 @@ export default class MapScene extends Scene {
let
target
;
let
target
;
const
homeData
=
getHomeData
();
const
homeData
=
getHomeData
();
if
(
homeData
.
levels
.
length
==
0
)
{
if
(
homeData
.
levels
.
length
==
0
)
{
target
=
1
;
target
=
1
;
}
else
if
(
homeData
.
levels
.
length
==
window
[
'total_level'
])
{
}
else
if
(
homeData
.
levels
.
length
==
window
[
'total_level'
])
{
target
=
window
[
'total_level'
]
+
1
;
target
=
window
[
'total_level'
]
+
1
;
}
else
{
}
else
{
target
=
homeData
.
levels
.
length
+
1
;
target
=
homeData
.
levels
.
length
+
1
;
}
}
for
(
const
key
in
MapScene
.
iconHash
)
{
for
(
const
key
in
MapScene
.
iconHash
)
{
const
levelOrder
=
parseInt
(
key
);
const
levelOrder
=
parseInt
(
key
);
const
element
=
MapScene
.
iconHash
[
key
];
const
element
=
MapScene
.
iconHash
[
key
];
element
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
element
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
if
(
(
levelOrder
>
(
homeData
.
levels
.
length
+
1
)
&&
levelOrder
>
1
)
(
levelOrder
>
(
homeData
.
levels
.
length
+
1
)
&&
levelOrder
>
1
)
||
(
levelOrder
>
window
[
'last_level'
])
||
(
levelOrder
>
window
[
'last_level'
])
)
{
)
{
...
@@ -194,7 +192,7 @@ export default class MapScene extends Scene {
...
@@ -194,7 +192,7 @@ export default class MapScene extends Scene {
},
this
);
},
this
);
}
}
if
(
homeData
.
levels
.
length
<
window
[
'total_level'
])
{
if
(
homeData
.
levels
.
length
<
window
[
'total_level'
])
{
const
targetIcon
=
MapScene
.
iconHash
[
target
];
const
targetIcon
=
MapScene
.
iconHash
[
target
];
const
light
=
RES
.
getRes
(
'lightani_png'
);
const
light
=
RES
.
getRes
(
'lightani_png'
);
...
@@ -207,7 +205,7 @@ export default class MapScene extends Scene {
...
@@ -207,7 +205,7 @@ export default class MapScene extends Scene {
pic
.
anchorOffsetY
=
61
;
pic
.
anchorOffsetY
=
61
;
// pic.x = 50 - 2;
// pic.x = 50 - 2;
// pic.y = 37 + 10;
// pic.y = 37 + 10;
egret
.
Tween
.
get
(
pic
,
{
loop
:
true
}).
to
({
scaleX
:
2
,
scaleY
:
2
,
alpha
:
0
},
1000
).
wait
(
1000
);
egret
.
Tween
.
get
(
pic
,
{
loop
:
true
}).
to
({
scaleX
:
2
,
scaleY
:
2
,
alpha
:
0
},
1000
).
wait
(
1000
);
this
[
'pic'
]
=
pic
;
this
[
'pic'
]
=
pic
;
}
}
...
@@ -217,8 +215,8 @@ export default class MapScene extends Scene {
...
@@ -217,8 +215,8 @@ export default class MapScene extends Scene {
this
.
showLog
();
this
.
showLog
();
this
.
updateBox
();
this
.
updateBox
();
if
(
data
.
level
)
{
if
(
data
.
level
)
{
if
(
homeData
.
remainEnargy
==
0
)
if
(
homeData
.
remainEnargy
==
0
)
PanelCtrl
.
instance
.
show
(
'bloodPanel'
)
PanelCtrl
.
instance
.
show
(
'bloodPanel'
)
else
else
...
@@ -226,8 +224,8 @@ export default class MapScene extends Scene {
...
@@ -226,8 +224,8 @@ export default class MapScene extends Scene {
}
}
this
.
stage
.
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
stage
.
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
!
MapScene
[
'firstPlayBgTag'
])
{
if
(
!
MapScene
[
'firstPlayBgTag'
])
{
if
(
getBgOn
())
{
if
(
getBgOn
())
{
playBg
();
playBg
();
}
}
MapScene
[
'firstPlayBgTag'
]
=
true
;
MapScene
[
'firstPlayBgTag'
]
=
true
;
...
@@ -235,7 +233,7 @@ export default class MapScene extends Scene {
...
@@ -235,7 +233,7 @@ export default class MapScene extends Scene {
},
this
);
},
this
);
let
lastOrder
=
homeData
.
levels
.
length
+
1
;
let
lastOrder
=
homeData
.
levels
.
length
+
1
;
if
(
homeData
.
levels
.
length
>=
window
[
'total_level'
])
if
(
homeData
.
levels
.
length
>=
window
[
'total_level'
])
lastOrder
=
window
[
'total_level'
];
lastOrder
=
window
[
'total_level'
];
this
.
scroll
.
viewport
.
scrollV
=
this
.
getScrollV
(
lastOrder
,
this
.
stage
.
stageHeight
);
this
.
scroll
.
viewport
.
scrollV
=
this
.
getScrollV
(
lastOrder
,
this
.
stage
.
stageHeight
);
// console.warn(this.getScrollV(lastOrder, this.stage.stageHeight))
// console.warn(this.getScrollV(lastOrder, this.stage.stageHeight))
...
@@ -245,14 +243,14 @@ export default class MapScene extends Scene {
...
@@ -245,14 +243,14 @@ export default class MapScene extends Scene {
Promise
.
all
([
Promise
.
all
([
RES
.
getResAsync
(
`
${
key
}
_json`
),
RES
.
getResAsync
(
`
${
key
}
_json`
),
RES
.
getResAsync
(
`
${
key
}
_png`
)]);
RES
.
getResAsync
(
`
${
key
}
_png`
)]);
}
catch
(
error
)
{
}
catch
(
error
)
{
}
}
}
}
// 添加图标
// 添加图标
private
addIcon
(){
private
addIcon
()
{
this
.
icons
=
{
this
.
icons
=
{
"scratchIcon"
:
new
ScratchIcon
(
"scratchIcon"
,
this
[
"scratchGroup"
],
this
[
"scratchBtn"
],
this
[
"scratchTipsBg"
],
this
[
"scratchTips"
]),
"scratchIcon"
:
new
ScratchIcon
(
"scratchIcon"
,
this
[
"scratchGroup"
],
this
[
"scratchBtn"
],
this
[
"scratchTipsBg"
],
this
[
"scratchTips"
]),
"turntableIcon"
:
new
TurntableIcon
(
"turntableIcon"
,
this
[
"turnTableGroup"
],
this
[
"turnTableBtn"
],
this
[
"turnTableTipsBg"
],
this
[
"turnTableTips"
])
"turntableIcon"
:
new
TurntableIcon
(
"turntableIcon"
,
this
[
"turnTableGroup"
],
this
[
"turnTableBtn"
],
this
[
"turnTableTipsBg"
],
this
[
"turnTableTips"
])
...
@@ -264,20 +262,20 @@ export default class MapScene extends Scene {
...
@@ -264,20 +262,20 @@ export default class MapScene extends Scene {
this
[
'nameTxt'
].
text
=
''
;
this
[
'nameTxt'
].
text
=
''
;
// NetManager.ins.hc_userInfo(() => {
// NetManager.ins.hc_userInfo(() => {
this
[
'avatar'
].
visible
=
true
;
this
[
'avatar'
].
visible
=
true
;
const
{
data
}
=
DataManager
.
ins
.
getData
(
'hc_userInfo'
);
const
{
data
}
=
DataManager
.
ins
.
getData
(
'hc_userInfo'
);
if
(
data
)
if
(
data
)
this
[
'avatar'
].
source
=
data
.
avatar
||
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
this
[
'avatar'
].
source
=
data
.
avatar
||
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
else
else
this
[
'avatar'
].
source
=
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
this
[
'avatar'
].
source
=
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
if
(
data
&&
data
.
nickname
)
if
(
data
&&
data
.
nickname
)
this
[
'nameTxt'
].
text
=
getNick
(
data
.
nickname
);
this
[
'nameTxt'
].
text
=
getNick
(
data
.
nickname
);
// });
// });
}
}
updateSign
()
{
updateSign
()
{
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
if
(
signInfoVO
.
continueDay
<
7
)
{
//表示明天还可以签到
this
[
'sign_s1'
].
visible
=
signInfoVO
.
todaySigned
==
0
;
this
[
'sign_s1'
].
visible
=
signInfoVO
.
todaySigned
==
0
;
this
[
'sign_s2'
].
visible
=
!
this
[
'sign_s1'
].
visible
;
this
[
'sign_s2'
].
visible
=
!
this
[
'sign_s1'
].
visible
;
}
else
{
}
else
{
...
@@ -287,14 +285,14 @@ export default class MapScene extends Scene {
...
@@ -287,14 +285,14 @@ export default class MapScene extends Scene {
updateAdData
()
{
updateAdData
()
{
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
const
hc_advert
=
DataManager
.
ins
.
getData
(
'hc_advert'
).
data
;
let
{
mapAdvert
}
=
hc_advert
;
let
{
mapAdvert
}
=
hc_advert
;
if
(
mapAdvert
==
null
)
if
(
mapAdvert
==
null
)
mapAdvert
=
{
enable
:
false
,
advertList
:
[]
}
mapAdvert
=
{
enable
:
false
,
advertList
:
[]
}
this
[
'adBtn'
].
visible
=
mapAdvert
.
enable
;
this
[
'adBtn'
].
visible
=
mapAdvert
.
enable
;
if
(
mapAdvert
.
enable
)
{
if
(
mapAdvert
.
enable
)
{
let
result
;
let
result
;
result
=
mapAdvert
.
advertList
;
result
=
mapAdvert
.
advertList
;
if
(
Array
.
isArray
(
mapAdvert
.
advertList
))
{
if
(
Array
.
isArray
(
mapAdvert
.
advertList
))
{
const
index
=
Math
.
floor
(
mapAdvert
.
advertList
.
length
*
Math
.
random
());
const
index
=
Math
.
floor
(
mapAdvert
.
advertList
.
length
*
Math
.
random
());
result
=
mapAdvert
.
advertList
[
index
];
result
=
mapAdvert
.
advertList
[
index
];
}
}
...
@@ -307,7 +305,7 @@ export default class MapScene extends Scene {
...
@@ -307,7 +305,7 @@ export default class MapScene extends Scene {
destroy
()
{
destroy
()
{
super
.
destroy
();
super
.
destroy
();
if
(
this
[
'pic'
])
if
(
this
[
'pic'
])
egret
.
Tween
.
removeTweens
(
this
[
'pic'
]);
egret
.
Tween
.
removeTweens
(
this
[
'pic'
]);
if
(
this
.
inviteTimer
)
{
if
(
this
.
inviteTimer
)
{
...
@@ -318,11 +316,11 @@ export default class MapScene extends Scene {
...
@@ -318,11 +316,11 @@ export default class MapScene extends Scene {
getScrollV
(
lastOrder
,
stageHeight
)
{
getScrollV
(
lastOrder
,
stageHeight
)
{
// lastOrder = 69;
// lastOrder = 69;
if
(
lastOrder
<=
7
)
{
//顶部的1-7关
if
(
lastOrder
<=
7
)
{
//顶部的1-7关
return
this
.
getScrollV1
(
lastOrder
,
stageHeight
);
return
this
.
getScrollV1
(
lastOrder
,
stageHeight
);
}
}
if
(
lastOrder
>=
window
[
'total_level'
]
-
10
)
{
//底部的60-70关 70-10
if
(
lastOrder
>=
window
[
'total_level'
]
-
10
)
{
//底部的60-70关 70-10
return
this
.
getScrollV2
(
lastOrder
,
stageHeight
);
return
this
.
getScrollV2
(
lastOrder
,
stageHeight
);
}
}
//中部的4个循环*13 8~59
//中部的4个循环*13 8~59
...
@@ -333,7 +331,7 @@ export default class MapScene extends Scene {
...
@@ -333,7 +331,7 @@ export default class MapScene extends Scene {
const
ylist
=
[
26
,
158
,
302
,
435
,
547
,
674
,
821
,
897
,
969
,
1072
,
1137
,
1254
,
1367
];
const
ylist
=
[
26
,
158
,
302
,
435
,
547
,
674
,
821
,
897
,
969
,
1072
,
1137
,
1254
,
1367
];
const
y0
=
this
.
_data
.
top
.
height
;
//顶部的高度
const
y0
=
this
.
_data
.
top
.
height
;
//顶部的高度
let
a0
=
(
lastOrder
-
MapTopPart
.
LEVEL_NUMS
)
%
MapRpeatPart
.
LEVEL_NUMS
;
//减去7后的order 8-7 = 1
let
a0
=
(
lastOrder
-
MapTopPart
.
LEVEL_NUMS
)
%
MapRpeatPart
.
LEVEL_NUMS
;
//减去7后的order 8-7 = 1
if
(
a0
==
0
)
a0
=
MapRpeatPart
.
LEVEL_NUMS
if
(
a0
==
0
)
a0
=
MapRpeatPart
.
LEVEL_NUMS
const
a1
=
Math
.
ceil
((
lastOrder
-
MapTopPart
.
LEVEL_NUMS
)
/
MapRpeatPart
.
LEVEL_NUMS
)
-
1
;
//当前地图repeat的顺序
const
a1
=
Math
.
ceil
((
lastOrder
-
MapTopPart
.
LEVEL_NUMS
)
/
MapRpeatPart
.
LEVEL_NUMS
)
-
1
;
//当前地图repeat的顺序
const
y1
=
ylist
[
a0
-
1
];
const
y1
=
ylist
[
a0
-
1
];
const
y2
=
y0
+
y1
+
a1
*
this
.
_data
.
list
[
0
].
height
;
const
y2
=
y0
+
y1
+
a1
*
this
.
_data
.
list
[
0
].
height
;
...
@@ -343,7 +341,7 @@ export default class MapScene extends Scene {
...
@@ -343,7 +341,7 @@ export default class MapScene extends Scene {
getScrollV1
(
lastOrder
,
stageHeight
)
{
getScrollV1
(
lastOrder
,
stageHeight
)
{
const
ylist
=
[
492
,
550.35
,
744
,
803
,
810
,
975
,
1089.69
].
map
(
i
=>
i
+
40
);
const
ylist
=
[
492
,
550.35
,
744
,
803
,
810
,
975
,
1089.69
].
map
(
i
=>
i
+
40
);
const
targetY
=
ylist
[
lastOrder
-
1
]
-
stageHeight
/
2
;
const
targetY
=
ylist
[
lastOrder
-
1
]
-
stageHeight
/
2
;
if
(
targetY
<=
0
)
return
0
if
(
targetY
<=
0
)
return
0
return
targetY
;
return
targetY
;
}
}
...
@@ -355,7 +353,7 @@ export default class MapScene extends Scene {
...
@@ -355,7 +353,7 @@ export default class MapScene extends Scene {
+
this
.
_data
.
bottom
.
height
;
+
this
.
_data
.
bottom
.
height
;
const
ylist
=
[
44
,
148.44
,
331
,
403
,
513
,
660
,
829.69
,
949.69
,
1052.69
,
1148.69
,
1209.69
].
map
(
i
=>
i
+
40
);
const
ylist
=
[
44
,
148.44
,
331
,
403
,
513
,
660
,
829.69
,
949.69
,
1052.69
,
1148.69
,
1209.69
].
map
(
i
=>
i
+
40
);
const
targetY
=
y0
+
ylist
[
lastOrder
-
1
]
-
stageHeight
/
2
;
const
targetY
=
y0
+
ylist
[
lastOrder
-
1
]
-
stageHeight
/
2
;
if
(
targetY
>=
(
totalHeight
-
stageHeight
))
return
totalHeight
-
stageHeight
if
(
targetY
>=
(
totalHeight
-
stageHeight
))
return
totalHeight
-
stageHeight
return
targetY
;
return
targetY
;
}
}
...
@@ -377,7 +375,7 @@ export default class MapScene extends Scene {
...
@@ -377,7 +375,7 @@ export default class MapScene extends Scene {
updateBox
()
{
updateBox
()
{
const
homeData
=
getHomeData
();
const
homeData
=
getHomeData
();
if
(
homeData
.
canReceiveTreasureBoxNum
<=
0
)
if
(
homeData
.
canReceiveTreasureBoxNum
<=
0
)
setGray
(
this
[
'box'
]);
setGray
(
this
[
'box'
]);
this
[
'boxiconWrapper'
].
visible
=
homeData
.
canReceiveTreasureBoxNum
>
0
;
this
[
'boxiconWrapper'
].
visible
=
homeData
.
canReceiveTreasureBoxNum
>
0
;
this
[
'totalStarTxt'
].
text
=
`
${
homeData
.
totalStars
}
/
${
homeData
.
nextRangeStarsNum
}
`
;
this
[
'totalStarTxt'
].
text
=
`
${
homeData
.
totalStars
}
/
${
homeData
.
nextRangeStarsNum
}
`
;
...
@@ -399,7 +397,7 @@ export default class MapScene extends Scene {
...
@@ -399,7 +397,7 @@ export default class MapScene extends Scene {
parent
.
addChild
(
avatar
);
parent
.
addChild
(
avatar
);
avatar
.
x
=
item
.
x
+
10
;
avatar
.
x
=
item
.
x
+
10
;
avatar
.
y
=
item
.
y
-
avatar
.
height
-
30
;
avatar
.
y
=
item
.
y
-
avatar
.
height
-
30
;
if
(
!
MapScene
.
starHash
[
level
].
visible
)
{
if
(
!
MapScene
.
starHash
[
level
].
visible
)
{
avatar
.
y
=
item
.
y
-
avatar
.
height
;
avatar
.
y
=
item
.
y
-
avatar
.
height
;
}
}
}
}
...
@@ -407,11 +405,11 @@ export default class MapScene extends Scene {
...
@@ -407,11 +405,11 @@ export default class MapScene extends Scene {
updateFriends
()
{
updateFriends
()
{
NetManager
.
ins
.
hc_mapRank
(()
=>
{
NetManager
.
ins
.
hc_mapRank
(()
=>
{
const
hc_mapRank
=
DataManager
.
ins
.
getData
(
'hc_mapRank'
).
data
;
const
hc_mapRank
=
DataManager
.
ins
.
getData
(
'hc_mapRank'
).
data
;
if
(
!
hc_mapRank
)
return
;
if
(
!
hc_mapRank
)
return
;
const
{
data
}
=
DataManager
.
ins
.
getData
(
'hc_userInfo'
);
const
{
data
}
=
DataManager
.
ins
.
getData
(
'hc_userInfo'
);
hc_mapRank
.
forEach
((
ele
)
=>
{
hc_mapRank
.
forEach
((
ele
)
=>
{
if
(
ele
.
levelNum
==
getHomeData
().
levels
.
length
+
1
)
{
if
(
ele
.
levelNum
==
getHomeData
().
levels
.
length
+
1
)
{
if
(
data
==
null
)
if
(
data
==
null
)
ele
.
rank
[
0
].
avatar
=
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
ele
.
rank
[
0
].
avatar
=
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
else
else
ele
.
rank
[
0
].
avatar
=
data
.
avatar
||
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
ele
.
rank
[
0
].
avatar
=
data
.
avatar
||
"http://yun.duiba.com.cn/db_games/default_avatar.png"
;
...
@@ -426,24 +424,24 @@ export default class MapScene extends Scene {
...
@@ -426,24 +424,24 @@ export default class MapScene extends Scene {
this
[
'goldTxt'
].
text
=
`
${
homeData
.
wealth
}
`
;
this
[
'goldTxt'
].
text
=
`
${
homeData
.
wealth
}
`
;
for
(
let
j
=
1
;
j
<
window
[
'total_level'
];
j
++
)
{
for
(
let
j
=
1
;
j
<
window
[
'total_level'
];
j
++
)
{
this
.
disableIcon
(
j
+
1
);
this
.
disableIcon
(
j
+
1
);
}
}
for
(
let
i
=
0
;
i
<
homeData
.
levels
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
homeData
.
levels
.
length
;
i
++
)
{
const
level
=
homeData
.
levels
[
i
];
const
level
=
homeData
.
levels
[
i
];
const
star
=
MapScene
.
starHash
[
i
+
1
];
const
star
=
MapScene
.
starHash
[
i
+
1
];
if
(
level
)
{
if
(
level
)
{
star
.
setStar
(
level
.
stars
);
star
.
setStar
(
level
.
stars
);
this
.
enableIcon
(
level
.
levelNum
);
this
.
enableIcon
(
level
.
levelNum
);
}
else
{
}
else
{
this
.
disableIcon
(
level
.
levelNum
);
this
.
disableIcon
(
level
.
levelNum
);
}
}
}
}
if
(
homeData
.
levels
.
length
==
0
)
{
if
(
homeData
.
levels
.
length
==
0
)
{
const
star
=
MapScene
.
starHash
[
1
];
const
star
=
MapScene
.
starHash
[
1
];
star
.
setStar
(
0
);
star
.
setStar
(
0
);
this
.
enableIcon
(
1
);
this
.
enableIcon
(
1
);
}
else
if
(
homeData
.
levels
.
length
==
window
[
'last_level'
])
{
}
else
if
(
homeData
.
levels
.
length
==
window
[
'last_level'
])
{
}
else
{
}
else
{
const
star
=
MapScene
.
starHash
[
homeData
.
levels
.
length
+
1
];
const
star
=
MapScene
.
starHash
[
homeData
.
levels
.
length
+
1
];
...
@@ -457,11 +455,11 @@ export default class MapScene extends Scene {
...
@@ -457,11 +455,11 @@ export default class MapScene extends Scene {
updateTimerView
()
{
updateTimerView
()
{
//更新倒计时
//更新倒计时
if
(
this
.
_countDown
==
null
)
{
if
(
this
.
_countDown
==
null
)
{
this
.
_countDown
=
new
CountDown
(
this
[
'countdown'
]);
this
.
_countDown
=
new
CountDown
(
this
[
'countdown'
]);
}
}
const
data
=
getHomeData
();
const
data
=
getHomeData
();
if
(
data
.
remainEnargy
>=
BLOOD_NUMS_MAX
)
{
//满了
if
(
data
.
remainEnargy
>=
BLOOD_NUMS_MAX
)
{
//满了
this
.
_countDown
.
stop
();
this
.
_countDown
.
stop
();
this
[
'fullTxt'
].
visible
=
true
;
this
[
'fullTxt'
].
visible
=
true
;
...
@@ -481,28 +479,28 @@ export default class MapScene extends Scene {
...
@@ -481,28 +479,28 @@ export default class MapScene extends Scene {
onTap_inviteBtn
()
{
onTap_inviteBtn
()
{
NetManager
.
ins
.
getInviteInfo
((
success
,
res
)
=>
{
NetManager
.
ins
.
getInviteInfo
((
success
,
res
)
=>
{
if
(
!
success
||
!
res
.
data
)
{
if
(
!
success
||
!
res
.
data
)
{
return
;
return
;
}
}
const
flag
=
res
.
data
.
completeFlag
;
const
flag
=
res
.
data
.
completeFlag
;
switch
(
true
)
{
switch
(
true
)
{
case
(
flag
==
0
):
// 未完成
case
(
flag
==
0
):
// 未完成
this
.
loadsvga
(
res
);
this
.
loadsvga
(
res
);
break
;
break
;
case
(
flag
==
1
):
// 完成未开奖 待领奖 请求领奖接口
case
(
flag
==
1
):
// 完成未开奖 待领奖 请求领奖接口
try
{
try
{
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
warn
(
error
)
console
.
warn
(
error
)
}
}
NetManager
.
ins
.
acceptInvitationPrize
((
success
,
res
)
=>
{
NetManager
.
ins
.
acceptInvitationPrize
((
success
,
res
)
=>
{
if
(
!
success
)
{
if
(
!
success
)
{
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看吧!"
);
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看吧!"
);
GDispatcher
.
dispatchEvent
(
"getInviteInfo"
);
GDispatcher
.
dispatchEvent
(
"getInviteInfo"
);
return
;
return
;
}
}
// console.log(res.data);
// console.log(res.data);
if
(
res
.
data
.
completeFlag
==
3
)
{
if
(
res
.
data
.
completeFlag
==
3
)
{
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看吧!"
);
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看吧!"
);
GDispatcher
.
dispatchEvent
(
"getInviteInfo"
);
GDispatcher
.
dispatchEvent
(
"getInviteInfo"
);
}
else
{
}
else
{
...
@@ -517,7 +515,7 @@ export default class MapScene extends Scene {
...
@@ -517,7 +515,7 @@ export default class MapScene extends Scene {
case
(
flag
==
4
):
// 可以开启下一次发任务
case
(
flag
==
4
):
// 可以开启下一次发任务
NetManager
.
ins
.
acceptInvitationInfo
((
success
,
res
)
=>
{
NetManager
.
ins
.
acceptInvitationInfo
((
success
,
res
)
=>
{
if
(
!
success
)
{
if
(
!
success
)
{
return
;
return
;
}
}
this
.
loadsvga
(
res
);
this
.
loadsvga
(
res
);
...
@@ -533,7 +531,7 @@ export default class MapScene extends Scene {
...
@@ -533,7 +531,7 @@ export default class MapScene extends Scene {
}
}
loadsvga
(
res
)
{
loadsvga
(
res
)
{
if
(
MapScene
[
'svga'
])
{
if
(
MapScene
[
'svga'
])
{
const
mv
=
MapScene
[
'svga'
]
const
mv
=
MapScene
[
'svga'
]
mv
.
gotoAndStop
(
1
);
mv
.
gotoAndStop
(
1
);
res
.
data
.
svga
=
mv
;
res
.
data
.
svga
=
mv
;
...
@@ -558,14 +556,14 @@ export default class MapScene extends Scene {
...
@@ -558,14 +556,14 @@ export default class MapScene extends Scene {
*/
*/
getInviteInfo
()
{
getInviteInfo
()
{
NetManager
.
ins
.
getInviteInfo
((
success
,
res
)
=>
{
NetManager
.
ins
.
getInviteInfo
((
success
,
res
)
=>
{
if
(
!
success
||
!
res
.
data
)
{
if
(
!
success
||
!
res
.
data
)
{
return
;
return
;
}
}
const
flag
=
res
.
data
.
completeFlag
;
const
flag
=
res
.
data
.
completeFlag
;
if
(
this
.
inviteTimer
)
{
if
(
this
.
inviteTimer
)
{
this
.
inviteTimer
.
stop
();
this
.
inviteTimer
.
stop
();
}
}
switch
(
true
)
{
switch
(
true
)
{
case
(
flag
==
0
):
// 未完成 显示倒计时
case
(
flag
==
0
):
// 未完成 显示倒计时
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteTipsBg"
].
visible
=
true
;
this
[
"inviteTipsBg"
].
visible
=
true
;
...
@@ -612,7 +610,7 @@ export default class MapScene extends Scene {
...
@@ -612,7 +610,7 @@ export default class MapScene extends Scene {
// 倒计时
// 倒计时
private
inviteCutTimer
()
{
private
inviteCutTimer
()
{
const
timer
=
this
.
convertTime
(
this
.
cutTime
-=
1000
);
const
timer
=
this
.
convertTime
(
this
.
cutTime
-=
1000
);
if
(
timer
.
hour
===
"00"
if
(
timer
.
hour
===
"00"
&&
timer
.
min
===
"00"
&&
timer
.
min
===
"00"
&&
timer
.
sec
===
"00"
)
{
&&
timer
.
sec
===
"00"
)
{
this
.
inviteTimer
.
stop
();
this
.
inviteTimer
.
stop
();
...
@@ -699,9 +697,9 @@ export default class MapScene extends Scene {
...
@@ -699,9 +697,9 @@ export default class MapScene extends Scene {
async
onTap_boxLayer
()
{
async
onTap_boxLayer
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
1
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
1
));
const
data
=
getHomeData
();
const
data
=
getHomeData
();
if
(
data
.
canReceiveTreasureBoxNum
>
0
)
{
if
(
data
.
canReceiveTreasureBoxNum
>
0
)
{
this
[
'boxLayer'
].
visible
=
true
;
this
[
'boxLayer'
].
visible
=
true
;
if
(
!
this
.
_mc
)
if
(
!
this
.
_mc
)
this
.
_mc
=
await
loadSvga
(
getResPath
()
+
'resource/assets/svgas/box.svga'
,
this
[
'boxani'
]);
this
.
_mc
=
await
loadSvga
(
getResPath
()
+
'resource/assets/svgas/box.svga'
,
this
[
'boxani'
]);
this
.
_mc
.
stop
();
this
.
_mc
.
stop
();
this
.
_mc
.
gotoAndStop
(
1
);
this
.
_mc
.
gotoAndStop
(
1
);
...
@@ -713,18 +711,18 @@ export default class MapScene extends Scene {
...
@@ -713,18 +711,18 @@ export default class MapScene extends Scene {
await
wait
(
50
);
await
wait
(
50
);
this
.
_mc
.
visible
=
true
;
this
.
_mc
.
visible
=
true
;
const
a
=
100
,
b
=
10
;
const
a
=
100
,
b
=
10
;
egret
.
Tween
.
get
(
this
.
_mc
,
{
loop
:
true
}).
set
({
rotation
:
b
})
egret
.
Tween
.
get
(
this
.
_mc
,
{
loop
:
true
}).
set
({
rotation
:
b
})
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
-
b
},
a
).
to
({
rotation
:
b
},
a
)
.
to
({
rotation
:
0
},
a
/
2
)
.
to
({
rotation
:
0
},
a
/
2
)
.
wait
(
1000
);
.
wait
(
1000
);
}
}
}
}
async
playAni
()
{
async
playAni
()
{
if
(
this
.
_mc
)
{
if
(
this
.
_mc
)
{
egret
.
Tween
.
removeTweens
(
this
.
_mc
);
egret
.
Tween
.
removeTweens
(
this
.
_mc
);
this
.
_mc
.
gotoAndPlay
(
1
,
true
);
this
.
_mc
.
gotoAndPlay
(
1
,
true
);
await
this
.
onPlaySTOP
();
await
this
.
onPlaySTOP
();
...
@@ -735,7 +733,7 @@ export default class MapScene extends Scene {
...
@@ -735,7 +733,7 @@ export default class MapScene extends Scene {
async
onPlaySTOP
()
{
async
onPlaySTOP
()
{
return
new
Promise
((
r
)
=>
{
return
new
Promise
((
r
)
=>
{
const
func
=
()
=>
{
const
func
=
()
=>
{
if
(
this
.
_mc
.
currentFrame
>=
100
)
{
if
(
this
.
_mc
.
currentFrame
>=
100
)
{
this
.
_mc
.
removeEventListener
(
egret
.
Event
.
ENTER_FRAME
,
func
,
this
);
this
.
_mc
.
removeEventListener
(
egret
.
Event
.
ENTER_FRAME
,
func
,
this
);
this
.
_mc
.
stop
();
this
.
_mc
.
stop
();
r
();
r
();
...
@@ -754,14 +752,14 @@ export default class MapScene extends Scene {
...
@@ -754,14 +752,14 @@ export default class MapScene extends Scene {
this
[
'boxani'
].
touchChildren
=
false
;
this
[
'boxani'
].
touchChildren
=
false
;
await
this
.
playAni
();
await
this
.
playAni
();
try
{
try
{
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
warn
(
error
)
console
.
warn
(
error
)
}
}
NetManager
.
ins
.
hc_openTreasureBox
((
success
)
=>
{
NetManager
.
ins
.
hc_openTreasureBox
((
success
)
=>
{
this
[
'boxani'
].
touchEnabled
=
true
;
this
[
'boxani'
].
touchEnabled
=
true
;
this
[
'boxani'
].
touchChildren
=
true
;
this
[
'boxani'
].
touchChildren
=
true
;
if
(
success
)
{
if
(
success
)
{
const
boxdata
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
const
boxdata
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
const
homeData
=
DataManager
.
ins
.
getData
(
'hc_home'
).
data
;
const
homeData
=
DataManager
.
ins
.
getData
(
'hc_home'
).
data
;
homeData
.
canReceiveTreasureBoxNum
=
boxdata
.
canReceiveTreasureBoxNum
;
homeData
.
canReceiveTreasureBoxNum
=
boxdata
.
canReceiveTreasureBoxNum
;
...
@@ -771,19 +769,19 @@ export default class MapScene extends Scene {
...
@@ -771,19 +769,19 @@ export default class MapScene extends Scene {
this
.
updateBox
();
this
.
updateBox
();
const
data
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
const
data
=
DataManager
.
ins
.
getData
(
'hc_openTreasureBox'
).
data
;
NetManager
.
ins
.
getPlugOrderStatus
((
s
)
=>
{
NetManager
.
ins
.
getPlugOrderStatus
((
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
const
data
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
);
const
data
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
);
//区分奖品
//区分奖品
if
(
data
.
lottery
&&
data
.
lottery
.
type
!=
'thanks'
)
{
if
(
data
.
lottery
&&
data
.
lottery
.
type
!=
'thanks'
)
{
PanelCtrl
.
instance
.
show
(
'box'
);
PanelCtrl
.
instance
.
show
(
'box'
);
}
else
{
showToast
(
'哎呀!奖励与您擦肩而过!快继续闯关!'
);
}
}
else
{
}
else
{
showToast
(
'哎呀!奖励与您擦肩而过!快继续闯关!'
);
showToast
(
'哎呀!奖励与您擦肩而过!快继续闯关!'
);
}
}
}
else
{
},
showToast
(
'哎呀!奖励与您擦肩而过!快继续闯关!'
);
}
},
data
.
orderNum
,
data
.
orderNum
,
()
=>
{
()
=>
{
return
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
0
return
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
0
...
@@ -817,7 +815,7 @@ export default class MapScene extends Scene {
...
@@ -817,7 +815,7 @@ export default class MapScene extends Scene {
onTap_bloodBtn
()
{
onTap_bloodBtn
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
2
));
if
(
getHomeData
().
remainEnargy
>
0
)
if
(
getHomeData
().
remainEnargy
>
0
)
PanelCtrl
.
instance
.
show
(
'bloodPanel'
)
PanelCtrl
.
instance
.
show
(
'bloodPanel'
)
else
else
PanelCtrl
.
instance
.
show
(
'blood2Panel'
)
PanelCtrl
.
instance
.
show
(
'blood2Panel'
)
...
@@ -840,9 +838,9 @@ export default class MapScene extends Scene {
...
@@ -840,9 +838,9 @@ export default class MapScene extends Scene {
}
}
}
}
export
const
getNick
=
(
nickname
,
max
=
4
)
=>
{
export
const
getNick
=
(
nickname
,
max
=
4
)
=>
{
if
(
!
nickname
)
return
nickname
;
if
(
!
nickname
)
return
nickname
;
if
(
nickname
.
length
>
max
)
if
(
nickname
.
length
>
max
)
return
nickname
.
slice
(
0
,
max
)
+
'...'
;
return
nickname
.
slice
(
0
,
max
)
+
'...'
;
return
nickname
;
return
nickname
;
}
}
\ No newline at end of file
egret/src/panels/ScratchPanel.ts
View file @
9fd657dd
...
@@ -220,8 +220,8 @@ class ScratchItem extends eui.ItemRenderer {
...
@@ -220,8 +220,8 @@ class ScratchItem extends eui.ItemRenderer {
if
(
!
success
)
{
if
(
!
success
)
{
return
;
return
;
}
}
let
shareCode
=
res
.
data
;
// 分享码
let
shareCode
2
=
res
.
data
;
// 分享码
CFG
.
wxShareLink
=
window
[
'h5URL'
]
+
"&shareCode
="
+
shareCode
;
// 分享链接
CFG
.
wxShareLink
=
window
[
'h5URL'
]
+
"&shareCode
2="
+
shareCode2
;
// 分享链接
CFG
.
wxShareTitle
=
'狮狮连萌超好玩~我已经玩到第一了!'
;
CFG
.
wxShareTitle
=
'狮狮连萌超好玩~我已经玩到第一了!'
;
CFG
.
wxShareDesc
=
'我在萌狮消消乐等你来挑战哦'
;
CFG
.
wxShareDesc
=
'我在萌狮消消乐等你来挑战哦'
;
CFG
.
wxShareImg
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg"
;
CFG
.
wxShareImg
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg"
;
...
@@ -230,7 +230,7 @@ class ScratchItem extends eui.ItemRenderer {
...
@@ -230,7 +230,7 @@ class ScratchItem extends eui.ItemRenderer {
window
[
"invokeWX"
]();
window
[
"invokeWX"
]();
}
else
{
//端内
}
else
{
//端内
this
.
data
.
wxShareTip
.
visible
=
false
;
this
.
data
.
wxShareTip
.
visible
=
false
;
window
[
"inviteShare"
](
shareCode
);
window
[
"inviteShare"
](
shareCode
2
);
}
}
},
this
.
data
.
scratchTaskId
);
},
this
.
data
.
scratchTaskId
);
},
this
);
},
this
);
...
...
egret/src/something/chapters/Chapter3.ts
View file @
9fd657dd
...
@@ -407,18 +407,99 @@ export const Chapters3: ChapterData[] = [
...
@@ -407,18 +407,99 @@ export const Chapters3: ChapterData[] = [
}
}
},
},
//51
//51
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
38
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
14
}]
},
starScores
:
[
8000
,
12000
,
24000
],
map
:
{
lattices
:
[
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
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
2
,
1
,
3
,
3
,
3
,
3
,
3
,
1
,
2
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
],
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
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
2
,
2
,
0
,
2
,
5
,
5
,
5
,
5
,
5
,
2
,
0
,
0
,
5
,
0
,
0
,
0
,
0
,
0
,
5
,
0
,
5
,
5
,
0
,
0
,
0
,
0
,
0
,
5
,
5
,
0
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
0
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
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
:
0
},
{
index
:
1
,
type
:
0
},
{
index
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
7
,
type
:
0
},
{
index
:
8
,
type
:
0
}]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
38
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
14
}]
},
starScores
:
[
8000
,
12000
,
24000
],
map
:
{
lattices
:
[
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
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
2
,
1
,
3
,
3
,
3
,
3
,
3
,
1
,
2
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
],
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
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
2
,
2
,
2
,
0
,
2
,
5
,
5
,
5
,
5
,
5
,
2
,
0
,
0
,
5
,
0
,
0
,
0
,
0
,
0
,
5
,
0
,
5
,
5
,
0
,
0
,
0
,
0
,
0
,
5
,
5
,
0
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
0
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
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
:
0
},
{
index
:
1
,
type
:
0
},
{
index
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
7
,
type
:
0
},
{
index
:
8
,
type
:
0
}]
}
},
//52
//52
{
baseElementTypes
:
[
0
,
1
,
2
,
4
,
3
],
bubbleProbability
:
0
,
stepCount
:
43
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
6
,
count
:
4
}]
},
starScores
:
[
6000
,
12000
,
21000
],
map
:
{
lattices
:
[
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
,
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
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
3
,
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
,
1
,
1
,
1
,
1
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
5
,
1
,
1
,
1
,
5
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
11
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
43
,
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
:
0
},
{
index
:
1
,
type
:
0
},
{
index
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
7
,
type
:
0
},
{
index
:
8
,
type
:
0
}]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
4
,
3
],
bubbleProbability
:
0
,
stepCount
:
43
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
6
,
count
:
4
}]
},
starScores
:
[
6000
,
12000
,
21000
],
map
:
{
lattices
:
[
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
,
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
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
3
,
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
,
1
,
1
,
1
,
1
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
5
,
1
,
1
,
1
,
5
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
11
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
43
,
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
:
0
},
{
index
:
1
,
type
:
0
},
{
index
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
7
,
type
:
0
},
{
index
:
8
,
type
:
0
}]
}
},
//53
//53
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
34
}]
},
starScores
:
[
6000
,
14000
,
24000
],
map
:
{
lattices
:
[
0
,
0
,
1
,
1
,
1
,
1
,
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
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
],
connectedLats
:
[],
elements
:
[
0
,
0
,
1
,
1
,
1
,
1
,
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
,
2
,
4
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
4
,
2
,
1
,
1
,
1
,
2
,
4
,
2
,
0
,
2
,
4
,
2
,
1
,
2
,
4
,
2
,
0
,
0
,
0
,
2
,
4
,
2
,
4
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
4
,
2
,
0
,
0
,
0
],
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
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
10
,
type
:
0
},
{
index
:
16
,
type
:
0
},
{
index
:
18
,
type
:
0
},
{
index
:
26
,
type
:
0
}]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
34
}]
},
starScores
:
[
6000
,
14000
,
24000
],
map
:
{
lattices
:
[
0
,
0
,
1
,
1
,
1
,
1
,
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
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
],
connectedLats
:
[],
elements
:
[
0
,
0
,
1
,
1
,
1
,
1
,
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
,
2
,
4
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
4
,
2
,
1
,
1
,
1
,
2
,
4
,
2
,
0
,
2
,
4
,
2
,
1
,
2
,
4
,
2
,
0
,
0
,
0
,
2
,
4
,
2
,
4
,
2
,
0
,
0
,
0
,
0
,
0
,
2
,
4
,
2
,
0
,
0
,
0
],
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
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
{
index
:
6
,
type
:
0
},
{
index
:
10
,
type
:
0
},
{
index
:
16
,
type
:
0
},
{
index
:
18
,
type
:
0
},
{
index
:
26
,
type
:
0
}]
}
},
//54
//54
{
baseElementTypes
:
[
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
26
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
28
}]
},
starScores
:
[],
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
0
,
3
,
3
,
3
,
3
,
3
,
0
,
1
,
1
,
0
,
3
,
3
,
3
,
3
,
3
,
0
,
1
,
0
,
0
,
1
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
1
,
0
,
0
],
connectedLats
:
[[
14
,
32
],
[
12
,
30
],
[
57
,
9
],
[
59
,
17
]],
elements
:
[
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
],
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
:
11
,
type
:
0
},
{
index
:
12
,
type
:
0
},
{
index
:
13
,
type
:
0
},
{
index
:
14
,
type
:
0
},
{
index
:
15
,
type
:
0
}]
}
},
{
baseElementTypes
:
[
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
26
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
28
}]
},
starScores
:
[
5000
,
12000
,
20000
],
map
:
{
lattices
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
0
,
3
,
3
,
3
,
3
,
3
,
0
,
1
,
1
,
0
,
3
,
3
,
3
,
3
,
3
,
0
,
1
,
0
,
0
,
1
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
1
,
0
,
0
],
connectedLats
:
[[
14
,
32
],
[
12
,
30
],
[
57
,
9
],
[
59
,
17
]],
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
,
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
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
],
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
:
11
,
type
:
0
},
{
index
:
12
,
type
:
0
},
{
index
:
13
,
type
:
0
},
{
index
:
14
,
type
:
0
},
{
index
:
15
,
type
:
0
}]
}
},
//55
//55
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
28
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
15
}]
},
starScores
:
[
6000
,
14000
,
25000
],
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
2
,
2
,
2
,
1
,
1
,
1
,
0
,
0
,
0
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
0
,
0
,
0
,
1
,
1
,
1
,
2
,
2
,
2
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
],
connectedLats
:
[[
18
,
36
],
[
19
,
37
],
[
11
,
38
],
[
63
,
16
],
[
64
,
17
],
[
56
,
24
],
[
42
,
69
],
[
43
,
61
],
[
44
,
62
]],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
2
,
2
,
2
,
1
,
1
,
1
,
0
,
0
,
0
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
0
,
0
,
0
,
1
,
1
,
1
,
2
,
2
,
2
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
],
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
:
[]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
28
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
15
}]
},
starScores
:
[
6000
,
14000
,
25000
],
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
2
,
2
,
2
,
1
,
1
,
1
,
0
,
0
,
0
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
0
,
0
,
0
,
1
,
1
,
1
,
2
,
2
,
2
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
],
connectedLats
:
[[
18
,
36
],
[
19
,
37
],
[
11
,
38
],
[
63
,
16
],
[
64
,
17
],
[
56
,
24
],
[
42
,
69
],
[
43
,
61
],
[
44
,
62
]],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
2
,
2
,
2
,
1
,
1
,
1
,
0
,
0
,
0
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
0
,
0
,
0
,
1
,
1
,
1
,
2
,
2
,
2
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
],
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
:
0
},
{
index
:
1
,
type
:
0
},
{
index
:
2
,
type
:
0
},
{
index
:
3
,
type
:
0
},
{
index
:
4
,
type
:
0
},
{
index
:
5
,
type
:
0
},
]
}
},
//56
//56
{
baseElementTypes
:
[
0
,
1
,
3
,
2
,
4
],
bubbleProbability
:
0
,
stepCount
:
32
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
39
}]
},
starScores
:
[
6000
,
14000
,
25000
],
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
1
,
1
,
1
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
5
,
5
,
5
,
2
,
2
,
1
,
2
,
4
,
2
,
5
,
4
,
5
,
2
,
4
,
2
,
1
,
2
,
2
,
5
,
5
,
5
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
1
,
1
,
1
],
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
:
null
}]
}
},
{
baseElementTypes
:
[
0
,
1
,
3
,
2
,
4
],
bubbleProbability
:
0
,
stepCount
:
32
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
39
}]
},
starScores
:
[
6000
,
14000
,
25000
],
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
1
,
1
,
1
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
5
,
5
,
5
,
2
,
2
,
1
,
2
,
4
,
2
,
5
,
4
,
5
,
2
,
4
,
2
,
1
,
2
,
2
,
5
,
5
,
5
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
4
,
2
,
1
,
1
,
1
],
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
:
null
}]
}
},
//57
//57
有气泡
{
{
baseElementTypes
:
[
4
,
1
,
2
,
3
],
baseElementTypes
:
[
4
,
1
,
2
,
3
],
bubbleProbability
:
0.8
,
bubbleProbability
:
0.8
,
...
@@ -482,11 +563,51 @@ export const Chapters3: ChapterData[] = [
...
@@ -482,11 +563,51 @@ export const Chapters3: ChapterData[] = [
{
index
:
35
,
type
:
[
0
],
cus
:
[]
},
{
index
:
35
,
type
:
[
0
],
cus
:
[]
},
{
index
:
43
,
type
:
[
0
],
cus
:
[]
},
{
index
:
43
,
type
:
[
0
],
cus
:
[]
},
],
],
connectedLats
:
[[
20
,
38
],
[
21
,
39
],
[
22
,
40
],
[
23
,
41
],
[
24
,
42
]
,
[
25
,
43
]
],
connectedLats
:
[[
20
,
38
],
[
21
,
39
],
[
22
,
40
],
[
23
,
41
],
[
24
,
42
]],
},
},
},
},
//58
//58
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
6
,
count
:
4
}]
},
starScores
:
[
5000
,
8000
,
15000
],
map
:
{
lattices
:
[
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
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
,
1
,
1
,
1
,
0
,
1
,
1
,
1
],
connectedLats
:
[[
80
,
10
],
[
81
,
20
],
[
79
,
0
]],
elements
:
[
3
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
3
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
0
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
0
,
2
,
1
,
1
,
0
,
1
,
1
,
1
,
2
,
0
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
],
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
:
26
,
type
:
null
},
{
index
:
30
,
type
:
null
},
{
index
:
34
,
type
:
null
},
{
index
:
40
,
type
:
null
},
{
index
:
42
,
type
:
null
}]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
6
,
count
:
4
}]
},
starScores
:
[
5000
,
8000
,
15000
],
map
:
{
lattices
:
[
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
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
,
1
,
1
,
1
,
0
,
1
,
1
,
1
],
connectedLats
:
[[
79
,
10
],
[
80
,
20
],
[
78
,
0
]],
elements
:
[
3
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
3
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
0
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
0
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
0
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
0
,
2
,
2
,
2
],
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
:
[
72
,
73
,
74
,
75
,
76
],
generateLats
:
[
{
index
:
26
,
type
:
null
},
{
index
:
30
,
type
:
null
},
{
index
:
34
,
type
:
null
},
{
index
:
40
,
type
:
null
},
{
index
:
42
,
type
:
null
}
]
}
},
//59
//59
{
{
baseElementTypes
:
[
0
,
1
,
2
,
4
,
3
],
baseElementTypes
:
[
0
,
1
,
2
,
4
,
3
],
...
...
egret/src/something/interface/MapData.ts
View file @
9fd657dd
...
@@ -38,7 +38,7 @@ export interface MapData {
...
@@ -38,7 +38,7 @@ export interface MapData {
*/
*/
elements
?:
number
[];
elements
?:
number
[];
/**
/**
* 9*9的格子
* 9*9的格子
,不修改写null或[]
* 十位是基础元素类型,对应数字减1就是基础元素类型
* 十位是基础元素类型,对应数字减1就是基础元素类型
* 个位是特效类型(0表示无特效),对应数字减1就是特效类型
* 个位是特效类型(0表示无特效),对应数字减1就是特效类型
* 10
* 10
...
...
egret/src/something/logic/AiControl.ts
View file @
9fd657dd
...
@@ -33,7 +33,7 @@ export class AiControl {
...
@@ -33,7 +33,7 @@ export class AiControl {
*/
*/
private
eggs
:
number
[];
private
eggs
:
number
[];
/**
/**
* 判断是否还有气泡,
暂时不考虑气泡能再生
* 判断是否还有气泡,
气泡能生成,没用了
*/
*/
private
hasBubble
:
boolean
;
private
hasBubble
:
boolean
;
/**
/**
...
@@ -52,7 +52,7 @@ export class AiControl {
...
@@ -52,7 +52,7 @@ export class AiControl {
*/
*/
init
(
lattices
:
Lattice
[])
{
init
(
lattices
:
Lattice
[])
{
this
.
hasJelly
=
judgeJellyExist
(
lattices
);
this
.
hasJelly
=
judgeJellyExist
(
lattices
);
this
.
hasBubble
=
judgeBubbleExist
(
lattices
);
//
this.hasBubble = judgeBubbleExist(lattices);
this
.
hasHairball
=
judgeHairballExist
(
lattices
);
this
.
hasHairball
=
judgeHairballExist
(
lattices
);
this
.
eggs
=
getEggs
(
lattices
);
this
.
eggs
=
getEggs
(
lattices
);
}
}
...
@@ -227,11 +227,11 @@ export class AiControl {
...
@@ -227,11 +227,11 @@ export class AiControl {
* @param callback
* @param callback
*/
*/
bubbleMotion
(
thisObj
:
MainScene
,
callback
:
Function
)
{
bubbleMotion
(
thisObj
:
MainScene
,
callback
:
Function
)
{
//无气泡,直接回调
//无气泡,直接回调
,气泡能生成,不能直接判断
if
(
!
this
.
hasBubble
)
{
//
if (!this.hasBubble) {
callback
();
//
callback();
return
//
return
}
//
}
//找出所有的气泡,必须按顺序,从左到右,从上到下
//找出所有的气泡,必须按顺序,从左到右,从上到下
var
indexs
:
number
[]
=
[];
var
indexs
:
number
[]
=
[];
for
(
var
i
=
0
;
i
<
thisObj
.
lattices
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
thisObj
.
lattices
.
length
;
i
++
)
{
...
@@ -244,7 +244,7 @@ export class AiControl {
...
@@ -244,7 +244,7 @@ export class AiControl {
//没有气泡,直接回调,
//没有气泡,直接回调,
if
(
!
indexs
.
length
)
{
if
(
!
indexs
.
length
)
{
//标记无气泡
//标记无气泡
this
.
hasBubble
=
false
;
//
this.hasBubble = false;
callback
();
callback
();
return
return
}
}
...
@@ -262,7 +262,7 @@ export class AiControl {
...
@@ -262,7 +262,7 @@ export class AiControl {
ele
.
resetType
(
type
);
ele
.
resetType
(
type
);
ele
.
visible
=
false
;
ele
.
visible
=
false
;
//变色动画
//变色动画
let
bubbleAni
:
BubbleAni
=
Pool
.
takeOut
(
RecoverName
.
JELLYSPREAD
_ANI
)
let
bubbleAni
:
BubbleAni
=
Pool
.
takeOut
(
RecoverName
.
BUBBLE
_ANI
)
if
(
!
bubbleAni
)
{
if
(
!
bubbleAni
)
{
bubbleAni
=
new
BubbleAni
()
bubbleAni
=
new
BubbleAni
()
}
}
...
@@ -270,7 +270,9 @@ export class AiControl {
...
@@ -270,7 +270,9 @@ export class AiControl {
var
p
=
Tool
.
getPositionByIndex
(
index
);
var
p
=
Tool
.
getPositionByIndex
(
index
);
bubbleAni
.
x
=
p
[
0
];
bubbleAni
.
x
=
p
[
0
];
bubbleAni
.
y
=
p
[
1
];
bubbleAni
.
y
=
p
[
1
];
thisObj
.
addChild
(
bubbleAni
);
//估计得加在元素容器那一层,不然wonderfull等toast会被动画盖掉,
//其他也有问题的,考虑这方面,估计暂时就果冻和气泡,因为这俩动画在toast后面
thisObj
.
elementContainer
.
addChild
(
bubbleAni
);
//播放动画
//播放动画
bubbleAni
.
play
(
fromType
,
type
,
()
=>
{
bubbleAni
.
play
(
fromType
,
type
,
()
=>
{
//显示
//显示
...
...
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