From ea07c813c77ed90180c8181e0c35b685a86dcee9 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 19 Mar 2018 08:38:06 +0100 Subject: [PATCH] Update: CC - Snake FS - Key Up (306204wy29.js) 197 bytes modified --- 306204wy29.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/306204wy29.js b/306204wy29.js index 6fdab8d..a56ac74 100644 --- a/306204wy29.js +++ b/306204wy29.js @@ -71,6 +71,7 @@ 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 { @@ -97,6 +98,13 @@ if (data.keyCode === GameLib.System.Input.KEY_RIGHT) { 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_RIGHT; this.state.turning = true; }