Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DuibaGameTemplate
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
钱根
DuibaGameTemplate
Commits
75e85328
Commit
75e85328
authored
Jun 20, 2022
by
Master Q
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complete for dev
parent
e8f0cb64
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
4 deletions
+27
-4
index.do.json
mock/webNet/racingGame/index.do.json
+1
-1
RescurrectionModal.ts
src/panels/RescurrectionModal.ts
+9
-0
ResultModal.ts
src/panels/ResultModal.ts
+9
-1
IndexScene.ts
src/scenes/IndexScene/IndexScene.ts
+4
-2
ParkourGameScene.ts
src/scenes/ParkourGameScene.ts
+2
-0
loadingScene.ts
src/scenes/loadingScene/loadingScene.ts
+2
-0
No files found.
mock/webNet/racingGame/index.do.json
View file @
75e85328
...
...
@@ -5,6 +5,6 @@
"data"
:
{
"activityState"
:
1
,
"needTikectCount"
:
23
,
"gameTimeLimit"
:
60
"gameTimeLimit"
:
5
}
}
\ No newline at end of file
src/panels/RescurrectionModal.ts
View file @
75e85328
...
...
@@ -2,6 +2,7 @@ import { CountDownFac, CountDownWithTweenCls } from './../scenes/utils';
import
{
ExtraConfig
}
from
'./../scenes/ExtraConfig'
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
UI
from
"../tools/UI"
;
import
{
LOG_TYPE
,
sendLog
}
from
'../tools/WebNet'
;
export
class
RescurrectionModal
extends
Panel
{
get
groupNames
():
string
[]
{
...
...
@@ -9,6 +10,10 @@ export class RescurrectionModal extends Panel {
}
roleCont
:
FYGE
.
Container
protected
initUi
():
void
{
sendLog
(
LOG_TYPE
.
EXPOSURE
,
4
)
sendLog
(
LOG_TYPE
.
EXPOSURE
,
6
)
sendLog
(
LOG_TYPE
.
EXPOSURE
,
5
)
const
roleCont
=
this
.
roleCont
=
UI
.
Ctn
(
this
,
(
750
-
547
)
/
2
,
812
-
389
/
2
)
UI
.
Sp
(
roleCont
,
'rescurrectionModalBack.png'
)
...
...
@@ -27,12 +32,16 @@ export class RescurrectionModal extends Panel {
})
UI
.
Btn
(
roleCont
,
'fkBtn.png'
,
()
=>
{
sendLog
(
LOG_TYPE
.
CLICK
,
6
)
simpleCountDonwFac
.
end
()
this
.
hidePanel
()
this
.
data
&&
this
.
data
.
onGiveUp
()
},
this
,
270
,
230
)
UI
.
Btn
(
roleCont
,
'lookBtn.png'
,
()
=>
{
sendLog
(
LOG_TYPE
.
CLICK
,
5
)
simpleCountDonwFac
.
end
()
this
.
onShowPreviewImg
()
},
this
,
20
,
230
)
...
...
src/panels/ResultModal.ts
View file @
75e85328
...
...
@@ -3,7 +3,7 @@ import { Panel } from "../../module/views/Panel";
import
{
IndexScene
}
from
"../scenes/IndexScene/IndexScene"
;
import
{
promiseAwaitFunc
}
from
"../scenes/utils"
;
import
UI
from
"../tools/UI"
;
import
{
sendWebNet
,
WebNetName
}
from
"../tools/WebNet"
;
import
{
LOG_TYPE
,
sendLog
,
sendWebNet
,
WebNetName
}
from
"../tools/WebNet"
;
export
class
ResultModal
extends
Panel
{
get
groupNames
():
string
[]
{
...
...
@@ -11,6 +11,10 @@ export class ResultModal extends Panel {
}
initUi
()
{
sendLog
(
LOG_TYPE
.
EXPOSURE
,
7
)
sendLog
(
LOG_TYPE
.
EXPOSURE
,
8
)
sendLog
(
LOG_TYPE
.
EXPOSURE
,
9
)
const
roleCont
=
UI
.
Ctn
(
this
,
(
750
-
667
)
/
2
+
10
,
170
)
UI
.
Sp
(
roleCont
,
'resultModalback.png'
)
...
...
@@ -22,9 +26,13 @@ export class ResultModal extends Panel {
UI
.
Btn
(
roleCont
,
'cancelBtn.png'
,
()
=>
{
changeScene
(
IndexScene
)
this
.
hidePanel
()
sendLog
(
LOG_TYPE
.
CLICK
,
8
)
},
this
,
60
,
810
)
UI
.
Btn
(
roleCont
,
'oneMoreTime.png'
,
promiseAwaitFunc
(
async
()
=>
{
sendLog
(
LOG_TYPE
.
CLICK
,
9
)
const
{
success
}
=
await
sendWebNet
(
WebNetName
.
start
)
...
...
src/scenes/IndexScene/IndexScene.ts
View file @
75e85328
...
...
@@ -48,10 +48,12 @@ export class IndexScene extends Scene {
UI
.
Txt
(
startBtnCont
,
`消耗
${
this
.
IndexSceneData
.
needTikectCount
}
门票`
,
24
,
'#000000'
,
FYGE
.
TEXT_ALIGN
.
CENTER
,
374
,
0
,
120
)
sendLog
(
LOG_TYPE
.
EXPOSURE
,
1
)
sendLog
(
LOG_TYPE
.
EXPOSURE
,
2
)
}
@
PromiseAwait
async
onJump2Scene
()
{
sendLog
(
LOG_TYPE
.
CLICK
,
2
)
const
{
success
}
=
await
sendWebNet
(
WebNetName
.
start
)
...
...
@@ -62,12 +64,12 @@ export class IndexScene extends Scene {
onShowRulePanel
()
{
showPanel
(
RuleModal
,
{
ruleTxt
:
'123'
ruleTxt
:
getWebData
(
WebNetName
.
projectRule
).
data
.
split
(
/===+/
)[
0
]
})
}
onJump2AwardPage
()
{
window
.
location
.
href
=
'awardPage.html'
}
initEvents
():
void
{
...
...
src/scenes/ParkourGameScene.ts
View file @
75e85328
...
...
@@ -5,6 +5,7 @@ import { ConveyorBelt, ConveyorBeltItem } from "./comp/ConveyorBelt";
import
{
GDispatcher
}
from
'../Game'
;
import
{
CollisionDetection
,
RectPhysicsCont
,
WithCollisionDetection
}
from
'./CollisionComposite'
;
import
{
BalalaScene
}
from
'./BalalaScene'
;
import
{
LOG_TYPE
,
sendLog
}
from
'../tools/WebNet'
;
/**
* 解个一元一次方程式咯
...
...
@@ -61,6 +62,7 @@ export class ParkourScene extends Scene {
}
initUi
()
{
sendLog
(
LOG_TYPE
.
EXPOSURE
,
3
)
this
.
addChild
(
new
BalalaScene
())
...
...
src/scenes/loadingScene/loadingScene.ts
View file @
75e85328
...
...
@@ -43,6 +43,8 @@ export class LoadingScene extends Scene {
// 走下接口,这里有点小问题, 接口报错了, 还让进去吗
await
sendWebNet
(
WebNetName
.
index
,
{},
undefined
,
true
)
await
sendWebNet
(
WebNetName
.
projectRule
)
this
.
setProgressValue
(
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