Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DuibaGameTemplate
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
钱根
DuibaGameTemplate
Commits
cae287e2
Commit
cae287e2
authored
Jan 27, 2022
by
Master Q
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小机型修改
parent
e506c4d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
LevonoGameScene.ts
src/scenes/LevonoGameScene/LevonoGameScene.ts
+7
-2
No files found.
src/scenes/LevonoGameScene/LevonoGameScene.ts
View file @
cae287e2
...
...
@@ -127,6 +127,7 @@ export class LevonoGameScene extends Scene {
musicBtn
:
FYGE
.
Button
_score
:
number
=
0
scoreBitMapText
:
FYGE
.
BitmapText
fixedTop
:
number
=
200
// 顶部距离
get
score
()
{
return
this
.
_score
...
...
@@ -143,7 +144,7 @@ export class LevonoGameScene extends Scene {
set
musicStatus
(
b
)
{
(
this
.
musicBtn
||
(
this
.
musicBtn
=
UI
.
Btn
(
this
,
`music-
${
b
?
'on'
:
'off'
}
.png`
,
this
.
musicBtnClick
,
this
,
670
,
200
670
,
this
.
fixedTop
))).
texture
=
RES
.
getRes
(
`music-
${
b
?
'on'
:
'off'
}
.png`
)
this
.
playSoundById
(
'bgm'
,
b
,
true
,
true
)
...
...
@@ -197,6 +198,10 @@ export class LevonoGameScene extends Scene {
}
initUi
()
{
if
(
document
.
body
.
clientHeight
<
650
)
{
this
.
fixedTop
=
230
}
UI
.
Sp
(
this
,
'scene-back.jpg'
)
this
.
atomList
.
push
(
SetMouseEventNone
(
UI
.
MoiveClip
(
this
,
'mountain.svga'
,
30
,
280
)))
...
...
@@ -335,7 +340,7 @@ export class LevonoGameScene extends Scene {
}))
// hpCOnt
const
hpCont
=
UI
.
Ctn
(
this
,
0
,
200
)
const
hpCont
=
UI
.
Ctn
(
this
,
0
,
this
.
fixedTop
)
UI
.
Sp
(
hpCont
,
'hpBoard-back.png'
)
for
(
let
i
=
0
;
i
<
hpPoxLis
.
length
;
i
++
)
{
...
...
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