Commit cae287e2 authored by Master Q's avatar Master Q

小机型修改

parent e506c4d0
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment