Update: CC - Snake FS - Key Up (306204wy29.js) 176 bytes modified

beta.r3js.org
-=yb4f310 2018-03-19 08:42:04 +01:00
parent e74d0dd0f7
commit ab20d10f9b
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}