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
888532e9
Commit
888532e9
authored
Dec 18, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
2d803db5
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
32 deletions
+28
-32
default.plist
assets/Bundles/MainGame/skin/default.plist
+1
-1
default.png
assets/Bundles/MainGame/skin/default.png
+0
-0
default.png.meta
assets/Bundles/MainGame/skin/default.png.meta
+2
-2
PointDetailScene.scene
assets/Bundles/PointDetailScene/PointDetailScene.scene
+2
-2
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+1
-0
Snake.ts
assets/Scripts/Scenes/MainGame/Snake.ts
+5
-10
index.html
build/web-mobile/index.html
+12
-12
startGame.do.json
preview-template/mock/game/startGame.do.json
+1
-1
startGame数据生成.mjs
preview-template/mock/game/startGame数据生成.mjs
+1
-1
builder.json
profiles/v2/packages/builder.json
+3
-3
No files found.
assets/Bundles/MainGame/skin/default.plist
View file @
888532e9
...
...
@@ -138,7 +138,7 @@
<
k
e
y
>
size
<
/k
e
y
>
<
string
>{
96
,
250
}<
/string
>
<
k
e
y
>
smartupdate
<
/k
e
y
>
<
string
>
$TexturePacker:SmartUpdate:
3920ced761f4b7d8d4e4239a7986f60e:1811c16772c059d46163d4a2df8329de
:d258758acfd7c2dc4f771a427c5ecb8e$
<
/string
>
<
string
>
$TexturePacker:SmartUpdate:
f3747a88d5be8765c98e178df8606261:e04b9c6cb301438abf0a31ec725b020c
:d258758acfd7c2dc4f771a427c5ecb8e$
<
/string
>
<
k
e
y
>
textureFileName
<
/k
e
y
>
<
string
>
default.png
<
/string
>
<
/
d
i
c
t
>
...
...
assets/Bundles/MainGame/skin/default.png
View replaced file @
2d803db5
View file @
888532e9
5.27 KB
|
W:
|
H:
5.66 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/Bundles/MainGame/skin/default.png.meta
View file @
888532e9
...
...
@@ -20,8 +20,8 @@
"imageUuidOrDatabaseUri": "e58815ff-054a-4166-ada0-a9649a89a4f7",
"isUuid": true,
"visible": false,
"minfilter": "
linear
",
"magfilter": "
linear
",
"minfilter": "
nearest
",
"magfilter": "
nearest
",
"mipfilter": "none",
"anisotropy": 0
},
...
...
assets/Bundles/PointDetailScene/PointDetailScene.scene
View file @
888532e9
...
...
@@ -182,7 +182,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 7
71.6521739130435
,
"_orthoHeight": 7
39.6666666666667
,
"_near": 1,
"_far": 2000,
"_color": {
...
...
@@ -1571,7 +1571,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1624,
"height": 750
.0000000000001
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
888532e9
...
...
@@ -240,6 +240,7 @@ export class MainGame extends Scene {
tag: this.player.tag,
nickName: "我",
skinName: SkinName[gameStore.startInfo.currentDressUp],
// skinName: "newYear2025",
});
// 初始化食物
...
...
assets/Scripts/Scenes/MainGame/Snake.ts
View file @
888532e9
...
...
@@ -194,24 +194,19 @@ export class Snake extends Component {
// 创建尾巴节点
const
tile
=
bodyPool
.
get
()
||
instantiate
(
this
.
bodyPrefab
);
tile
.
name
=
"tail"
;
tile
.
angle
=
angle
;
tile
.
setPosition
(
x
,
y
);
tile
.
setScale
(
scale
,
scale
);
if
(
this
.
imgTail
)
{
tile
.
getComponent
(
Sprite
).
spriteFrame
=
this
.
imgTail
;
const
tw
=
this
.
imgTail
.
originalSize
.
width
;
tile
.
getComponent
(
UITransform
).
anchorX
=
(
bw
/
2
)
/
tw
;
}
else
{
tile
.
getComponent
(
Sprite
).
spriteFrame
=
this
.
imgBodyArr
[
0
];
}
tile
.
getComponent
(
Sprite
).
spriteFrame
=
this
.
imgTail
;
const
tw
=
this
.
imgTail
.
originalSize
.
width
;
tile
.
getComponent
(
UITransform
).
anchorX
=
(
bw
/
2
)
/
tw
;
tile
.
getComponent
(
Collider2D
).
tag
=
this
.
tag
;
this
.
node
.
insertChild
(
tile
,
0
);
this
.
bodyArr
.
push
(
tile
);
const
lastLen
=
this
.
length
;
this
.
length
=
2
;
// 创建身体节点
...
...
@@ -240,7 +235,7 @@ export class Snake extends Component {
bodyIndex
=
0
;
}
}
this
.
imgTail
=
skin
.
getSpriteFrame
(
"tail"
);
this
.
imgTail
=
skin
.
getSpriteFrame
(
"tail"
)
||
this
.
imgBodyArr
[
0
]
;
}
onEnable
()
{
...
...
build/web-mobile/index.html
View file @
888532e9
...
...
@@ -98,14 +98,14 @@
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/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/173452
2676240
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/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/173452
2676240
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/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/173452
2676240
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/cocos-js/cc.js"
}}
</script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
2676240
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173452
4980298
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
...
...
preview-template/mock/game/startGame.do.json
View file @
888532e9
...
...
@@ -2,5 +2,5 @@
"success"
:
true
,
"code"
:
""
,
"message"
:
""
,
"data"
:
"Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjDzXBIud5f2y2oC6Ki0109
l9PK3970fA4YNNg9BWbN0obGh1RnATWGBoBIiylfsdX6vDnBOFTYfYWIfQ8pUyTvBFYxDJsaYPwtGs0zqwHQcbOea5LpwFoQVyq0tYokQ6HzZZWbQ7K7YkMK4FDVVd+T5KxAelmhRlYUhGZJSq3pJulcSbkuyzfkXfT6wj1cj+CIhaUdrBe44MhaLnP+nDyW+VblYmYgiiKcr7CxACmKpU2FmVeN4qbcFZ60E0q3+6SOCzA/n3Kh6w64NquUWAoxWe22xGtkXedhdtOY4dTqVQ2w8kbrwkIcRJPhypjtsED8HLIUt503VyMiXT+XwOdxpjLUIYyC8IS2xMbrpH5guOXoPfSI0F6KlUMDRHGzFj0bMzzTJb2wDg3/ETMMOe/Z6JIHj8StBlfXgJifFUP1+2u72saxJGBKHqpb8tZ4K4egW+4aEucR0f1jOhxRTF7Wq8Nol9sp3pABAHvpFEuGV6ckdAev8IQYt/4hS94xi8FDvWWbiTUIabAnl0dldnYnX3d1B/3c5ylEWwxt3qit/RLXlr6U5LlFU2B2gfnrnVZ9dlrar8Jn++Mrlcf6eskAA
=="
"data"
:
"Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjDzXBIud5f2y2oC6Ki0109
gTGfqIr9aJogqT+S54B6PDCX6U4eUaJ7IDHzUUFilz+rZLS/RcgGjrx9aF3NMMpcN6pDZ/CKPoLq0HmDD1u5q+fja1LYfEicgXLV37B6H9snjl1PoaOdrcnUUvUhfTcoYdWr/xE2a7yz4v0dS6pwzPk1G/o5qWasw92Skmo1UTWWCp3B30UpNlB6mGduoAarvhdLgrAla0gKO7BpQrFQGYAggvR6H1RyssowTrlJzMsOr7Fyr6l7T0x/Rr0j4qXknsCakwY9oL7n6/EiYTi8DazEkNapclreM1ISd9IxuRc8RZWek2tan9hp+aKfJ6KH7QEYzp3683GzLo0GGRrlTEPlNs89A8cOvV44Zj5KErAygr9JwXp/prSsn1MEAlF36WeUiAEi7rgtln0ImFZPpB+6ysOSYxQsQ78pq3PTcW+gIWzOfHn3UpaZykLGEs/g6m2KUhVKG5QwfxSzYSi8d/G0KIXbhEtr1apZXQgmrV3xAVJdCgJKlbYTnA0w7TvffpiDjwdoAj9ehcjyJ3d/jWK2NebdECvRpZ9z+qVucGVwjcjtwNDt9P3uNhMo+HJ0g
=="
}
\ No newline at end of file
preview-template/mock/game/startGame数据生成.mjs
View file @
888532e9
...
...
@@ -48,7 +48,7 @@ const startInfo = {
barrierFlag
:
true
,
// 本局游戏难度是否上升
firstGameFlag
:
true
,
// 本局是否第一局,为true则有一,二,无尽模式三个阶段的区别
accumulateLuckNum
:
3
,
// 当局累计获得福袋数量
initScore
:
3
0
,
// 当局初始分数值
initScore
:
5
0
,
// 当局初始分数值
limitLuckNum
:
5
,
// 当日上限可获得福袋数
downArea
:
[
3
,
2
,
1
],
// 掉落分布,集合,比如每日上限6个,这里配置返回1、2、3
currentAcquireNum
:
5
,
// 当局剩余可获得福袋数,不包含accumulateLuckNum,当局累计获得福袋数量
...
...
profiles/v2/packages/builder.json
View file @
888532e9
...
...
@@ -45,8 +45,8 @@
"progress"
:
1
,
"state"
:
"success"
,
"stage"
:
"build"
,
"message"
:
"2024-12-18
19:53:16 build success in 2 min
!"
,
"detailMessage"
:
"
refresh db internal success
\r
"
,
"message"
:
"2024-12-18
20:33:49 build success in 4 min 9 s
!"
,
"detailMessage"
:
"
builder:build-project-total (249472ms)
\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-18
19:51:16
"
,
"time"
:
"2024-12-18
20:29:40
"
,
"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