Commit 235b9a5f authored by Vũ Gia Vương's avatar Vũ Gia Vương

update loop rotate

parent ec764073
...@@ -1858,8 +1858,8 @@ ...@@ -1858,8 +1858,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 400, "width": 462.01,
"height": 400 "height": 540.78
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1962,8 +1962,8 @@ ...@@ -1962,8 +1962,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 400, "width": 462.01,
"height": 400 "height": 540.78
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2066,8 +2066,8 @@ ...@@ -2066,8 +2066,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 400, "width": 462.01,
"height": 400 "height": 540.78
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2170,8 +2170,8 @@ ...@@ -2170,8 +2170,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 400, "width": 462.01,
"height": 400 "height": 540.78
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
......
...@@ -18,7 +18,7 @@ export default class HuController extends cc.Component { ...@@ -18,7 +18,7 @@ export default class HuController extends cc.Component {
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this) this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this)
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this) this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this)
// this.spine.setCompleteListener((trackEntry) => this.setRotateAnim()); this.spine.setCompleteListener(() => this.setRotateAnim());
} }
...@@ -28,7 +28,6 @@ export default class HuController extends cc.Component { ...@@ -28,7 +28,6 @@ export default class HuController extends cc.Component {
} }
private onTouchEnd(): void { private onTouchEnd(): void {
// this.spine.setAnimation(1, "Rotate", false);
this.spine.timeScale = 0; this.spine.timeScale = 0;
} }
...@@ -40,7 +39,6 @@ export default class HuController extends cc.Component { ...@@ -40,7 +39,6 @@ export default class HuController extends cc.Component {
return; return;
} }
console.log('distance', distance)
this._pointStart = newPoint; this._pointStart = newPoint;
this.spine.timeScale = distance > 0 ? -0.5 : 0.5; this.spine.timeScale = distance > 0 ? -0.5 : 0.5;
} }
...@@ -56,7 +54,6 @@ export default class HuController extends cc.Component { ...@@ -56,7 +54,6 @@ export default class HuController extends cc.Component {
private unPauseAnim(): void { private unPauseAnim(): void {
this.spine.timeScale = 0.2; this.spine.timeScale = 0.2;
// this.node.scaleX *= -1;
} }
private toggleAnim(): void { private toggleAnim(): void {
......
...@@ -16,7 +16,6 @@ export default class StartScreen extends cc.Component { ...@@ -16,7 +16,6 @@ export default class StartScreen extends cc.Component {
protected onLoad(): void { protected onLoad(): void {
this.selectBtnNode.on('click', this.onSelectBtnClick, this); this.selectBtnNode.on('click', this.onSelectBtnClick, this);
this.contentNode.children.forEach((item: cc.Node, index: number) => { this.contentNode.children.forEach((item: cc.Node, index: number) => {
item.on(cc.Node.EventType.TOUCH_START, () => this.onItemNodeClick(item, index), this); item.on(cc.Node.EventType.TOUCH_START, () => this.onItemNodeClick(item, index), this);
...@@ -34,7 +33,6 @@ export default class StartScreen extends cc.Component { ...@@ -34,7 +33,6 @@ export default class StartScreen extends cc.Component {
private onSelectBtnClick() { private onSelectBtnClick() {
console.log('onSelectBtnClick', )
eventTarget.emit(SHOW_SELECT_POPUP); eventTarget.emit(SHOW_SELECT_POPUP);
} }
......
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