From ab20d10f9b3195fd7fa93ce54b4d620b22dcacdf Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 19 Mar 2018 08:42:04 +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 90177b9..f6bb32f 100644 --- a/306204wy29.js +++ b/306204wy29.js @@ -30,6 +30,12 @@ if (data.keyCode === GameLib.System.Input.KEY_UP) { 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_UP; this.state.turning = true; }