Commit a5ffeaea authored by 李维's avatar 李维

Bug fix

parent c0b350e3
......@@ -751,8 +751,8 @@ export class PlayComponent implements OnInit, OnDestroy {
body_bg;
initPic() {
this.body_bg = new ShapeRoundRect();
this.body_bg.setSize(1083*this.mapScale, 555*this.mapScale, 30*this.mapScale) ;
this.body_bg.x = (this.canvasWidth - this.body_bg.width) / 2 - 100 * this.mapScale;
this.body_bg.setSize(1280*this.mapScale, 555*this.mapScale, 30*this.mapScale) ;
this.body_bg.x = (this.canvasWidth - this.body_bg.width) / 2; // - 100 * this.mapScale;
this.body_bg.y = this.canvasHeight - this.body_bg.height - (this.canvasHeight - this.body_bg.height)/3 ;
this.renderArr.push(this.body_bg);
......@@ -760,14 +760,14 @@ export class PlayComponent implements OnInit, OnDestroy {
colorBlock_left.x = 0;
colorBlock_left.y = 0;
colorBlock_left.fillColor = "#eef1f3" // `#${this.saveData.blockColor}`;
colorBlock_left.setSize(640*this.mapScale, 500*this.mapScale, 30)
colorBlock_left.setSize(620*this.mapScale, 500*this.mapScale, 30)
this.body_bg.addChild(colorBlock_left)
let colorBlock_right = new ShapeRoundRect()
colorBlock_right.x = 680*this.mapScale;
colorBlock_right.y = 0;
colorBlock_right.fillColor = "#eef1f3" // `#${this.saveData.blockColor}`;
colorBlock_right.setSize(640*this.mapScale, 500*this.mapScale, 30);
colorBlock_right.setSize(620*this.mapScale, 500*this.mapScale, 30);
this.body_bg.addChild(colorBlock_right);
// 初始化单词显示
......@@ -819,7 +819,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let letterFontSize = 48;
// 单词背景
let word_bg_group = new ShapeRoundRect()
word_bg_group.width = 640;
word_bg_group.width = 620;
word_bg_group.height = 57;
word_bg_group.x = x * this.mapScale;
word_bg_group.y = y * this.mapScale;
......
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