Commit 1177af4e authored by haiyoucuv's avatar haiyoucuv

init

parent 888532e9
...@@ -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
This diff is collapsed.
...@@ -32,10 +32,13 @@ ...@@ -32,10 +32,13 @@
}, },
{ {
"__id__": 24 "__id__": 24
},
{
"__id__": 26
} }
], ],
"_prefab": { "_prefab": {
"__id__": 26 "__id__": 29
}, },
"_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": {
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
}, },
"autoReleaseAssets": false, "autoReleaseAssets": false,
"_globals": { "_globals": {
"__id__": 45 "__id__": 47
}, },
"_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__": 46 "__id__": 48
}, },
"shadows": { "shadows": {
"__id__": 47 "__id__": 49
}, },
"_skybox": { "_skybox": {
"__id__": 48 "__id__": 50
}, },
"fog": { "fog": {
"__id__": 49 "__id__": 51
}, },
"octree": { "octree": {
"__id__": 50 "__id__": 52
}, },
"skin": { "skin": {
"__id__": 51 "__id__": 53
}, },
"lightProbeInfo": { "lightProbeInfo": {
"__id__": 52 "__id__": 54
}, },
"postSettings": { "postSettings": {
"__id__": 53 "__id__": 55
}, },
"bakedWithStationaryMainLight": false, "bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false "bakedWithHighpLightmap": false
......
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
...@@ -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,
......
...@@ -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";
......
...@@ -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];
} }
......
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",
}; };
...@@ -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,
......
...@@ -98,14 +98,14 @@ ...@@ -98,14 +98,14 @@
</style> </style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/assets/plugin/zepto.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/assets/plugin/declare-process.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/assets/plugin/jszip.min.v3.10.1.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/assets/plugin/rem.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/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/1734524980298/style.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/custom.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/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/1734524980298/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/system.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>--> <!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/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/1734524980298/cocos-js/cc.js"}} {"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/cocos-js/cc.js"}}
</script> </script>
<script> <script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/index.js').catch(function (err) { System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1734577885738/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
"progress": 1, "progress": 1,
"state": "success", "state": "success",
"stage": "build", "stage": "build",
"message": "2024-12-18 20:33:49 build success in 4 min 9 s!", "message": "2024-12-19 11:12:20 build success in 55 s!",
"detailMessage": "builder:build-project-total (249472ms)\r", "detailMessage": "builder:build-project-total (54884ms)\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-18 20:29:40", "time": "2024-12-19 11:11:25",
"dirty": false "dirty": false
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment