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
66fb53b3
Commit
66fb53b3
authored
Dec 17, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
e2848f2f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
379 deletions
+15
-379
ai蓝色.plist
assets/Bundles/MainGame/skin/ai蓝色.plist
+0
-71
ai蓝色.plist.meta
assets/Bundles/MainGame/skin/ai蓝色.plist.meta
+0
-155
ai蓝色.png
assets/Bundles/MainGame/skin/ai蓝色.png
+0
-0
ai蓝色.png.meta
assets/Bundles/MainGame/skin/ai蓝色.png.meta
+0
-134
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+0
-1
Snake.ts
assets/Scripts/Scenes/MainGame/Snake.ts
+0
-3
index.html
build/web-mobile/index.html
+12
-12
builder.json
profiles/v2/packages/builder.json
+3
-3
No files found.
assets/Bundles/MainGame/skin/ai蓝色.plist
deleted
100644 → 0
View file @
e2848f2f
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e C
omput
e
r//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
frames
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
body1.png
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
aliases
<
/k
e
y
>
<
a
rr
a
y/
>
<
k
e
y
>
spriteOffset
<
/k
e
y
>
<
string
>{
0
,
0
}<
/string
>
<
k
e
y
>
spriteSize
<
/k
e
y
>
<
string
>{
48
,
48
}<
/string
>
<
k
e
y
>
spriteSourceSize
<
/k
e
y
>
<
string
>{
48
,
48
}<
/string
>
<
k
e
y
>
textureRect
<
/k
e
y
>
<
string
>{{
0
,
0
}
,
{
48
,
48
}}<
/string
>
<
k
e
y
>
textureRotated
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
k
e
y
>
head.png
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
aliases
<
/k
e
y
>
<
a
rr
a
y/
>
<
k
e
y
>
spriteOffset
<
/k
e
y
>
<
string
>{
0
,
0
}<
/string
>
<
k
e
y
>
spriteSize
<
/k
e
y
>
<
string
>{
89
,
58
}<
/string
>
<
k
e
y
>
spriteSourceSize
<
/k
e
y
>
<
string
>{
89
,
58
}<
/string
>
<
k
e
y
>
textureRect
<
/k
e
y
>
<
string
>{{
48
,
0
}
,
{
89
,
58
}}<
/string
>
<
k
e
y
>
textureRotated
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
k
e
y
>
tail.png
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
aliases
<
/k
e
y
>
<
a
rr
a
y/
>
<
k
e
y
>
spriteOffset
<
/k
e
y
>
<
string
>{
0
,
0
}<
/string
>
<
k
e
y
>
spriteSize
<
/k
e
y
>
<
string
>{
88
,
48
}<
/string
>
<
k
e
y
>
spriteSourceSize
<
/k
e
y
>
<
string
>{
88
,
48
}<
/string
>
<
k
e
y
>
textureRect
<
/k
e
y
>
<
string
>{{
137
,
0
}
,
{
88
,
48
}}<
/string
>
<
k
e
y
>
textureRotated
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
metadata
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
format
<
/k
e
y
>
<
int
e
g
e
r
>
3
<
/int
e
g
e
r
>
<
k
e
y
>
pixelFormat
<
/k
e
y
>
<
string
>
RGBA8888
<
/string
>
<
k
e
y
>
premultiplyAlpha
<
/k
e
y
>
<
fa
ls
e
/
>
<
k
e
y
>
realTextureFileName
<
/k
e
y
>
<
string
>
ai
蓝色
.png
<
/string
>
<
k
e
y
>
size
<
/k
e
y
>
<
string
>{
225
,
58
}<
/string
>
<
k
e
y
>
smartupdate
<
/k
e
y
>
<
string
>
$TexturePacker:SmartUpdate:928c6404c9eaf0d678f1c5a626a7ce7f:6660dbf1acd3c3e30a624eaf17c5b135:a9aca0e2ab315ecad5cd7702dd6b08db$
<
/string
>
<
k
e
y
>
textureFileName
<
/k
e
y
>
<
string
>
ai
蓝色
.png
<
/string
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/plist
>
assets/Bundles/MainGame/skin/ai蓝色.plist.meta
deleted
100644 → 0
View file @
e2848f2f
{
"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"
}
}
assets/Bundles/MainGame/skin/ai蓝色.png
deleted
100644 → 0
View file @
e2848f2f
3.71 KB
assets/Bundles/MainGame/skin/ai蓝色.png.meta
deleted
100644 → 0
View file @
e2848f2f
{
"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"
}
}
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
66fb53b3
...
...
@@ -349,7 +349,6 @@ export class MainGame extends Scene {
const
skin
=
[
"ai橙"
,
"ai绿"
,
"ai蓝色"
,
"ai蓝"
,
"default"
,
"newYear2025"
,
...
...
assets/Scripts/Scenes/MainGame/Snake.ts
View file @
66fb53b3
...
...
@@ -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
;
}
...
...
build/web-mobile/index.html
View file @
66fb53b3
...
...
@@ -98,14 +98,14 @@
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/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/1734428
110845
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/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/1734428
110845
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/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/1734428
110845
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/cocos-js/cc.js"
}}
</script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
110845
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1734428
232934
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
...
...
profiles/v2/packages/builder.json
View file @
66fb53b3
...
...
@@ -45,8 +45,8 @@
"progress"
:
1
,
"state"
:
"success"
,
"stage"
:
"build"
,
"message"
:
"2024-12-17 17:3
5:50 build success in 40
s!"
,
"detailMessage"
:
"
builder:build-project-total (40380ms)
\r
"
,
"message"
:
"2024-12-17 17:3
8:18 build success in 1 min 5
s!"
,
"detailMessage"
:
"
%c兑吧发布插件 >> 版本号:1734428232934
\r
color: 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:3
5:09
"
,
"time"
:
"2024-12-17 17:3
7:12
"
,
"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