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
d7cee86e
Commit
d7cee86e
authored
Apr 18, 2023
by
Friends233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置修改
parent
8fd33eda
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
GameConfig.ts
assets/Script/Config/GameConfig.ts
+6
-6
GameScene.ts
assets/Script/GameScene.ts
+2
-2
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/Script/Config/GameConfig.ts
View file @
d7cee86e
...
...
@@ -16,6 +16,12 @@ export const CUSTOM_EVENT = {
/** 销毁游戏场景 */
GAME_DESTROY
:
'GAME_DESTROY'
}
/** 游戏进度颜色 */
export
const
GameColors
=
[
[
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
],
[
'#FF9400'
,
'#FF6C00'
,
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
],
[
'#FFD34A'
,
'#FFC300'
,
'#FFB637'
,
'#FF9400'
,
'#FF6C00'
,
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
]
]
export
const
Config
=
{
/** 爪子能伸出去的长度 */
...
...
@@ -50,8 +56,6 @@ export const Config = {
num
:
10
,
/** 倒计时 */
cds
:
30
,
/** 游戏进度颜色 */
colors
:
[
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
],
},
{
level
:
1
,
...
...
@@ -59,8 +63,6 @@ export const Config = {
num
:
5
,
/** 倒计时 */
cds
:
30
,
/** 游戏进度颜色 */
colors
:
[
'#FF9400'
,
'#FF6C00'
,
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
],
},
{
level
:
1
,
...
...
@@ -68,8 +70,6 @@ export const Config = {
num
:
8
,
/** 倒计时 */
cds
:
30
,
/** 游戏进度颜色 */
colors
:
[
'#FFD34A'
,
'#FFC300'
,
'#FFB637'
,
'#FF9400'
,
'#FF6C00'
,
'#EC5F33'
,
'#E52800'
,
'#CA1D00'
]
}
],
...
...
assets/Script/GameScene.ts
View file @
d7cee86e
...
...
@@ -7,7 +7,7 @@
import
Svga
from
"./Components/Svga/Svga"
;
import
{
SvgaEvent
}
from
"./Components/Svga/SvgaEvent"
;
import
{
CUSTOM_EVENT
,
Config
}
from
"./Config/GameConfig"
;
import
{
CUSTOM_EVENT
,
Config
,
GameColors
}
from
"./Config/GameConfig"
;
import
exportEvent
from
"./exportEvent"
;
import
{
getProbability
,
getRandomArrayElements
,
loadGameResources
,
numToChinese
,
randomNum
,
getUrlParam
}
from
"./utils"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
@@ -327,7 +327,7 @@ export default class GameScene extends cc.Component {
this
.
surplusStar
--
if
(
key
>=
this
.
levelObjectives
)
return
const
node
=
cc
.
instantiate
(
this
.
procItem
),
colors
=
this
.
actLevelInfo
.
colors
||
[]
const
node
=
cc
.
instantiate
(
this
.
procItem
),
colors
=
GameColors
?.[
this
.
actLevel
]
||
[]
node
.
color
=
cc
.
color
(
colors
[
key
]
||
this
.
gameConfig
.
defaultColor
)
node
.
setParent
(
proc
)
this
.
starNum
++
...
...
build/web-mobile/assets/main/index.js
View file @
d7cee86e
This diff is collapsed.
Click to expand it.
build/web-mobile/index.html
View file @
d7cee86e
...
...
@@ -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
34981276
/style-mobile.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
84379508
/style-mobile.css"
/>
<style>
...
...
@@ -90,9 +90,9 @@
</div>
</div>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
34981276
/src/settings.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
84379508
/src/settings.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
34981276
/main.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
84379508
/main.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
>
(
function
()
{
...
...
build/web-mobile/main.js
View file @
d7cee86e
window
.
__remoteUrl__
=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
34981276
/"
;
window
.
__remoteUrl__
=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16817
84379508
/"
;
window
.
__remoteAssets__
=
window
.
__remoteUrl__
+
"assets/"
;
window
.
__version__
=
16817
34981276
;
window
.
__version__
=
16817
84379508
;
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