Commit 7c3e1ade authored by asdf's avatar asdf

parent b853a25e
......@@ -128,9 +128,11 @@ cc.Class({
},
setRightLettersX() {
let x = this.layerLetters.children[0].x;
let x2 = x - 3;
this.layerRightLetters.parent.x = x2;
this.scheduleOnce(()=>{
let x = this.layerLetters.children[0].x;
let x2 = x - 3;
this.layerRightLetters.parent.x = x2;
},1)
},
......
......@@ -201,7 +201,7 @@ cc.Class({
},
initLayerTrainPosition() {
this.layerTrain.x = cc.view.getFrameSize().width / 2 - 1220;
this.layerTrain.x = cc.view.getVisibleSize().width / 2 - 1220;
this.dragonBone.playAnimation('normal', -1);
},
......@@ -307,7 +307,7 @@ cc.Class({
if (window.isPlayEnter) {
return
}
this.layerTrain.x = cc.view.getFrameSize().width / 2;
this.layerTrain.x = cc.view.getVisibleSize().width / 2;
this.isTrainMove = true;
this.dragonBone.playAnimation('move', -1);
},
......@@ -320,7 +320,7 @@ cc.Class({
checkTrainMoveDone() {
let width = this.layerCoach.width + 680;
let width2 = cc.view.getFrameSize().width;
let width2 = cc.view.getVisibleSize().width;
if (this.layerTrain.x < -width2 / 2 - width) {
this.showGameOver();
}
......
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