diff --git a/306204wy29.js b/306204wy29.js index b5164ac..fea84a7 100644 --- a/306204wy29.js +++ b/306204wy29.js @@ -26,6 +26,7 @@ if (data.keyCode === GameLib.System.Input.KEY_UP) { this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT ) { this.state.orientation = GameLib.CustomCode.ORIENTATION_UP; + this.state.turning = true; } } @@ -46,6 +47,7 @@ if (data.keyCode === GameLib.System.Input.KEY_DOWN) { this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT ) { this.state.orientation = GameLib.CustomCode.ORIENTATION_DOWN; + this.state.turning = true; } } @@ -65,6 +67,7 @@ if (data.keyCode === GameLib.System.Input.KEY_LEFT) { this.state.orientation === GameLib.CustomCode.ORIENTATION_DOWN ) { this.state.orientation = GameLib.CustomCode.ORIENTATION_LEFT; + this.state.turning = true; } } @@ -84,10 +87,8 @@ if (data.keyCode === GameLib.System.Input.KEY_RIGHT) { this.state.orientation === GameLib.CustomCode.ORIENTATION_DOWN ) { this.state.orientation = GameLib.CustomCode.ORIENTATION_RIGHT; + this.state.turning = true; } } - -console.log(data); - //@ sourceURL=keyUp.js \ No newline at end of file