Commit 888532e9 authored by haiyoucuv's avatar haiyoucuv

init

parent 2d803db5
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
<key>size</key> <key>size</key>
<string>{96,250}</string> <string>{96,250}</string>
<key>smartupdate</key> <key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:3920ced761f4b7d8d4e4239a7986f60e:1811c16772c059d46163d4a2df8329de:d258758acfd7c2dc4f771a427c5ecb8e$</string> <string>$TexturePacker:SmartUpdate:f3747a88d5be8765c98e178df8606261:e04b9c6cb301438abf0a31ec725b020c:d258758acfd7c2dc4f771a427c5ecb8e$</string>
<key>textureFileName</key> <key>textureFileName</key>
<string>default.png</string> <string>default.png</string>
</dict> </dict>
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
"imageUuidOrDatabaseUri": "e58815ff-054a-4166-ada0-a9649a89a4f7", "imageUuidOrDatabaseUri": "e58815ff-054a-4166-ada0-a9649a89a4f7",
"isUuid": true, "isUuid": true,
"visible": false, "visible": false,
"minfilter": "linear", "minfilter": "nearest",
"magfilter": "linear", "magfilter": "nearest",
"mipfilter": "none", "mipfilter": "none",
"anisotropy": 0 "anisotropy": 0
}, },
......
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 771.6521739130435, "_orthoHeight": 739.6666666666667,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
...@@ -1571,7 +1571,7 @@ ...@@ -1571,7 +1571,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1624, "width": 1624,
"height": 750.0000000000001 "height": 750
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
......
...@@ -240,6 +240,7 @@ export class MainGame extends Scene { ...@@ -240,6 +240,7 @@ export class MainGame extends Scene {
tag: this.player.tag, tag: this.player.tag,
nickName: "我", nickName: "我",
skinName: SkinName[gameStore.startInfo.currentDressUp], skinName: SkinName[gameStore.startInfo.currentDressUp],
// skinName: "newYear2025",
}); });
// 初始化食物 // 初始化食物
......
...@@ -194,24 +194,19 @@ export class Snake extends Component { ...@@ -194,24 +194,19 @@ export class Snake extends Component {
// 创建尾巴节点 // 创建尾巴节点
const tile = bodyPool.get() || instantiate(this.bodyPrefab); const tile = bodyPool.get() || instantiate(this.bodyPrefab);
tile.name = "tail";
tile.angle = angle; tile.angle = angle;
tile.setPosition(x, y); tile.setPosition(x, y);
tile.setScale(scale, scale); tile.setScale(scale, scale);
if (this.imgTail) { tile.getComponent(Sprite).spriteFrame = this.imgTail;
tile.getComponent(Sprite).spriteFrame = this.imgTail; const tw = this.imgTail.originalSize.width;
const tw = this.imgTail.originalSize.width; tile.getComponent(UITransform).anchorX = (bw / 2) / tw;
tile.getComponent(UITransform).anchorX = (bw / 2) / tw;
} else {
tile.getComponent(Sprite).spriteFrame = this.imgBodyArr[0];
}
tile.getComponent(Collider2D).tag = this.tag; tile.getComponent(Collider2D).tag = this.tag;
this.node.insertChild(tile, 0); this.node.insertChild(tile, 0);
this.bodyArr.push(tile); this.bodyArr.push(tile);
const lastLen = this.length;
this.length = 2; this.length = 2;
// 创建身体节点 // 创建身体节点
...@@ -240,7 +235,7 @@ export class Snake extends Component { ...@@ -240,7 +235,7 @@ export class Snake extends Component {
bodyIndex = 0; bodyIndex = 0;
} }
} }
this.imgTail = skin.getSpriteFrame("tail"); this.imgTail = skin.getSpriteFrame("tail") || this.imgBodyArr[0];
} }
onEnable() { onEnable() {
......
...@@ -98,14 +98,14 @@ ...@@ -98,14 +98,14 @@
</style> </style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734522676240/src/assets/plugin/zepto.min.js"></script> <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/1734522676240/src/assets/plugin/declare-process.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/1734522676240/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/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734522676240/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/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734522676240/src/assets/plugin/rem.min.js"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/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/1734522676240/style.css" />--> <!-- <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/1734522676240/custom.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/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/1734522676240/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734522676240/src/system.bundle.js" charset="utf-8"></script> <script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734522676240/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>--> <!--<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 type="systemjs-importmap" charset="utf-8"> <script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734522676240/cocos-js/cc.js"}} {"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/cocos-js/cc.js"}}
</script> </script>
<script> <script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1734522676240/index.js').catch(function (err) { System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1734524980298/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
"success": true, "success": true,
"code": "", "code": "",
"message": "", "message": "",
"data": "Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjDzXBIud5f2y2oC6Ki0109l9PK3970fA4YNNg9BWbN0obGh1RnATWGBoBIiylfsdX6vDnBOFTYfYWIfQ8pUyTvBFYxDJsaYPwtGs0zqwHQcbOea5LpwFoQVyq0tYokQ6HzZZWbQ7K7YkMK4FDVVd+T5KxAelmhRlYUhGZJSq3pJulcSb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P3uNhMo+HJ0g=="
} }
\ No newline at end of file
...@@ -48,7 +48,7 @@ const startInfo = { ...@@ -48,7 +48,7 @@ const startInfo = {
barrierFlag: true, // 本局游戏难度是否上升 barrierFlag: true, // 本局游戏难度是否上升
firstGameFlag: true, // 本局是否第一局,为true则有一,二,无尽模式三个阶段的区别 firstGameFlag: true, // 本局是否第一局,为true则有一,二,无尽模式三个阶段的区别
accumulateLuckNum: 3, // 当局累计获得福袋数量 accumulateLuckNum: 3, // 当局累计获得福袋数量
initScore: 30, // 当局初始分数值 initScore: 50, // 当局初始分数值
limitLuckNum: 5, // 当日上限可获得福袋数 limitLuckNum: 5, // 当日上限可获得福袋数
downArea: [3, 2, 1], // 掉落分布,集合,比如每日上限6个,这里配置返回1、2、3 downArea: [3, 2, 1], // 掉落分布,集合,比如每日上限6个,这里配置返回1、2、3
currentAcquireNum: 5, // 当局剩余可获得福袋数,不包含accumulateLuckNum,当局累计获得福袋数量 currentAcquireNum: 5, // 当局剩余可获得福袋数,不包含accumulateLuckNum,当局累计获得福袋数量
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
"progress": 1, "progress": 1,
"state": "success", "state": "success",
"stage": "build", "stage": "build",
"message": "2024-12-18 19:53:16 build success in 2 min!", "message": "2024-12-18 20:33:49 build success in 4 min 9 s!",
"detailMessage": "refresh db internal success\r", "detailMessage": "builder:build-project-total (249472ms)\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 19:51:16", "time": "2024-12-18 20:29:40",
"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