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