From e74d0dd0f793e3d467e364dbab1f50224d0f0fbc Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 19 Mar 2018 08:40:36 +0100 Subject: [PATCH] Update: CC - Snake FS - Key Up (306204wy29.js) 176 bytes modified --- 306204wy29.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/306204wy29.js b/306204wy29.js index 684a93f..90177b9 100644 --- a/306204wy29.js +++ b/306204wy29.js @@ -51,6 +51,12 @@ if (data.keyCode === GameLib.System.Input.KEY_DOWN) { this.state.orientation === GameLib.CustomCode.ORIENTATION_LEFT || this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT ) { + if (this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) { + this.state.flip = true; + } else { + this.state.flip = false; + } + this.state.orientation = GameLib.CustomCode.ORIENTATION_DOWN; this.state.turning = true; }