diff --git a/306204wy29.js b/306204wy29.js index a4acc1e..6fdab8d 100644 --- a/306204wy29.js +++ b/306204wy29.js @@ -10,8 +10,8 @@ if (!this.initialized) { } if (this.state.turning) { - //console.warn('already turning - todo: store the input and play back'); - //return; + //console.warn('already turning - todo: store the input and play back'); + //return; } if (data.keyCode === GameLib.System.Input.KEY_UP) { @@ -71,6 +71,12 @@ if (data.keyCode === GameLib.System.Input.KEY_LEFT) { this.state.orientation === GameLib.CustomCode.ORIENTATION_UP || this.state.orientation === GameLib.CustomCode.ORIENTATION_DOWN ) { + if (this.state.orientation === GameLib.CustomCode.ORIENTATION_DOWN) { + this.state.flip = true; + } else { + this.state.flip = false; + } + this.state.orientation = GameLib.CustomCode.ORIENTATION_LEFT; this.state.turning = true; }