Commit b4e347ef authored by 邱旭's avatar 邱旭

1

parent a5072183
...@@ -35,7 +35,7 @@ export default class RainMgr { ...@@ -35,7 +35,7 @@ export default class RainMgr {
GDispatcher.addEvent('hbRainGameOver', this.gameOver, this); GDispatcher.addEvent('hbRainGameOver', this.gameOver, this);
this.timer = new egret.Timer(1200, 0); this.timer = new egret.Timer(1000, 0);
this.timer.addEventListener(egret.TimerEvent.TIMER, this.addRain, this); this.timer.addEventListener(egret.TimerEvent.TIMER, this.addRain, this);
this.timer.start(); this.timer.start();
} }
......
...@@ -32,7 +32,7 @@ export default class RainObj { ...@@ -32,7 +32,7 @@ export default class RainObj {
this.module.source = `hbGame_${this.data.key}_png`; this.module.source = `hbGame_${this.data.key}_png`;
this.module.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchTap, this); this.module.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchTap, this);
egret.Tween.get(this.module, {loop: true}).to({rotation: ~~(Math.random() * 2) ? 360 : -360}, 18000); egret.Tween.get(this.module, {loop: true}).to({rotation: ~~(Math.random() * 2) ? 360 : -360}, 18000);
egret.Tween.get(this.module).to({y: this.rainGroup.height + 200}, 5000).call(() => this.destroy()); egret.Tween.get(this.module).to({y: this.rainGroup.height + 200}, 4000).call(() => this.destroy());
} }
private touchTap() { private touchTap() {
......
...@@ -2,11 +2,15 @@ ...@@ -2,11 +2,15 @@
"success": true, "success": true,
"code": "0000000000", "code": "0000000000",
"desc": "OK", "desc": "OK",
"timestamp": 1573131493110, "timestamp": 1573206010193,
"data": { "data": {
"currentSession": null,
"currentRemainTimes": 0, "currentRemainTimes": 0,
"nextSession": null, "currentSession": {
"canJoin": false "sessionIndex": 10,
"startTime": 1573210800000,
"endTime": 1573212600000,
"limitScore": 10
},
"canJoin": true
} }
} }
\ No newline at end of file
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