Commit 210ab125 authored by 任建锋's avatar 任建锋

--

parent cf8cb875
This diff is collapsed.
...@@ -166,7 +166,6 @@ ...@@ -166,7 +166,6 @@
}; };
return Background; return Background;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=Background.js.map
var svgaAssets = { var svgaAssets = {
aniReady: { name: '准备立正', dir: 1 }, aniReady: { name: '准备立正', dir: 1 },
...@@ -1011,6 +1010,7 @@ ...@@ -1011,6 +1010,7 @@
}; };
return GameView; return GameView;
}(engine.Container)); }(engine.Container));
//# sourceMappingURL=GameView.js.map
var JumpHigh = (function (_super) { var JumpHigh = (function (_super) {
tslib.__extends(JumpHigh, _super); tslib.__extends(JumpHigh, _super);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
}, },
{ {
"name": "背景图", "name": "背景图",
"url": "//yun.duiba.com.cn/aurora/assets/6bbdb3fc12e4015fd60485c9add4ee102e2d1ce2.jpg", "url": "//yun.duiba.com.cn/aurora/assets/7ac7be060f3dac92602bb6b734e8137d589184fd.png",
"uuid": "43618417-f27f-429c-bba3-e0715e552ca2", "uuid": "43618417-f27f-429c-bba3-e0715e552ca2",
"ext": ".jpg" "ext": ".jpg"
}, },
......
...@@ -14,14 +14,12 @@ export class Background extends engine.Container { ...@@ -14,14 +14,12 @@ export class Background extends engine.Container {
setup() { setup() {
const {width, height} = this.stage; const {width, height} = this.stage;
let bg = this._bg = new engine.Image(getTextureByName('背景图')); let bg = this._bg = new engine.Image(getTextureByName('背景图'));
bg.anchorX = bg.width / 2; bg.anchorX = bg.width / 2;
bg.anchorY = bg.height / 2; bg.anchorY = bg.height / 2;
bg.x = -(bg.width - width) / 2; bg.x = -(bg.width - width) / 2;
bg.y = -(bg.height - height) / 2; bg.y = -(bg.height - height) / 2;
this.addChild(bg); this.addChild(bg);
this._minScale = width / bg.width; this._minScale = width / bg.width;
} }
......
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