Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
5e75fbda
Commit
5e75fbda
authored
Oct 30, 2019
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6666666
parent
adc42380
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
90 additions
and
213 deletions
+90
-213
project.json
egret/project.json
+1
-1
startBg.jpg
egret/resource/assets/start_scene/startBg.jpg
+0
-0
startBtn.png
egret/resource/assets/start_scene/startBtn.png
+0
-0
MsgSkin.exml
egret/resource/skins/MsgSkin.exml
+3
-2
PrizePanelSkin.exml
egret/resource/skins/PrizePanelSkin.exml
+1
-1
StartSceneSkin.exml
egret/resource/skins/StartSceneSkin.exml
+4
-24
GameScene.ts
egret/src/gameScene/GameScene.ts
+48
-48
StartScene.ts
egret/src/startScene/StartScene.ts
+31
-135
doJoinNew.json
mock/json/doJoinNew.json
+2
-2
No files found.
egret/project.json
View file @
5e75fbda
{
"type"
:
"activity"
,
"name"
:
"kouhongji_
yueda
"
"name"
:
"kouhongji_
nsh
"
}
\ No newline at end of file
egret/resource/assets/start_scene/startBg.jpg
View replaced file @
adc42380
View file @
5e75fbda
257 KB
|
W:
|
H:
280 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/start_scene/startBtn.png
View replaced file @
adc42380
View file @
5e75fbda
10.6 KB
|
W:
|
H:
9.74 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/MsgSkin.exml
View file @
5e75fbda
...
...
@@ -7,9 +7,10 @@
<e:Group
id=
"panelGroup"
x=
"82.2"
width=
"596"
height=
"458"
y=
"269.7"
>
<e:Image
id=
"bg"
scaleX=
"1"
scaleY=
"1"
source=
"msgBg_png"
locked=
"true"
/>
<e:Label
id=
"msgTxt0"
anchorOffsetX=
"0"
width=
"596"
anchorOffsetY=
"0"
size=
"47"
textAlign=
"center"
text=
"闯关失败啦~\n换个姿势再来一次吧~"
fontFamily=
"Arial"
verticalAlign=
"middle"
y=
"121"
scaleX=
"1"
scaleY=
"1"
textColor=
"0x9861ba"
lineSpacing=
"15"
height=
"109"
locked=
"true"
/>
<e:Label
id=
"msgTxt1"
anchorOffsetX=
"0"
width=
"596"
anchorOffsetY=
"0"
size=
"36"
textAlign=
"center"
text=
"啊哦,颜值币不够啦~\n攒更多颜值币继续挑战吧!"
fontFamily=
"Arial"
verticalAlign=
"middle"
y=
"126"
scaleX=
"1"
scaleY=
"1"
textColor=
"0x9861BA"
lineSpacing=
"25"
height=
"109"
/>
<e:Label
id=
"msgTxt1"
anchorOffsetX=
"0"
width=
"596"
anchorOffsetY=
"0"
size=
"36"
textAlign=
"center"
text=
"挑战次数用完啦\n关注公众号获取更多福利"
fontFamily=
"Arial"
verticalAlign=
"middle"
y=
"126"
scaleX=
"1"
scaleY=
"1"
textColor=
"0x9861BA"
lineSpacing=
"25"
height=
"109"
/>
<e:Label
id=
"msgTxt2"
anchorOffsetX=
"0"
width=
"596"
anchorOffsetY=
"0"
size=
"36"
textAlign=
"center"
text=
"厉害啦!\n闯关成功666~"
fontFamily=
"Arial"
verticalAlign=
"middle"
y=
"126"
scaleX=
"1"
scaleY=
"1"
textColor=
"0x9861BA"
lineSpacing=
"25"
height=
"109"
visible=
"false"
locked=
"true"
/>
<e:Button
id=
"okBtn"
label=
""
y=
"303"
x=
"103
"
>
<e:Button
id=
"okBtn"
label=
""
y=
"303"
horizontalCenter=
"0
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
source=
"okBtn_png"
source.down=
"okBtn_png"
source.disabled=
"okBtn_png"
scaleX.down=
"0.9"
scaleY.down=
"0.9"
x.down=
"20"
y.down=
"5.7"
/>
...
...
egret/resource/skins/PrizePanelSkin.exml
View file @
5e75fbda
...
...
@@ -20,6 +20,6 @@
</e:Button>
<e:Label
id=
"prizeNameLb"
text=
"奖品文案"
y=
"692.67"
size=
"22"
textAlign=
"center"
width=
"200"
textColor=
"0x0bb17b"
x=
"175"
visible=
"false"
locked=
"true"
/>
<e:Image
id=
"prizeImg"
y=
"466.19"
anchorOffsetY=
"0"
anchorOffsetX=
"0"
width=
"245"
height=
"245"
source=
""
horizontalCenter=
"0.5"
/>
<e:Label
text=
"恭喜\n
赢得100颜值币
"
y=
"354.09"
textColor=
"0x9861ba"
textAlign=
"center"
size=
"39"
horizontalCenter=
"0.5"
lineSpacing=
"10"
/>
<e:Label
text=
"恭喜\n
凭此券码 兑换奖品
"
y=
"354.09"
textColor=
"0x9861ba"
textAlign=
"center"
size=
"39"
horizontalCenter=
"0.5"
lineSpacing=
"10"
/>
</e:Group>
</e:Skin>
\ No newline at end of file
egret/resource/skins/StartSceneSkin.exml
View file @
5e75fbda
...
...
@@ -17,32 +17,12 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Label
id=
"integralLb"
text=
"一 我的颜值币:198个 一"
y=
"221.24"
textColor=
"0x7060d7"
width=
"750"
textAlign=
"center"
size=
"26"
/>
<e:Group
id=
"winnerGroup"
width=
"750"
height=
"120"
y=
"880"
>
<e:Label
id=
"msgRollLb0"
text=
"xxxx挑战成功,赢得100颜值币"
textColor=
"0xA17AFA"
width=
"750"
textAlign=
"center"
size=
"28"
anchorOffsetY=
"0"
height=
"60"
verticalAlign=
"middle"
x=
"0"
scaleX=
"1"
scaleY=
"1"
locked=
"true"
/>
<e:Label
id=
"msgRollLb1"
text=
"xxxx挑战成功,赢得100颜值币"
y=
"60"
textColor=
"0xa17afa"
width=
"750"
textAlign=
"center"
size=
"28"
anchorOffsetY=
"0"
height=
"60"
x=
"0"
verticalAlign=
"middle"
scaleX=
"1"
scaleY=
"1"
locked=
"true"
/>
</e:Group>
<e:Button
id=
"demoBtn"
label=
""
x=
"37.58"
y=
"981"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
source=
"demoBtn_png"
source.down=
"demoBtn_png"
source.disabled=
"demoBtn_png"
scaleX.down=
"0.9"
scaleY.down=
"0.9"
x.down=
"9"
y.down=
"8"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"earnMoneyBtn"
label=
""
x=
"521.76"
y=
"983"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
source=
"moneyBtn_png"
source.down=
"moneyBtn_png"
source.disabled=
"moneyBtn_png"
scaleX.down=
"0.9"
scaleY.down=
"0.9"
x.down=
"9.2"
y.down=
"8"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Group
width=
"282"
height=
"164"
x=
"234"
y=
"967"
>
<e:Button
id=
"startBtn"
label=
""
anchorOffsetX=
"141"
anchorOffsetY=
"82"
x=
"141"
scaleX=
"1"
scaleY=
"1"
y=
"82"
locked=
"true"
>
<e:Label
id=
"integralLb"
text=
"一 我的颜值币:198个 一"
y=
"221.24"
textColor=
"0x7060d7"
width=
"750"
textAlign=
"center"
size=
"26"
locked=
"true"
visible=
"false"
/>
<e:Group
y=
"1006.37"
x=
"160"
>
<e:Button
id=
"startBtn"
label=
""
anchorOffsetX=
"215.5"
anchorOffsetY=
"61"
x=
"215.5"
scaleX=
"1"
scaleY=
"1"
y=
"61"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
source=
"startBtn_png"
source.down=
"startBtn_png"
source.disabled=
"startBtn_png"
scaleX.down=
"0.9"
scaleY.down=
"0.9"
x.down=
"
14"
y.down=
"10
"
/>
<e:Image
source=
"startBtn_png"
source.down=
"startBtn_png"
source.disabled=
"startBtn_png"
scaleX.down=
"0.9"
scaleY.down=
"0.9"
x.down=
"
22"
y.down=
"6
"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
...
...
egret/src/gameScene/GameScene.ts
View file @
5e75fbda
...
...
@@ -137,32 +137,32 @@ export default class GameScene extends Scene {
//显示切换关卡页面
private
showLevelTitleAct
():
void
{
if
(
this
.
currLevel
==
0
)
{
this
.
isOver
=
false
;
if
(
!
this
.
isdemo
){
//第一关曝光
let
startDpmOut
=
Buried
.
connectDpm
(
110
,
4
,
1
);
// 点击埋点
let
startDcmOut
=
Buried
.
connectDcm
(
202
,
0
,
0
);
// 曝光埋点
let
exposure
=
Buried
.
createExposure
(
startDpmOut
,
startDcmOut
);
//
if (this.currLevel == 0) {
//
this.isOver = false;
//
if(!this.isdemo){
//
//第一关曝光
//
let startDpmOut = Buried.connectDpm(110, 4, 1); // 点击埋点
//
let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
//
let exposure = Buried.createExposure(startDpmOut, startDcmOut);
NetManager
.
ins
.
showLog
(
exposure
);
}
}
else
if
(
this
.
currLevel
==
1
)
{
//第二关曝光
let
startDpmOut
=
Buried
.
connectDpm
(
110
,
5
,
1
);
// 点击埋点
let
startDcmOut
=
Buried
.
connectDcm
(
202
,
0
,
0
);
// 曝光埋点
let
exposure
=
Buried
.
createExposure
(
startDpmOut
,
startDcmOut
);
NetManager
.
ins
.
showLog
(
exposure
);
}
else
if
(
this
.
currLevel
==
2
)
{
//第三关曝光
let
startDpmOut
=
Buried
.
connectDpm
(
110
,
6
,
1
);
// 点击埋点
let
startDcmOut
=
Buried
.
connectDcm
(
202
,
0
,
0
);
// 曝光埋点
let
exposure
=
Buried
.
createExposure
(
startDpmOut
,
startDcmOut
);
NetManager
.
ins
.
showLog
(
exposure
);
}
//
NetManager.ins.showLog(exposure);
//
}
//
} else if (this.currLevel == 1) {
//
//第二关曝光
//
let startDpmOut = Buried.connectDpm(110, 5, 1); // 点击埋点
//
let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
//
let exposure = Buried.createExposure(startDpmOut, startDcmOut);
//
NetManager.ins.showLog(exposure);
//
} else if (this.currLevel == 2) {
//
//第三关曝光
//
let startDpmOut = Buried.connectDpm(110, 6, 1); // 点击埋点
//
let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
//
let exposure = Buried.createExposure(startDpmOut, startDcmOut);
//
NetManager.ins.showLog(exposure);
//
}
let
iSource
;
if
(
this
.
isdemo
){
...
...
@@ -268,30 +268,30 @@ export default class GameScene extends Scene {
// const dynamic: IDynamicData = { a: 'tap', t: GTime.getTimestamp(), x: e.stageY, y: e.stageY };
// this.gPlayModel.addDynamic(dynamic);
if
(
this
.
currLevel
==
0
)
{
if
(
!
this
.
isdemo
){
//第一关曝光
let
startDpmOut
=
Buried
.
connectDpm
(
110
,
4
,
1
);
// 点击埋点
let
startDcmOut
=
Buried
.
connectDcm
(
202
,
0
,
0
);
// 曝光埋点
let
exposure
=
Buried
.
createExposure
(
startDpmOut
,
startDcmOut
);
//
if (this.currLevel == 0) {
//
if(!this.isdemo){
//
//第一关曝光
//
let startDpmOut = Buried.connectDpm(110, 4, 1); // 点击埋点
//
let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
//
let exposure = Buried.createExposure(startDpmOut, startDcmOut);
NetManager
.
ins
.
clickLog
(
exposure
);
}
}
else
if
(
this
.
currLevel
==
1
)
{
//第二关曝光
let
startDpmOut
=
Buried
.
connectDpm
(
110
,
5
,
1
);
// 点击埋点
let
startDcmOut
=
Buried
.
connectDcm
(
202
,
0
,
0
);
// 曝光埋点
let
exposure
=
Buried
.
createExposure
(
startDpmOut
,
startDcmOut
);
NetManager
.
ins
.
clickLog
(
exposure
);
}
else
if
(
this
.
currLevel
==
2
)
{
//第三关曝光
let
startDpmOut
=
Buried
.
connectDpm
(
110
,
6
,
1
);
// 点击埋点
let
startDcmOut
=
Buried
.
connectDcm
(
202
,
0
,
0
);
// 曝光埋点
let
exposure
=
Buried
.
createExposure
(
startDpmOut
,
startDcmOut
);
NetManager
.
ins
.
clickLog
(
exposure
);
}
//
NetManager.ins.clickLog(exposure);
//
}
//
} else if (this.currLevel == 1) {
//
//第二关曝光
//
let startDpmOut = Buried.connectDpm(110, 5, 1); // 点击埋点
//
let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
//
let exposure = Buried.createExposure(startDpmOut, startDcmOut);
//
NetManager.ins.clickLog(exposure);
//
} else if (this.currLevel == 2) {
//
//第三关曝光
//
let startDpmOut = Buried.connectDpm(110, 6, 1); // 点击埋点
//
let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
//
let exposure = Buried.createExposure(startDpmOut, startDcmOut);
//
NetManager.ins.clickLog(exposure);
//
}
this
.
canShoot
=
false
;
egret
.
Tween
.
get
(
this
.
shootBulletImg
).
to
({
y
:
this
.
bEndY
},
200
,
egret
.
Ease
.
sineIn
).
call
(
function
()
{
...
...
egret/src/startScene/StartScene.ts
View file @
5e75fbda
This diff is collapsed.
Click to expand it.
mock/json/doJoinNew.json
View file @
5e75fbda
{
"success"
:
fals
e
,
"code"
:
"
E100202007
"
,
"success"
:
tru
e
,
"code"
:
"
0000000000
"
,
"desc"
:
"OK"
,
"timestamp"
:
1548915321930
,
"data"
:
123456
...
...
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