Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Cocos-GoldenMiner
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
等吃饭
Cocos-GoldenMiner
Commits
995852ef
Commit
995852ef
authored
Apr 18, 2023
by
Friends233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix游戏返回配置项
parent
2fa3cd26
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
25 deletions
+46
-25
Game.fire
assets/Scenes/Game.fire
+16
-16
GameScene.ts
assets/Script/GameScene.ts
+24
-3
index.js
build/web-mobile/assets/main/index.js
+1
-1
index.html
build/web-mobile/index.html
+3
-3
main.js
build/web-mobile/main.js
+2
-2
No files found.
assets/Scenes/Game.fire
View file @
995852ef
...
...
@@ -584,7 +584,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
37PIdiibtNhZXobCTUtIet
"
"_id": "
e60/5zmCpJdaCo3Lh38Bja
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -614,7 +614,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
d71+WIthJBJqUddrXKBzFC
"
"_id": "
afppgo0YFIT465OSFyWm35
"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
...
...
@@ -2352,7 +2352,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
1depVa0mRBaoRbfvG4aN8y
"
"_id": "
daozOcvExOJ60ifbPZUTCe
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -2382,7 +2382,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
7enKgLYNlEC5/0N0VkvvYR
"
"_id": "
c6XmUdb7tC/qF3xp92UDKx
"
},
{
"__type__": "cc.Node",
...
...
@@ -2444,7 +2444,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
68N97CYAFGBLg4BZNzq8u6
"
"_id": "
26Uu41ED1AVqLsp/KWd9/z
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -2474,7 +2474,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
f3qq2OtWBGXKrMispHkjuX
"
"_id": "
43qgGjKnpF94ixnz3IAja9
"
},
{
"__type__": "cc.Node",
...
...
@@ -2536,7 +2536,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
5ap/Tmj5NCMYxer3sY74tG
"
"_id": "
6bgOy8Sh5AQZjmWK5CPYCC
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -2566,7 +2566,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
2euSsdjftDGLmOlGoY/1vr
"
"_id": "
cdj87ZvLJKZotnyJmWTBBg
"
},
{
"__type__": "cc.Node",
...
...
@@ -2628,7 +2628,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
0fQ5tBsUJPUJ342jbTq18N
"
"_id": "
a2VJQ8w9xAe6zPmmBCrhBJ
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -2658,7 +2658,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
16m//oLoVC15Dj58sFnsY6
"
"_id": "
79BJMekDlHpJq8rdfuFhkD
"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
...
...
@@ -4154,7 +4154,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
f3fJsGBvpAjpZZubT5D9VG
"
"_id": "
ccNyOO7R9G2JLAWQKJxqPl
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -4184,7 +4184,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
64SQnJizFA4JH//Dvw9jSd
"
"_id": "
210KPLm65L/6SFVc0c4lZf
"
},
{
"__type__": "cc.Node",
...
...
@@ -4246,7 +4246,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
aeNdt761RETKzQCYr6lK74
"
"_id": "
16s5Phn8RIhaV80BwHS6e0
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -4276,7 +4276,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
7b2RiM9D9EDIuvJlQnfVdx
"
"_id": "
e0ntEvAadCU7o8HXRShWxq
"
},
{
"__type__": "cc.Node",
...
...
@@ -4338,7 +4338,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
f06eJm0cpMJZwd/0prv465
"
"_id": "
3eXEEodLdPh4P37Gkwv1CV
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -4368,7 +4368,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
9bqW56wrFE8bxwMlNQ3L6v
"
"_id": "
5dP8Bz4+5Pbb88paW9pqtK
"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
...
...
assets/Script/GameScene.ts
View file @
995852ef
...
...
@@ -138,7 +138,29 @@ export default class GameScene extends cc.Component {
testInit
()
{
console
.
log
(
'测试初始化'
)
exportEvent
.
fire
(
CUSTOM_EVENT
.
GAME_INIT
,
{
countDowns
:
[
999
,
10
,
10
]
LevelInfo
:
[
{
level
:
1
,
/** 目标数量 */
num
:
10
,
/** 倒计时 */
cds
:
1
,
},
{
level
:
1
,
/** 目标数量 */
num
:
5
,
/** 倒计时 */
cds
:
30
,
},
{
level
:
1
,
/** 目标数量 */
num
:
8
,
/** 倒计时 */
cds
:
30
,
}
]
})
}
...
...
@@ -267,11 +289,10 @@ export default class GameScene extends cc.Component {
/** 游戏结束 */
gameOver
()
{
this
.
isGameOver
=
true
console
.
log
(
'gameOver'
)
this
.
setClipState
(
CLIP_STATE
.
GAME_OVER
)
this
.
unschedule
(
this
.
startCd
)
exportEvent
.
fire
(
CUSTOM_EVENT
.
GAME_OVER
,
{
...
this
.
gameConfig
.
LevelInfo
[
this
.
actLevel
-
1
],
...
this
.
gameConfig
.
LevelInfo
[
this
.
actLevel
],
score
:
this
.
starNum
,
level
:
this
.
actLevel
})
...
...
build/web-mobile/assets/main/index.js
View file @
995852ef
This diff is collapsed.
Click to expand it.
build/web-mobile/index.html
View file @
995852ef
...
...
@@ -40,7 +40,7 @@
<!-- <script src="//yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js" crossorigin="anonymous"></script>-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
84889074
/style-mobile.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
91625573
/style-mobile.css"
/>
<style>
...
...
@@ -90,9 +90,9 @@
</div>
</div>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
84889074
/src/settings.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
91625573
/src/settings.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
84889074
/main.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
91625573
/main.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
>
(
function
()
{
...
...
build/web-mobile/main.js
View file @
995852ef
window
.
__remoteUrl__
=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
84889074
/"
;
window
.
__remoteUrl__
=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
91625573
/"
;
window
.
__remoteAssets__
=
window
.
__remoteUrl__
+
"assets/"
;
window
.
__version__
=
16817
84889074
;
window
.
__version__
=
16817
91625573
;
window
.
__ENV__
=
"prod"
;
window
.
boot
=
function
()
{
...
...
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