Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LuzhouLaojiaoSnake_250428
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
LuzhouLaojiaoSnake_250428
Commits
61b54ecb
Commit
61b54ecb
authored
May 08, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
磁铁动画
parent
5a7d96ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ScoreBubble.ts
src/pages/GamePage/Components/ScoreBubble.ts
+6
-1
No files found.
src/pages/GamePage/Components/ScoreBubble.ts
View file @
61b54ecb
import
{
Assets
,
Container
,
Sprite
,
Text
}
from
"pixi.js"
;
import
{
Ease
,
Tween
}
from
"@/pages/GamePage/tween"
;
import
gameStore
from
"@/store/gameStore.ts"
;
import
{
GameConfig
}
from
"@/pages/GamePage/config/Config.ts"
;
export
class
ScoreBubble
extends
Container
{
...
...
@@ -10,7 +12,10 @@ export class ScoreBubble extends Container {
initUI
(
score
:
number
)
{
const
sp
=
this
.
addChild
(
new
Sprite
(
Assets
.
get
(
"蛇/初级/圈.png"
)));
const
lv
=
gameStore
.
gameInfo
.
level
;
const
skin
=
GameConfig
.
levelCfg
[
lv
].
skin
;
const
sp
=
this
.
addChild
(
new
Sprite
(
Assets
.
get
(
`蛇/
${
skin
}
/圈.png`
)));
sp
.
anchor
.
set
(
0.5
,
0.5
);
const
text
=
this
.
addChild
(
new
Text
({
...
...
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