Commit f7274e9f authored by wildfirecode's avatar wildfirecode

1

parent a0bb5b71
No preview for this file type
This diff is collapsed.
......@@ -53,7 +53,7 @@ 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;
}, 1500);
}, 1000);
setTimeout(() => {
engine.globalEvent.dispatchEvent('pictures-start', {
......@@ -61,7 +61,7 @@ function launchWithCustomModule(customModule) {
// picUrl: "http://yun.duiba.com.cn/aurora/assets/d23e73d37ec01931e48cbd0a4095367044c5675c.png"
});
}, 10000);
}, 2000);
});
engine.globalEvent.addEventListener('pictures-time-update', (e) => {
// console.log(e.type, e.data);
......
This diff is collapsed.
This diff is collapsed.
......@@ -4,6 +4,10 @@ const picMap = {};
const posMap = {};
export default (parent, url, MAX_COL, MAX_ROW) => {
if (picMap[url]) {
const pics:any[] = picMap[url];
for (const pic of pics) {
parent.addChild(pic);
}
return [picMap[url], posMap[url]]
}
......
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