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
313a0e92
Commit
313a0e92
authored
Dec 23, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
e74ef7e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
Snake.ts
assets/Scripts/Scenes/MainGame/Snake.ts
+2
-1
index.html
build/web-mobile/index.html
+12
-12
builder.json
profiles/v2/packages/builder.json
+3
-3
No files found.
assets/Scripts/Scenes/MainGame/Snake.ts
View file @
313a0e92
...
@@ -562,6 +562,7 @@ export class Snake extends Component {
...
@@ -562,6 +562,7 @@ export class Snake extends Component {
this
.
clearPropEffect
()
this
.
clearPropEffect
()
const
len
=
this
.
bodyArr
.
length
;
const
len
=
this
.
bodyArr
.
length
;
const
energy
=
Math
.
min
(
50
,
~~
(
this
.
energy
/
len
));
const
foodArr
=
[];
const
foodArr
=
[];
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
const
body
=
this
.
bodyArr
[
i
];
const
body
=
this
.
bodyArr
[
i
];
...
@@ -574,7 +575,7 @@ export class Snake extends Component {
...
@@ -574,7 +575,7 @@ export class Snake extends Component {
foodArr
.
push
({
foodArr
.
push
({
x
:
body
.
position
.
x
+
math
.
randomRange
(
-
10
,
10
),
x
:
body
.
position
.
x
+
math
.
randomRange
(
-
10
,
10
),
y
:
body
.
position
.
y
+
math
.
randomRange
(
-
10
,
10
),
y
:
body
.
position
.
y
+
math
.
randomRange
(
-
10
,
10
),
energy
:
~~
(
this
.
energy
/
len
)
,
energy
,
});
});
}
}
...
...
build/web-mobile/index.html
View file @
313a0e92
...
@@ -98,14 +98,14 @@
...
@@ -98,14 +98,14 @@
</style>
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/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/173494
0806006
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/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/173494
0806006
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/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/173494
0806006
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/cocos-js/cc.js"
}}
</script>
</script>
<script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
0806006
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173494
2048183
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
console
.
error
(
err
);
})
})
</script>
</script>
...
...
profiles/v2/packages/builder.json
View file @
313a0e92
...
@@ -45,8 +45,8 @@
...
@@ -45,8 +45,8 @@
"progress"
:
1
,
"progress"
:
1
,
"state"
:
"success"
,
"state"
:
"success"
,
"stage"
:
"build"
,
"stage"
:
"build"
,
"message"
:
"2024-12-23 16:
00:52 build success in 47
s!"
,
"message"
:
"2024-12-23 16:
21:38 build success in 50
s!"
,
"detailMessage"
:
"
builder:build-project-total (46942ms)
\r
"
,
"detailMessage"
:
"
%c兑吧发布插件 >> 版本号:1734942048183
\r
color: green
\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-23 16:
00:05
"
,
"time"
:
"2024-12-23 16:
20:47
"
,
"dirty"
:
false
"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