Commit 8522633d authored by wildfirecode's avatar wildfirecode

1

parent 0c261be1
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -157,6 +157,9 @@ export default class GameView extends engine.Container { ...@@ -157,6 +157,9 @@ export default class GameView extends engine.Container {
const parent = new engine.Sprite(); const parent = new engine.Sprite();
this.picturesWrapper = parent; this.picturesWrapper = parent;
this.addChild(parent); this.addChild(parent);
const OFFSET = (750 - props.W) / 2
this.picturesWrapper.x = OFFSET;
this.picturesWrapper.y = (this.stage.height - props.H) / 2;
// 添加按钮 // 添加按钮
// const btn = new engine.Rect(); // const btn = new engine.Rect();
......
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