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
94f424b7
Commit
94f424b7
authored
Dec 02, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
56e9f698
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Snake.ts
assets/Scripts/Scenes/MainGame/Snake.ts
+4
-2
Start.ts
assets/Start/Start.ts
+1
-1
No files found.
assets/Scripts/Scenes/MainGame/Snake.ts
View file @
94f424b7
...
@@ -203,8 +203,10 @@ export class Snake extends Component {
...
@@ -203,8 +203,10 @@ export class Snake extends Component {
if
(
!
this
.
isLife
)
return
;
if
(
!
this
.
isLife
)
return
;
const
propTs
=
otherCollider
.
getComponent
(
PropBase
);
const
propTs
=
otherCollider
.
getComponent
(
PropBase
);
propTs
.
beEaten
(
this
);
if
(
propTs
)
{
propTs
.
recycle
();
propTs
.
beEaten
(
this
);
propTs
.
recycle
();
}
})
})
.
start
();
.
start
();
}
}
...
...
assets/Start/Start.ts
View file @
94f424b7
...
@@ -59,7 +59,7 @@ export class Start extends Component {
...
@@ -59,7 +59,7 @@ export class Start extends Component {
setProgress
(
progress
:
number
)
{
setProgress
(
progress
:
number
)
{
this
.
progressBar
.
progress
=
progress
;
this
.
progressBar
.
progress
=
progress
;
this
.
progressTxt
.
string
=
`
${
Math
.
round
(
progress
*
100
)}
%`
;
// this.progressTxt.string = `游戏加载中
${Math.round(progress * 100)}%`;
}
}
loadZipBundle
(
from
:
number
,
to
:
number
)
{
loadZipBundle
(
from
:
number
,
to
:
number
)
{
...
...
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