Commit 7c3e1ade authored by asdf's avatar asdf

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