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

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

View File

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