From a390d943ebfdc6f8715509b24d4db1736a118160 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 19 Mar 2018 09:36:38 +0100 Subject: [PATCH] Update: CC - Snake FS - Key Up (306204wy29.js) 27 bytes modified --- 306204wy29.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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;