diff --git a/306204wy29.js b/306204wy29.js index 88fd7cf..28c015b 100644 --- a/306204wy29.js +++ b/306204wy29.js @@ -31,9 +31,9 @@ if (data.keyCode === GameLib.System.Input.KEY_UP) { this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT ) { if (this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) { - this.state.flip = false; + this.state.flip = 0; } else { - this.state.flip = true; + this.state.flip = -1; } this.state.orientation = GameLib.CustomCode.ORIENTATION_UP; @@ -58,9 +58,9 @@ if (data.keyCode === GameLib.System.Input.KEY_DOWN) { this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT ) { if (this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) { - this.state.flip = true; + this.state.flip = 1; } else { - this.state.flip = false; + this.state.flip = 0; } this.state.orientation = GameLib.CustomCode.ORIENTATION_DOWN; @@ -85,9 +85,9 @@ if (data.keyCode === GameLib.System.Input.KEY_LEFT) { ) { if (this.state.orientation === GameLib.CustomCode.ORIENTATION_DOWN) { - this.state.flip = true; + this.state.flip = 1; } else { - this.state.flip = false; + this.state.flip = 0; } this.state.orientation = GameLib.CustomCode.ORIENTATION_LEFT; @@ -112,9 +112,9 @@ if (data.keyCode === GameLib.System.Input.KEY_RIGHT) { ) { if (this.state.orientation === GameLib.CustomCode.ORIENTATION_UP) { - this.state.flip = true; + this.state.flip = 1; } else { - this.state.flip = false; + this.state.flip = 0; } this.state.orientation = GameLib.CustomCode.ORIENTATION_RIGHT;