Commit 423161aa authored by wjf's avatar wjf

l

parent 7672ae9f
...@@ -309,7 +309,7 @@ export default class MainScene extends Scene { ...@@ -309,7 +309,7 @@ export default class MainScene extends Scene {
//步数 //步数
this.stepNumber = new StepNumber(); this.stepNumber = new StepNumber();
this.stepNumber.x = 123; this.stepNumber.x = 123;
this.stepNumber.y = 97; this.stepNumber.y = 91;
this.addChild(this.stepNumber); this.addChild(this.stepNumber);
//步数初始化 //步数初始化
this.steps = this.chapterData.stepCount; this.steps = this.chapterData.stepCount;
...@@ -693,9 +693,9 @@ export default class MainScene extends Scene { ...@@ -693,9 +693,9 @@ export default class MainScene extends Scene {
this.musicBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_musicBtn, this) this.musicBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_musicBtn, this)
this.quitBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_quitBtn, this) this.quitBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_quitBtn, this)
this.boomBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_boomBtn, this) // this.boomBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_boomBtn, this)
this.hammerBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_hammerBtn, this) // this.hammerBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_hammerBtn, this)
this.stepBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_stepBtn, this) // this.stepBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_stepBtn, this)
} }
removeEvents() { removeEvents() {
...@@ -706,9 +706,9 @@ export default class MainScene extends Scene { ...@@ -706,9 +706,9 @@ export default class MainScene extends Scene {
this.musicBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_musicBtn, this) this.musicBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_musicBtn, this)
this.quitBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_quitBtn, this) this.quitBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_quitBtn, this)
this.boomBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_boomBtn, this) // this.boomBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_boomBtn, this)
this.hammerBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_hammerBtn, this) // this.hammerBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_hammerBtn, this)
this.stepBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_stepBtn, this) // this.stepBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_stepBtn, this)
this.elementContainer.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.mouseDownE, this); this.elementContainer.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.mouseDownE, this);
this.elementContainer.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.mouseMoveE, this); this.elementContainer.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.mouseMoveE, this);
...@@ -2695,7 +2695,7 @@ export default class MainScene extends Scene { ...@@ -2695,7 +2695,7 @@ export default class MainScene extends Scene {
enableMouseEvt(b: boolean) { enableMouseEvt(b: boolean) {
// this.touchEnabled = b; // this.touchEnabled = b;
// this.touchChildren = b; // this.touchChildren = b;
var arr = [this.elementContainer, this.boomBtn, this.hammerBtn, this.stepBtn] var arr = [this.elementContainer, /*this.boomBtn, this.hammerBtn, this.stepBtn*/]
for (var i = 0; i < arr.length; i++) { for (var i = 0; i < arr.length; i++) {
arr[i].touchEnabled = b; arr[i].touchEnabled = b;
arr[i].touchChildren = b; arr[i].touchChildren = b;
......
...@@ -47,8 +47,8 @@ export class ElementTarget extends egret.DisplayObjectContainer { ...@@ -47,8 +47,8 @@ export class ElementTarget extends egret.DisplayObjectContainer {
this.zeroMark.visible = false; this.zeroMark.visible = false;
this.addChild(this.zeroMark); this.addChild(this.zeroMark);
this.countNum = new TargetNumber(); this.countNum = new TargetNumber();
this.countNum.x = 50; this.countNum.x = 55;
this.countNum.y = 38; this.countNum.y = 45;
this.addChild(this.countNum); this.addChild(this.countNum);
} }
} }
\ 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