Commit 66fb53b3 authored by haiyoucuv's avatar haiyoucuv

init

parent e2848f2f
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>body1.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{48,48}</string>
<key>spriteSourceSize</key>
<string>{48,48}</string>
<key>textureRect</key>
<string>{{0,0},{48,48}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>head.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{89,58}</string>
<key>spriteSourceSize</key>
<string>{89,58}</string>
<key>textureRect</key>
<string>{{48,0},{89,58}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>tail.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{88,48}</string>
<key>spriteSourceSize</key>
<string>{88,48}</string>
<key>textureRect</key>
<string>{{137,0},{88,48}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>format</key>
<integer>3</integer>
<key>pixelFormat</key>
<string>RGBA8888</string>
<key>premultiplyAlpha</key>
<false/>
<key>realTextureFileName</key>
<string>ai蓝色.png</string>
<key>size</key>
<string>{225,58}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:928c6404c9eaf0d678f1c5a626a7ce7f:6660dbf1acd3c3e30a624eaf17c5b135:a9aca0e2ab315ecad5cd7702dd6b08db$</string>
<key>textureFileName</key>
<string>ai蓝色.png</string>
</dict>
</dict>
</plist>
{
"ver": "1.0.8",
"importer": "sprite-atlas",
"imported": true,
"uuid": "ee1d024e-bd93-4adb-bfb5-23e5023de78a",
"files": [
".json"
],
"subMetas": {
"da8cd": {
"importer": "sprite-frame",
"uuid": "ee1d024e-bd93-4adb-bfb5-23e5023de78a@da8cd",
"displayName": "",
"id": "da8cd",
"name": "body1",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 48,
"height": 48,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1abb2560-ed2e-41ff-bca5-db672436b69f@6c48a",
"atlasUuid": "ee1d024e-bd93-4adb-bfb5-23e5023de78a"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"9296f": {
"importer": "sprite-frame",
"uuid": "ee1d024e-bd93-4adb-bfb5-23e5023de78a@9296f",
"displayName": "",
"id": "9296f",
"name": "head",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 48,
"trimY": 0,
"width": 89,
"height": 58,
"rawWidth": 89,
"rawHeight": 58,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1abb2560-ed2e-41ff-bca5-db672436b69f@6c48a",
"atlasUuid": "ee1d024e-bd93-4adb-bfb5-23e5023de78a"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"75b91": {
"importer": "sprite-frame",
"uuid": "ee1d024e-bd93-4adb-bfb5-23e5023de78a@75b91",
"displayName": "",
"id": "75b91",
"name": "tail",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 137,
"trimY": 0,
"width": 88,
"height": 48,
"rawWidth": 88,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1abb2560-ed2e-41ff-bca5-db672436b69f@6c48a",
"atlasUuid": "ee1d024e-bd93-4adb-bfb5-23e5023de78a"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"atlasTextureName": "ai蓝色.png",
"format": 3,
"uuid": "ee1d024e-bd93-4adb-bfb5-23e5023de78a",
"textureUuid": "1abb2560-ed2e-41ff-bca5-db672436b69f@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "1abb2560-ed2e-41ff-bca5-db672436b69f",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1abb2560-ed2e-41ff-bca5-db672436b69f@6c48a",
"displayName": "ai蓝色",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "1abb2560-ed2e-41ff-bca5-db672436b69f",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "1abb2560-ed2e-41ff-bca5-db672436b69f@f9941",
"displayName": "ai蓝色",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 225,
"height": 58,
"rawWidth": 225,
"rawHeight": 58,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-112.5,
-29,
0,
112.5,
-29,
0,
-112.5,
29,
0,
112.5,
29,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
58,
225,
58,
0,
0,
225,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-112.5,
-29,
0
],
"maxPos": [
112.5,
29,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1abb2560-ed2e-41ff-bca5-db672436b69f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "1abb2560-ed2e-41ff-bca5-db672436b69f@6c48a"
}
}
......@@ -349,7 +349,6 @@ export class MainGame extends Scene {
const skin = [
"ai橙",
"ai绿",
"ai蓝色",
"ai蓝",
"default",
"newYear2025",
......
......@@ -224,13 +224,11 @@ export class Snake extends Component {
}
setSkin(skinName: string) {
console.log(`skinName123123: ${skinName}`);
if(!skinCache[skinName]){
skinCache[skinName] = assetManager.getBundle("MainGame").get(`skin/${skinName}`, SpriteAtlas);
}
const skin = skinCache[skinName];
console.log(`skinName123123: ${skinName}`, !!skin);
this.imgHead = skin.getSpriteFrame("head");
......@@ -268,7 +266,6 @@ export class Snake extends Component {
if (otherCollider.group === PhysicsGroup["Body"] && otherCollider.tag != this.tag) {
if (this.invincibleTime > 0) {
console.warn(" 无敌的我")
this.breakDefense()
return;
}
......
......@@ -98,14 +98,14 @@
</style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/src/assets/plugin/rem.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/src/assets/plugin/rem.min.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/1734428110845/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
......@@ -118,20 +118,20 @@
</div>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/cocos-js/cc.js"}}
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/cocos-js/cc.js"}}
</script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428110845/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428232934/index.js').catch(function (err) {
console.error(err);
})
</script>
......
......@@ -45,8 +45,8 @@
"progress": 1,
"state": "success",
"stage": "build",
"message": "2024-12-17 17:35:50 build success in 40 s!",
"detailMessage": "builder:build-project-total (40380ms)\r",
"message": "2024-12-17 17:38:18 build success in 1 min 5 s!",
"detailMessage": "%c兑吧发布插件 >> 版本号:1734428232934\rcolor: green\r",
"options": {
"name": "cocos-template-3d",
"server": "",
......@@ -109,7 +109,7 @@
"__version__": "1.3.8",
"logDest": "project://temp/builder/log/web-mobile2024-11-6 15-39.log"
},
"time": "2024-12-17 17:35:09",
"time": "2024-12-17 17:37:12",
"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