Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
SparkProjects
MingSnake_241120
Commits
c04ad07c
Commit
c04ad07c
authored
Dec 12, 2024
by
陈子煜
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # assets/Bundles/MainGame/MainGame.scene
parents
6aafc61d
6a5972ed
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
406 additions
and
110 deletions
+406
-110
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+373
-91
Target.ts
assets/Scripts/Scenes/MainGame/Components/Target.ts
+17
-1
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+0
-2
index.html
build/web-mobile/index.html
+12
-12
startGame.do.json
preview-template/mock/game/startGame.do.json
+1
-1
builder.json
profiles/v2/packages/builder.json
+3
-3
No files found.
assets/Bundles/MainGame/MainGame.scene
View file @
c04ad07c
This diff is collapsed.
Click to expand it.
assets/Scripts/Scenes/MainGame/Components/Target.ts
View file @
c04ad07c
...
@@ -30,6 +30,10 @@ export class Target extends Component {
...
@@ -30,6 +30,10 @@ export class Target extends Component {
@
property
([
Node
])
bannerArr
:
Node
[]
=
[];
@
property
([
Node
])
bannerArr
:
Node
[]
=
[];
@
property
(
Node
)
top
:
Node
=
null
;
@
property
(
Node
)
topCard
:
Node
=
null
;
constructor
()
{
constructor
()
{
super
();
super
();
Target
.
_ins
=
this
;
Target
.
_ins
=
this
;
...
@@ -92,10 +96,12 @@ export class Target extends Component {
...
@@ -92,10 +96,12 @@ export class Target extends Component {
}
}
async
showTarget3
()
{
async
showTarget3
()
{
this
.
showTopCard
()
await
this
.
showBanner
(
this
.
bannerArr
[
2
]);
await
this
.
showBanner
(
this
.
bannerArr
[
2
]);
}
}
async
showTarget2
()
{
async
showTarget2
()
{
this
.
showTop
()
const
{
time
,
length
}
=
Global
.
stageConfig
[
1
];
const
{
time
,
length
}
=
Global
.
stageConfig
[
1
];
this
.
goalTxt
.
string
=
`
${
time
}
秒长度达到
${
length
}
`
;
this
.
goalTxt
.
string
=
`
${
time
}
秒长度达到
${
length
}
`
;
...
@@ -106,6 +112,7 @@ export class Target extends Component {
...
@@ -106,6 +112,7 @@ export class Target extends Component {
}
}
async
showTarget1
()
{
async
showTarget1
()
{
this
.
showTop
()
const
{
time
}
=
Global
.
stageConfig
[
0
];
const
{
time
}
=
Global
.
stageConfig
[
0
];
this
.
goalTxt
.
string
=
`存活
${
time
}
秒`
;
this
.
goalTxt
.
string
=
`存活
${
time
}
秒`
;
this
.
bannerArr
[
0
].
getChildByName
(
"txt"
)
this
.
bannerArr
[
0
].
getChildByName
(
"txt"
)
...
@@ -114,6 +121,15 @@ export class Target extends Component {
...
@@ -114,6 +121,15 @@ export class Target extends Component {
await
this
.
showBanner
(
this
.
bannerArr
[
0
]);
await
this
.
showBanner
(
this
.
bannerArr
[
0
]);
}
}
showTopCard
()
{
this
.
topCard
.
active
=
true
;
this
.
top
.
active
=
false
;
}
showTop
()
{
this
.
top
.
active
=
true
;
this
.
topCard
.
active
=
false
}
private
_cd
=
0
;
private
_cd
=
0
;
...
@@ -137,7 +153,7 @@ export class Target extends Component {
...
@@ -137,7 +153,7 @@ export class Target extends Component {
cdTween
:
Tween
<
Target
>
=
null
;
cdTween
:
Tween
<
Target
>
=
null
;
startCd
(
cd
:
number
,
onComplete
=
()
=>
{})
{
startCd
(
cd
:
number
,
onComplete
=
()
=>
{
})
{
this
.
graphics
.
node
.
active
=
true
;
this
.
graphics
.
node
.
active
=
true
;
this
.
cd
=
this
.
totalCd
=
cd
;
this
.
cd
=
this
.
totalCd
=
cd
;
this
.
cdTween
=
tween
(
this
as
Target
)
this
.
cdTween
=
tween
(
this
as
Target
)
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
c04ad07c
...
@@ -212,8 +212,6 @@ export class MainGame extends Scene {
...
@@ -212,8 +212,6 @@ export class MainGame extends Scene {
async initStage() {
async initStage() {
let { currentStage } = gameStore.startInfo;
let { currentStage } = gameStore.startInfo;
currentStage = 3
// 初始化玩家
// 初始化玩家
this.player.init({
this.player.init({
// initEnergy: 10000
// initEnergy: 10000
...
...
build/web-mobile/index.html
View file @
c04ad07c
...
@@ -98,14 +98,14 @@
...
@@ -98,14 +98,14 @@
</style>
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.6.0.js"
></script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.6.0.js"
></script>
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
<!-- <script>eruda.init()</script>-->
...
@@ -118,20 +118,20 @@
...
@@ -118,20 +118,20 @@
</div>
</div>
<!-- Polyfills bundle. -->
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script
type=
"systemjs-importmap"
charset=
"utf-8"
>
<script
type=
"systemjs-importmap"
charset=
"utf-8"
>
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/cocos-js/cc.js"
}}
</script>
</script>
<script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
0917185
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173397
1997849
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
console
.
error
(
err
);
})
})
</script>
</script>
...
...
preview-template/mock/game/startGame.do.json
View file @
c04ad07c
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
"success"
:
true
,
"success"
:
true
,
"code"
:
""
,
"code"
:
""
,
"message"
:
""
,
"message"
:
""
,
"data"
:
"Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjlsXFGC8q3BgSsz56SCAcO6LiZx8tbmrjStn4UcGZq6/W+ZIm0IEma+v0iYkjGBT6bqBnMhA+9JKPvWXKnFJiNR2b8kEDC1Mjt2MH2penAaujIPcM6SAvaaZuTB04+Jtk
J98NCKq1ib5v/FUMmokJ2ofNdGPeuPZSIUN8ahCVVm0LEiJd9siI+wzg1thOd0KJQZW9YxHsu0HWY/jI/1JmUbQLqULqipVEC3e9okEe0ha7326T45Erlu0hVtbzzK6VvSIqosm8iwVaiI8PKZkxRtGZRbU7NRiG9E1bE3qr7BBcbrwC4DzLpeRVxZM3SeycegMncfxDX59mZqGYE6274++7czNkS2xHJBg5dTQFdHYFMGDAZM1l4853kvIKUkUexSfaG7mWLEYynXdF/jfosCEDLUNCBBzjHRPWEvLBL7PDUDi1vMW1y3TeOKUpkxYWGmZYkMROFK3+4vJOA7LnNM9Z4l51nolXIqTL3L9SbcttLGZMjBs1Dehz1AAJDLOXZG2Lj0q8njFRKxrG/2dNarOwKEIUt9cjXYvmZ+WkHMnqgv8RnSWnwOGkOAIlEGm2N/9heEukf+6pNxZAUkh+U
Q=="
"data"
:
"Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjlsXFGC8q3BgSsz56SCAcO6LiZx8tbmrjStn4UcGZq6/W+ZIm0IEma+v0iYkjGBT6bqBnMhA+9JKPvWXKnFJiNR2b8kEDC1Mjt2MH2penAaujIPcM6SAvaaZuTB04+Jtk
5VSYZXauvq4KmXW3GGRumeiiyEIA+ZXAopsUzjcknsRY6nZmKVj0NjiFtVGF84qiZnISqNrmwNrdHOQONlI0TLVPx0Bzlpich1zyMUMMkZ/7cV2CeMi6Sm84oR/risQdMtm7d9EPsIDnoL6i0TO+JLCfvbc2r4yxr3qVSjSnK8A2DqxrtTBtXV8BLNwPLVjtZLVP0MnLPT6PXS5TNsD/jRswCJPga523j5LQgkXjJLlRl83WRQ8/SrcECSAoTF0gHG0+rm8WuFVrvQadxzK8kWZertwqJhAKkAlaj5rOJIgfS7rfoxrqPFSG7JvnMFNyCJ5Z8e4SSC6R/G8pBB1js45fXO6HvLg1QrYCZp+yxNAhcvDgXSPMIHVQns9RFNrw5cC0a4gSW8qIqzNbbl12pfq/OYvV0TjVFIZuGGYAlDrmSifBtQbh3yuT4pd6NH/inb/RXr6U3M6zCet4l0foa
Q=="
}
}
\ No newline at end of file
profiles/v2/packages/builder.json
View file @
c04ad07c
...
@@ -45,8 +45,8 @@
...
@@ -45,8 +45,8 @@
"progress"
:
1
,
"progress"
:
1
,
"state"
:
"success"
,
"state"
:
"success"
,
"stage"
:
"build"
,
"stage"
:
"build"
,
"message"
:
"2024-12-12 10:
36:13 build success in 56
s!"
,
"message"
:
"2024-12-12 10:
54:03 build success in 45
s!"
,
"detailMessage"
:
"%c兑吧发布插件 >> 版本号:173397
0917185
\r
color: green
\r
"
,
"detailMessage"
:
"%c兑吧发布插件 >> 版本号:173397
1997849
\r
color: green
\r
"
,
"options"
:
{
"options"
:
{
"name"
:
"cocos-template-3d"
,
"name"
:
"cocos-template-3d"
,
"server"
:
""
,
"server"
:
""
,
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
"__version__"
:
"1.3.8"
,
"__version__"
:
"1.3.8"
,
"logDest"
:
"project://temp/builder/log/web-mobile2024-11-6 15-39.log"
"logDest"
:
"project://temp/builder/log/web-mobile2024-11-6 15-39.log"
},
},
"time"
:
"2024-12-12 10:
35:16
"
,
"time"
:
"2024-12-12 10:
53:17
"
,
"dirty"
:
false
"dirty"
:
false
}
}
}
}
...
...
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