Commit c67b41db authored by Chen Jiping's avatar Chen Jiping

完善

parent 26dbbb18
...@@ -1350,16 +1350,11 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1350,16 +1350,11 @@ export class PlayComponent implements OnInit, OnDestroy {
answer_val.refreshSize(); answer_val.refreshSize();
if(changed){ answer_val.x = -Math.floor(answer_val.width* this.mapScale/2);
answer_val.x = -Math.floor((answer_val.width + 20)* this.mapScale)/2;
}
else{
answer_val.x = -Math.floor(answer_val.width* this.mapScale)/2;
}
console.log('answer_val', answer_val.x); console.log('answer_val', answer_val.x);
answer_val.y = -35*this.mapScale; answer_val.y = -32*this.mapScale;
answerPic.addChild(answer_val); answerPic.addChild(answer_val);
} }
...@@ -1446,15 +1441,17 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1446,15 +1441,17 @@ export class PlayComponent implements OnInit, OnDestroy {
//如果未全部结束,则初始化下一个练习题 //如果未全部结束,则初始化下一个练习题
if(!end){ if(!end){
this.showPrompt();
setTimeout(() => { setTimeout(() => {
tweenChange(cover, {alpha: 0}, 6, ()=>{ tweenChange(cover, {alpha: 0}, 6, ()=>{
this.initPracticePic(); this.initPracticePic();
}); });
}, 5000); }, 6000);
setTimeout(() => {
this.showPrompt();
}, 4000);
} }
} }
...@@ -1471,12 +1468,13 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1471,12 +1468,13 @@ export class PlayComponent implements OnInit, OnDestroy {
this.endPageArr.push(prompt); this.endPageArr.push(prompt);
let prompt_val = new Label(); let prompt_val = new Label();
prompt_val.text = this.nextPracticeIndex + " | " + this.data.practices.length; prompt_val.text = (this.nextPracticeIndex + 1) + " / " + this.data.practices.length;
prompt_val.textAlign='middle'; prompt_val.textAlign='middle';
prompt_val.fontSize = 50; prompt_val.fontSize = 100;
prompt_val.fontName = "ARIALBD"; prompt_val.fontName = "BRLNSDB";
prompt_val.fontColor = "#FFFFFF"; prompt_val.fontColor = "#FFFFFF";
prompt_val.refreshSize(); prompt_val.refreshSize();
prompt_val.x = -prompt_val.width/2; prompt_val.x = -prompt_val.width/2;
prompt_val.y = 0; prompt_val.y = 0;
prompt.addChild(prompt_val); prompt.addChild(prompt_val);
......
src/assets/play/play.png

21.5 KB | W: | H:

src/assets/play/play.png

22.2 KB | W: | H:

src/assets/play/play.png
src/assets/play/play.png
src/assets/play/play.png
src/assets/play/play.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/play/playing.png

21.9 KB | W: | H:

src/assets/play/playing.png

21.5 KB | W: | H:

src/assets/play/playing.png
src/assets/play/playing.png
src/assets/play/playing.png
src/assets/play/playing.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/play/playing_1.png

22.2 KB | W: | H:

src/assets/play/playing_1.png

21.9 KB | W: | H:

src/assets/play/playing_1.png
src/assets/play/playing_1.png
src/assets/play/playing_1.png
src/assets/play/playing_1.png
  • 2-up
  • Swipe
  • Onion skin
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