Commit 2533efe0 authored by wildfirecode13's avatar wildfirecode13

111

parent 5a8face8
This diff is collapsed.
......@@ -2,7 +2,7 @@
* Created by renjianfeng on 2020-03-13.
*/
const customId = 'pictures';
const customId = 'p2demo';
(async function () {
let customModule = await fetch(`../meta.json`);
......@@ -55,9 +55,8 @@ function launchWithCustomModule(customModule) {
});
const d = engine.gameStage.sceneContainer.getChildAt(0);
engine.gameStage.sceneContainer.getChildAt(0).x = (d.stage.width-props.W)/2;
engine.gameStage.sceneContainer.getChildAt(0).y = (d.stage.height-props.H)/2;
}, 1000);
}, 100);
// setTimeout(() => {
// engine.globalEvent.dispatchEvent('pictures-start', {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -35,6 +35,5 @@ export class GameWrapper extends engine.Container {
}
stop(event: engine.Event) {
this._gameView.stop();
}
}
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