Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaoleTuia
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
王剑峰
xiaoxiaoleTuia
Commits
5682692d
Commit
5682692d
authored
Jan 21, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
0cb7766d
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
62 additions
and
18 deletions
+62
-18
index.html
egret/index.html
+19
-0
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+2
-1
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+2
-2
pro.html
egret/pro.html
+17
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+7
-7
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-1
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+1
-0
FailedPanel.ts
egret/src/panels/FailedPanel.ts
+2
-1
SignPrizePanel.ts
egret/src/panels/SignPrizePanel.ts
+2
-1
StartPanel.ts
egret/src/panels/StartPanel.ts
+5
-2
VideoBuyPanel.ts
egret/src/panels/VideoBuyPanel.ts
+2
-1
Chapter1.ts
egret/src/something/chapters/Chapter1.ts
+1
-1
No files found.
egret/index.html
View file @
5682692d
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
top
:
0
;
top
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
background
:
rgba
(
0
,
0
,
0
,
0.6
);
}
}
.app-close
{
.app-close
{
position
:
absolute
;
position
:
absolute
;
width
:
5vw
;
width
:
5vw
;
...
@@ -51,6 +52,7 @@
...
@@ -51,6 +52,7 @@
top
:
5vw
;
top
:
5vw
;
right
:
5vw
;
right
:
5vw
;
}
}
.app-info-wrap
{
.app-info-wrap
{
padding
:
3vh
0
;
padding
:
3vh
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -67,6 +69,7 @@
...
@@ -67,6 +69,7 @@
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
}
}
.app-logo
{
.app-logo
{
width
:
18.7vw
;
width
:
18.7vw
;
margin-top
:
4vh
;
margin-top
:
4vh
;
...
@@ -74,6 +77,7 @@
...
@@ -74,6 +77,7 @@
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
;
background-size
:
100%
;
}
}
.app-name
{
.app-name
{
font-size
:
24px
;
font-size
:
24px
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -82,6 +86,7 @@
...
@@ -82,6 +86,7 @@
text-align
:
center
;
text-align
:
center
;
margin-top
:
3vh
;
margin-top
:
3vh
;
}
}
.app-button
{
.app-button
{
width
:
75.2vw
;
width
:
75.2vw
;
height
:
6.9vh
;
height
:
6.9vh
;
...
@@ -121,6 +126,20 @@
...
@@ -121,6 +126,20 @@
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
<script>
window
[
'imgver'
]
=
'11112'
;
//签到itemId对应图片,线上注意对应修改
window
[
'duiba'
]
=
''
;
window
[
"appKeyTuia"
]
=
"2ZjLbhEBCFAzBbihEtxLEq25mXKw"
;
//推啊appkey
//推啊广告id
window
[
"slotIdsTuia"
]
=
[
"324689"
,
//首页悬浮 0
"327165"
,
//签到完成翻倍 1
"327166"
,
//开始前领取道具 2
"327166"
,
//游戏中领取道具 3
"327167"
,
//游戏失败领取步数 4
"327165"
,
//游戏成功翻倍领取 5
"327165"
,
//开宝箱翻倍领取 6
]
window
[
'signconfigs'
]
=
[
window
[
'signconfigs'
]
=
[
{
nums
:
'*20'
,
type
:
'money'
},
{
nums
:
'*20'
,
type
:
'money'
},
{
nums
:
'*20'
,
type
:
'money'
},
{
nums
:
'*20'
,
type
:
'money'
},
...
...
egret/libs/new_wx/components/PrizePanel.ts
View file @
5682692d
...
@@ -93,7 +93,8 @@ export default class PrizePanel extends Panel {
...
@@ -93,7 +93,8 @@ export default class PrizePanel extends Panel {
25
25
)
)
},
},
()
=>
{
showToast
(
"广告未成功观看,无法加倍领取"
);
}
()
=>
{
showToast
(
"广告未成功观看,无法加倍领取"
);
},
window
[
"slotIdsTuia"
][
5
]
)
)
},
this
)
},
this
)
}
}
...
...
egret/libs/tw/manager/NetManager.ts
View file @
5682692d
...
@@ -100,7 +100,7 @@ export class NetManager extends ABNetManager {
...
@@ -100,7 +100,7 @@ export class NetManager extends ABNetManager {
* @param closeFn 未完成关闭
* @param closeFn 未完成关闭
* @param comCloseFn 已完成活动,返回的提示,一般是toast或游戏内的逻辑,暂不用
* @param comCloseFn 已完成活动,返回的提示,一般是toast或游戏内的逻辑,暂不用
*/
*/
public
getTuiaAd
(
rewardFn
:
Function
,
closeFn
:
Function
/*, comCloseFn?*/
)
{
public
getTuiaAd
(
rewardFn
:
Function
,
closeFn
:
Function
,
slotId
:
string
)
{
this
[
'tuiaRewardMark'
]
=
false
;
this
[
'tuiaRewardMark'
]
=
false
;
let
_rewardFn
=
()
=>
{
let
_rewardFn
=
()
=>
{
// rewardFn();
// rewardFn();
...
@@ -117,7 +117,7 @@ export class NetManager extends ABNetManager {
...
@@ -117,7 +117,7 @@ export class NetManager extends ABNetManager {
}
}
window
[
"TAIsdk"
].
init
({
window
[
"TAIsdk"
].
init
({
appKey
:
window
[
"appKeyTuia"
]
||
'2ZjLbhEBCFAzBbihEtxLEq25mXKw'
,
//固定,到时修改
appKey
:
window
[
"appKeyTuia"
]
||
'2ZjLbhEBCFAzBbihEtxLEq25mXKw'
,
//固定,到时修改
slotId
:
window
[
"slotIdTuia"
]
||
'324689'
,
//到时修改
slotId
:
slotId
,
//到时修改
deviceId
:
getUrl
(
'deviceId'
),
deviceId
:
getUrl
(
'deviceId'
),
userId
:
window
[
"CFG"
].
uid
,
userId
:
window
[
"CFG"
].
uid
,
rewardCallback
:
_rewardFn
,
rewardCallback
:
_rewardFn
,
...
...
egret/pro.html
View file @
5682692d
...
@@ -18,7 +18,18 @@
...
@@ -18,7 +18,18 @@
//window['tryWuhanVideo']=true;
//window['tryWuhanVideo']=true;
window
[
"slotidIcon"
]
=
"srlKMxcd2230"
;
//首页icon的广告位id
window
[
"slotidIcon"
]
=
"srlKMxcd2230"
;
//首页icon的广告位id
window
[
"slotid"
]
=
"srlboItw2231"
;
//其他位置广告位id
window
[
"slotid"
]
=
"srlboItw2231"
;
//其他位置广告位id
window
[
"slotIdTuia"
]
=
"324689"
;
//推啊广告id
window
[
"appKeyTuia"
]
=
"2ZjLbhEBCFAzBbihEtxLEq25mXKw"
;
//推啊appkey
//推啊广告id
window
[
"slotIdsTuia"
]
=
[
"324689"
,
//首页悬浮 0
"327165"
,
//签到完成翻倍 1
"327166"
,
//开始前领取道具 2
"327166"
,
//游戏中领取道具 3
"327167"
,
//游戏失败领取步数 4
"327165"
,
//游戏成功翻倍领取 5
"327165"
,
//开宝箱翻倍领取 6
]
</script>
</script>
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
data-orientation=
"auto"
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
data-orientation=
"auto"
...
@@ -58,6 +69,7 @@
...
@@ -58,6 +69,7 @@
top
:
0
;
top
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
background
:
rgba
(
0
,
0
,
0
,
0.6
);
}
}
.app-close
{
.app-close
{
position
:
absolute
;
position
:
absolute
;
width
:
5vw
;
width
:
5vw
;
...
@@ -65,6 +77,7 @@
...
@@ -65,6 +77,7 @@
top
:
5vw
;
top
:
5vw
;
right
:
5vw
;
right
:
5vw
;
}
}
.app-info-wrap
{
.app-info-wrap
{
padding
:
3vh
0
;
padding
:
3vh
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -81,6 +94,7 @@
...
@@ -81,6 +94,7 @@
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
}
}
.app-logo
{
.app-logo
{
width
:
18.7vw
;
width
:
18.7vw
;
margin-top
:
4vh
;
margin-top
:
4vh
;
...
@@ -88,6 +102,7 @@
...
@@ -88,6 +102,7 @@
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
;
background-size
:
100%
;
}
}
.app-name
{
.app-name
{
font-size
:
24px
;
font-size
:
24px
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -96,6 +111,7 @@
...
@@ -96,6 +111,7 @@
text-align
:
center
;
text-align
:
center
;
margin-top
:
3vh
;
margin-top
:
3vh
;
}
}
.app-button
{
.app-button
{
width
:
75.2vw
;
width
:
75.2vw
;
height
:
6.9vh
;
height
:
6.9vh
;
...
...
egret/src/mainScene/MainScene.ts
View file @
5682692d
...
@@ -679,6 +679,7 @@ export default class MainScene extends Scene {
...
@@ -679,6 +679,7 @@ export default class MainScene extends Scene {
Tool
.
removeEle
(
i
,
this
.
emptys
);
Tool
.
removeEle
(
i
,
this
.
emptys
);
}
}
}
}
}
//针对如果地图没有棒棒糖0,但是通关目标有,需要标记生成
//针对如果地图没有棒棒糖0,但是通关目标有,需要标记生成
if
(
this
.
passElements
&&
if
(
this
.
passElements
&&
this
.
passElements
[
ElementType
.
LOLLIPOP
]
&&
this
.
passElements
[
ElementType
.
LOLLIPOP
]
&&
...
@@ -686,7 +687,6 @@ export default class MainScene extends Scene {
...
@@ -686,7 +687,6 @@ export default class MainScene extends Scene {
this
.
lollipopMark
=
true
this
.
lollipopMark
=
true
}
}
}
}
}
//重置基础元素及特效类型
//重置基础元素及特效类型
initBaseElement
()
{
initBaseElement
()
{
var
elements
=
this
.
chapterData
.
map
.
baseElements
;
var
elements
=
this
.
chapterData
.
map
.
baseElements
;
...
...
egret/src/mapScene/MapScene.ts
View file @
5682692d
...
@@ -84,7 +84,8 @@ export default class MapScene extends Scene {
...
@@ -84,7 +84,8 @@ export default class MapScene extends Scene {
},
},
()
=>
{
()
=>
{
showToast
(
"活动未完成,无法领取奖励"
);
showToast
(
"活动未完成,无法领取奖励"
);
}
},
window
[
"slotIdsTuia"
][
0
]
)
)
},
this
)
},
this
)
...
...
egret/src/panels/BoxPanel.ts
View file @
5682692d
...
@@ -62,6 +62,7 @@ export default class BoxPanel extends Panel {
...
@@ -62,6 +62,7 @@ export default class BoxPanel extends Panel {
)
)
},
},
()
=>
{
showToast
(
"广告未成功观看,无法加倍领取"
);
},
()
=>
{
showToast
(
"广告未成功观看,无法加倍领取"
);
},
window
[
"slotIdsTuia"
][
6
]
)
)
},
this
)
},
this
)
...
...
egret/src/panels/FailedPanel.ts
View file @
5682692d
...
@@ -37,7 +37,8 @@ export default class FailedPanel extends Panel {
...
@@ -37,7 +37,8 @@ export default class FailedPanel extends Panel {
this
.
hidePanel
();
this
.
hidePanel
();
data
.
complete
();
data
.
complete
();
},
},
()
=>
{
showToast
(
"广告未成功观看,无法复活"
);
}
()
=>
{
showToast
(
"广告未成功观看,无法复活"
);
},
window
[
"slotIdsTuia"
][
4
]
)
)
},
this
);
},
this
);
}
}
...
...
egret/src/panels/SignPrizePanel.ts
View file @
5682692d
...
@@ -72,7 +72,8 @@ export default class SignPrizePanel extends Panel {
...
@@ -72,7 +72,8 @@ export default class SignPrizePanel extends Panel {
21
21
)
)
},
},
()
=>
{
showToast
(
"广告未成功观看,无法加倍领取"
)
}
()
=>
{
showToast
(
"广告未成功观看,无法加倍领取"
)
},
window
[
"slotIdsTuia"
][
1
]
)
)
},
this
)
},
this
)
}
}
...
...
egret/src/panels/StartPanel.ts
View file @
5682692d
...
@@ -201,6 +201,7 @@ export default class StartPanel extends Panel {
...
@@ -201,6 +201,7 @@ export default class StartPanel extends Panel {
showToast
(
"增加一个锤子道具"
)
showToast
(
"增加一个锤子道具"
)
},
},
()
=>
{
showToast
(
"广告未成功观看,道具领取失败"
)
},
()
=>
{
showToast
(
"广告未成功观看,道具领取失败"
)
},
window
[
"slotIdsTuia"
][
2
]
)
)
}
}
//炸弹
//炸弹
...
@@ -214,7 +215,8 @@ export default class StartPanel extends Panel {
...
@@ -214,7 +215,8 @@ export default class StartPanel extends Panel {
this
[
'nums2Txt'
].
text
=
(
this
.
boom
+
this
.
videoProp
[
0
])
+
""
;
this
[
'nums2Txt'
].
text
=
(
this
.
boom
+
this
.
videoProp
[
0
])
+
""
;
showToast
(
"增加一个炸弹道具"
)
showToast
(
"增加一个炸弹道具"
)
},
},
()
=>
{
showToast
(
"广告未成功观看,道具领取失败"
)
}
()
=>
{
showToast
(
"广告未成功观看,道具领取失败"
)
},
window
[
"slotIdsTuia"
][
2
]
)
)
}
}
//步数
//步数
...
@@ -228,7 +230,8 @@ export default class StartPanel extends Panel {
...
@@ -228,7 +230,8 @@ export default class StartPanel extends Panel {
this
[
'nums3Txt'
].
text
=
(
this
.
boom
+
this
.
videoProp
[
2
])
+
""
;
this
[
'nums3Txt'
].
text
=
(
this
.
boom
+
this
.
videoProp
[
2
])
+
""
;
showToast
(
"增加一个增加步数道具"
)
showToast
(
"增加一个增加步数道具"
)
},
},
()
=>
{
showToast
(
"广告未成功观看,道具领取失败"
)
}
()
=>
{
showToast
(
"广告未成功观看,道具领取失败"
)
},
window
[
"slotIdsTuia"
][
2
]
)
)
}
}
...
...
egret/src/panels/VideoBuyPanel.ts
View file @
5682692d
...
@@ -67,7 +67,8 @@ export default class VideoBuyPanel extends Panel {
...
@@ -67,7 +67,8 @@ export default class VideoBuyPanel extends Panel {
data
.
complete
(
true
);
data
.
complete
(
true
);
showToast
(
"领取成功"
)
showToast
(
"领取成功"
)
},
},
()
=>
{
showToast
(
"广告未成功观看,道具领取失败"
)
}
()
=>
{
showToast
(
"广告未成功观看,道具领取失败"
)
},
window
[
"slotIdsTuia"
][
3
]
)
)
},
this
);
},
this
);
}
else
{
}
else
{
...
...
egret/src/something/chapters/Chapter1.ts
View file @
5682692d
...
@@ -689,7 +689,7 @@ export const Chapters1: ChapterData[] = [
...
@@ -689,7 +689,7 @@ export const Chapters1: ChapterData[] = [
],
],
},
},
},
},
//12
//12
会开局消除,baseElements有问题
{
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
bubbleProbability
:
0
,
...
...
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