Commit 2ee2f94d authored by wildfirecode's avatar wildfirecode

1

parent 9f9c4064
No preview for this file type
This diff is collapsed.
......@@ -61,7 +61,7 @@ function launchWithCustomModule(customModule) {
// picUrl: "http://yun.duiba.com.cn/aurora/assets/d23e73d37ec01931e48cbd0a4095367044c5675c.png"
});
}, 2000);
}, 10*1000);
});
engine.globalEvent.addEventListener('pictures-time-update', (e) => {
// console.log(e.type, e.data);
......
......@@ -5,7 +5,7 @@
const assets = [
{
"name": "玩家icon",
"url": "//yun.duiba.com.cn/aurora/assets/50a7212a113175fa18c866b005d98f07c558dc77.png",
"url": "//yun.duiba.com.cn/aurora/assets/5b3e30496b2d9fdafb0cf3835fd6704ce10e45b4.png",
"uuid": "66f23d13-82a5-4cec-9496-301ec240d087",
"ext": ".png"
},
......
This diff is collapsed.
This diff is collapsed.
......@@ -5,12 +5,12 @@
"MAX_COL": {
"alias": "图片分成几列",
"type": "number",
"default": 2
"default": 3
},
"MAX_ROW": {
"alias": "图片分成几行",
"type": "number",
"default": 2
"default": 4
},
"W": {
"alias": "图片的宽度",
......
......@@ -222,7 +222,7 @@ export default class GameView extends engine.Container {
this.onMove,
this
);
this.stage.addEventListener(
this.stage.once(
engine.MouseEvent.MOUSE_UP,
this.stageOnUp,
this
......@@ -230,7 +230,10 @@ export default class GameView extends engine.Container {
}
listenStageOn=1;
stageOnUp(e) {
this.stage.removeEventListener(
engine.MouseEvent.MOUSE_MOVE,
this.onMove,
......@@ -302,11 +305,7 @@ export default class GameView extends engine.Container {
this.dragPic.y = this.distanceY
}
this.stage.removeEventListener(
engine.MouseEvent.MOUSE_UP,
this.stageOnUp,
this
);
}
private onSuccess() {
......
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