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
1177af4e
Commit
1177af4e
authored
Dec 19, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
888532e9
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
982 additions
and
810 deletions
+982
-810
.gitignore
.gitignore
+1
-0
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+825
-739
pregress.prefab
assets/Bundles/MainGame/prefab/progress/pregress.prefab
+57
-37
PointDetailScene.scene
assets/Bundles/PointDetailScene/PointDetailScene.scene
+59
-9
AppTool.ts
assets/Scripts/AppTool.ts
+7
-0
OpenLuckyPanel.ts
assets/Scripts/Panels/OpenLuckyPanel.ts
+2
-1
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+2
-1
progress.ts
assets/Scripts/Scenes/MainGame/Components/progress.ts
+4
-6
Global.ts
assets/Scripts/Scenes/MainGame/Global.ts
+2
-1
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+8
-1
index.html
build/web-mobile/index.html
+12
-12
builder.json
profiles/v2/packages/builder.json
+3
-3
No files found.
.gitignore
View file @
1177af4e
...
@@ -33,3 +33,4 @@ profiles/v2/*/*
...
@@ -33,3 +33,4 @@ profiles/v2/*/*
!profiles/v2/packages/duiba-publish.json
!profiles/v2/packages/duiba-publish.json
!profiles/v2/packages/builder.json
!profiles/v2/packages/builder.json
!profiles/v2/packages/web-mobile.json
!profiles/v2/packages/web-mobile.json
extensions/shader-graph
\ No newline at end of file
assets/Bundles/MainGame/MainGame.scene
View file @
1177af4e
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/prefab/progress/pregress.prefab
View file @
1177af4e
...
@@ -32,10 +32,13 @@
...
@@ -32,10 +32,13 @@
},
},
{
{
"__id__": 24
"__id__": 24
},
{
"__id__": 26
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
6
"__id__": 2
9
},
},
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
...
@@ -578,42 +581,6 @@
...
@@ -578,42 +581,6 @@
"progressText": {
"progressText": {
"__id__": 19
"__id__": 19
},
},
"spProgressBgFrames": [
{
"__uuid__": "c07ec203-9026-4802-bc31-02f6c34d87d2@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "c07ec203-9026-4802-bc31-02f6c34d87d2@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "c07ec203-9026-4802-bc31-02f6c34d87d2@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "c07ec203-9026-4802-bc31-02f6c34d87d2@f9941",
"__expectedType__": "cc.SpriteFrame"
}
],
"spProgressBarFrames": [
{
"__uuid__": "0733b4bd-c829-4753-95fd-965ee28d1ef1@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "0733b4bd-c829-4753-95fd-965ee28d1ef1@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "0733b4bd-c829-4753-95fd-965ee28d1ef1@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "0733b4bd-c829-4753-95fd-965ee28d1ef1@f9941",
"__expectedType__": "cc.SpriteFrame"
}
],
"spProgressTexts": [
"spProgressTexts": [
"磁铁吸附加成中",
"磁铁吸附加成中",
"移动速度加成中",
"移动速度加成中",
...
@@ -626,6 +593,59 @@
...
@@ -626,6 +593,59 @@
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "198UPV/DFDXqy0sXvweoWN"
"fileId": "198UPV/DFDXqy0sXvweoWN"
},
},
{
"__type__": "057b4KT4QZKeoxpS+8IVX1z",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 27
},
"skinNodeArr": [
{
"__id__": 28
}
],
"_genSkinNode": true,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e9+FGhKJtNZbKHW2XtMJVt"
},
{
"__type__": "SkinNode",
"node": {
"__id__": 3
},
"type": 0,
"color1": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"color2": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"skin1": {
"__uuid__": "0733b4bd-c829-4753-95fd-965ee28d1ef1@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"skin2": {
"__uuid__": "a078d1dd-aa4a-49b7-86ea-b49619643a92@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
...
...
assets/Bundles/PointDetailScene/PointDetailScene.scene
View file @
1177af4e
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
},
},
"autoReleaseAssets": false,
"autoReleaseAssets": false,
"_globals": {
"_globals": {
"__id__": 4
5
"__id__": 4
7
},
},
"_id": "f1965cba-27e4-45cd-9549-9019c2db9777"
"_id": "f1965cba-27e4-45cd-9549-9019c2db9777"
},
},
...
@@ -91,6 +91,9 @@
...
@@ -91,6 +91,9 @@
},
},
{
{
"__id__": 44
"__id__": 44
},
{
"__id__": 45
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1644,31 +1647,78 @@
...
@@ -1644,31 +1647,78 @@
},
},
"_id": "e5c+APbZJLRKZiU7jzp7R+"
"_id": "e5c+APbZJLRKZiU7jzp7R+"
},
},
{
"__type__": "057b4KT4QZKeoxpS+8IVX1z",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"skinNodeArr": [
{
"__id__": 46
}
],
"_genSkinNode": true,
"_id": "4cZP60cSlIr62dpLNxg6J3"
},
{
"__type__": "SkinNode",
"node": {
"__id__": 32
},
"type": 0,
"color1": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"color2": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"skin1": {
"__uuid__": "40bfc9f0-b025-4d07-a7ee-ff83b2e1c324@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"skin2": {
"__uuid__": "a1bbddc3-e6f7-48dd-91f3-d7c4f3ca4af4@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
{
{
"__type__": "cc.SceneGlobals",
"__type__": "cc.SceneGlobals",
"ambient": {
"ambient": {
"__id__": 4
6
"__id__": 4
8
},
},
"shadows": {
"shadows": {
"__id__": 4
7
"__id__": 4
9
},
},
"_skybox": {
"_skybox": {
"__id__":
48
"__id__":
50
},
},
"fog": {
"fog": {
"__id__":
49
"__id__":
51
},
},
"octree": {
"octree": {
"__id__": 5
0
"__id__": 5
2
},
},
"skin": {
"skin": {
"__id__": 5
1
"__id__": 5
3
},
},
"lightProbeInfo": {
"lightProbeInfo": {
"__id__": 5
2
"__id__": 5
4
},
},
"postSettings": {
"postSettings": {
"__id__": 5
3
"__id__": 5
5
},
},
"bakedWithStationaryMainLight": false,
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
"bakedWithHighpLightmap": false
...
...
assets/Scripts/AppTool.ts
View file @
1177af4e
import
{
getUrlParams
}
from
"./Utils/WebNet/web/webTools"
;
export
function
isIos
()
{
export
function
isIos
()
{
return
navigator
.
userAgent
.
match
(
/iphone|ipod|ipad/gi
)
return
navigator
.
userAgent
.
match
(
/iphone|ipod|ipad/gi
)
}
}
export
function
isType1
()
{
return
+
getUrlParams
(
"type"
)
==
1
;
}
\ No newline at end of file
assets/Scripts/Panels/OpenLuckyPanel.ts
View file @
1177af4e
...
@@ -8,6 +8,7 @@ import { _asyncThrottle, sleep } from "../Utils/Utils";
...
@@ -8,6 +8,7 @@ import { _asyncThrottle, sleep } from "../Utils/Utils";
import
{
AudioMgr
}
from
"db://assets/core_tgx/base/AudioMgr"
;
import
{
AudioMgr
}
from
"db://assets/core_tgx/base/AudioMgr"
;
import
store
from
"../store/store"
;
import
store
from
"../store/store"
;
import
{
getUrlParams
}
from
"../Utils/WebNet/web/webTools"
;
import
{
getUrlParams
}
from
"../Utils/WebNet/web/webTools"
;
import
{
isType1
}
from
"../AppTool"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -44,7 +45,7 @@ export default class OpenLuckyPanel extends Panel {
...
@@ -44,7 +45,7 @@ export default class OpenLuckyPanel extends Panel {
start
()
{
start
()
{
const
{
type
,
num
=
1
}
=
this
.
data
;
const
{
type
,
num
=
1
}
=
this
.
data
;
if
(
+
getUrlParams
(
"type"
)
==
1
)
{
if
(
isType1
()
)
{
this
.
bag
.
getComponent
(
Sprite
).
spriteFrame
=
{
this
.
bag
.
getComponent
(
Sprite
).
spriteFrame
=
{
"sliver"
:
this
.
sliverBag
,
"sliver"
:
this
.
sliverBag
,
"gold"
:
this
.
goldBag
,
"gold"
:
this
.
goldBag
,
...
...
assets/Scripts/Scenes/HomeScene.ts
View file @
1177af4e
...
@@ -24,6 +24,7 @@ import shareStore from "../store/shareStore";
...
@@ -24,6 +24,7 @@ import shareStore from "../store/shareStore";
import
{
LOG_TYPE
,
sendLog
,
sendWebNetWithToken
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
LOG_TYPE
,
sendLog
,
sendWebNetWithToken
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
getUrlParams
}
from
"../Utils/WebNet/web/webTools"
;
import
{
getUrlParams
}
from
"../Utils/WebNet/web/webTools"
;
import
FirstSkinPanel
from
"../Panels/FirstSkinPanel"
;
import
FirstSkinPanel
from
"../Panels/FirstSkinPanel"
;
import
{
isType1
}
from
"../AppTool"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -61,7 +62,7 @@ export class HomeScene extends Scene {
...
@@ -61,7 +62,7 @@ export class HomeScene extends Scene {
@
property
(
Sprite
)
userImg
:
Sprite
;
@
property
(
Sprite
)
userImg
:
Sprite
;
// 默认头像
// 默认头像
avatar
=
+
getUrlParams
(
"type"
)
==
1
avatar
=
isType1
()
?
"https://yun.duiba.com.cn/polaris/img.546cbcd3811aa2265e50d495c078108a217450b7.png"
?
"https://yun.duiba.com.cn/polaris/img.546cbcd3811aa2265e50d495c078108a217450b7.png"
:
"https://yun.duiba.com.cn/polaris/%E9%BB%84%E8%89%B2user_img.7a7a3f11540b4fdb4645860ec3517c31564804bb.png"
;
:
"https://yun.duiba.com.cn/polaris/%E9%BB%84%E8%89%B2user_img.7a7a3f11540b4fdb4645860ec3517c31564804bb.png"
;
...
...
assets/Scripts/Scenes/MainGame/Components/progress.ts
View file @
1177af4e
...
@@ -10,10 +10,8 @@ export class progress extends Component {
...
@@ -10,10 +10,8 @@ export class progress extends Component {
@
property
(
Label
)
progressText
:
Label
=
null
;
@
property
(
Label
)
progressText
:
Label
=
null
;
@
property
([
SpriteFrame
])
spProgressBgFrames
:
SpriteFrame
[]
=
[];
// @property([SpriteFrame]) spProgressBgFrames: SpriteFrame[] = [];
// @property([SpriteFrame]) spProgressBarFrames: SpriteFrame[] = [];
@
property
([
SpriteFrame
])
spProgressBarFrames
:
SpriteFrame
[]
=
[];
@
property
([
String
])
spProgressTexts
:
string
[]
=
[];
@
property
([
String
])
spProgressTexts
:
string
[]
=
[];
...
@@ -40,8 +38,8 @@ export class progress extends Component {
...
@@ -40,8 +38,8 @@ export class progress extends Component {
*
*
*/
*/
changeSpFrame
(
type
)
{
changeSpFrame
(
type
)
{
this
.
progressBg
.
spriteFrame
=
this
.
spProgressBgFrames
[
type
];
//
this.progressBg.spriteFrame = this.spProgressBgFrames[type];
this
.
progressBar
.
spriteFrame
=
this
.
spProgressBarFrames
[
type
];
//
this.progressBar.spriteFrame = this.spProgressBarFrames[type];
this
.
progressText
.
string
=
this
.
spProgressTexts
[
type
];
this
.
progressText
.
string
=
this
.
spProgressTexts
[
type
];
}
}
...
...
assets/Scripts/Scenes/MainGame/Global.ts
View file @
1177af4e
import
{
_decorator
,
IVec2Like
,
math
,
View
}
from
"cc"
;
import
{
_decorator
,
IVec2Like
,
math
,
View
}
from
"cc"
;
import
{
isType1
}
from
"../../AppTool"
;
const
{
ccclass
}
=
_decorator
;
const
{
ccclass
}
=
_decorator
;
...
@@ -65,6 +66,6 @@ export class Global {
...
@@ -65,6 +66,6 @@ export class Global {
export
const
SkinName
=
{
export
const
SkinName
=
{
"sp_decoration_default"
:
"default
"
,
"sp_decoration_default"
:
isType1
()
?
"default"
:
"default_yellow
"
,
"sp_skin_snake_year"
:
"newYear2025"
,
"sp_skin_snake_year"
:
"newYear2025"
,
};
};
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
1177af4e
...
@@ -36,6 +36,7 @@ import { AudioMgr } from "../../../core_tgx/base/AudioMgr";
...
@@ -36,6 +36,7 @@ import { AudioMgr } from "../../../core_tgx/base/AudioMgr";
import
mobx
from
"mobx"
;
import
mobx
from
"mobx"
;
import
{
getUrlParam
}
from
"../../Utils/Utils"
;
import
{
getUrlParam
}
from
"../../Utils/Utils"
;
import
{
Snake
}
from
"./Snake"
;
import
{
Snake
}
from
"./Snake"
;
import
{
isType1
}
from
"../../AppTool"
;
const
{
reaction
,
}
=
mobx
;
const
{
reaction
,
}
=
mobx
;
...
@@ -351,9 +352,15 @@ export class MainGame extends Scene {
...
@@ -351,9 +352,15 @@ export class MainGame extends Scene {
"ai橙"
,
"ai橙"
,
"ai绿"
,
"ai绿"
,
"ai蓝"
,
"ai蓝"
,
"default"
,
"newYear2025"
,
"newYear2025"
,
];
];
if
(
isType1
())
{
skin
.
push
(
"default"
);
}
else
{
skin
.
push
(
"default_yellow"
);
}
node
.
getComponent
(
AISnake
)?.
init
({
node
.
getComponent
(
AISnake
)?.
init
({
nickName
:
nickName
,
nickName
:
nickName
,
tag
:
tag
,
tag
:
tag
,
...
...
build/web-mobile/index.html
View file @
1177af4e
...
@@ -98,14 +98,14 @@
...
@@ -98,14 +98,14 @@
</style>
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/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/17345
2498029
8/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/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/17345
2498029
8/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/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/17345
2498029
8/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/cocos-js/cc.js"
}}
</script>
</script>
<script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
2498029
8/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/17345
7788573
8/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
console
.
error
(
err
);
})
})
</script>
</script>
...
...
profiles/v2/packages/builder.json
View file @
1177af4e
...
@@ -45,8 +45,8 @@
...
@@ -45,8 +45,8 @@
"progress"
:
1
,
"progress"
:
1
,
"state"
:
"success"
,
"state"
:
"success"
,
"stage"
:
"build"
,
"stage"
:
"build"
,
"message"
:
"2024-12-1
8 20:33:49 build success in 4 min 9
s!"
,
"message"
:
"2024-12-1
9 11:12:20 build success in 55
s!"
,
"detailMessage"
:
"builder:build-project-total (
249472
ms)
\r
"
,
"detailMessage"
:
"builder:build-project-total (
54884
ms)
\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-1
8 20:29:40
"
,
"time"
:
"2024-12-1
9 11:11:25
"
,
"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