Update: CC - Snake FS - Key Up (306204wy29.js) 176 bytes modified
parent
e74d0dd0f7
commit
ab20d10f9b
|
@ -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_LEFT ||
|
||||||
this.state.orientation === GameLib.CustomCode.ORIENTATION_RIGHT
|
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.orientation = GameLib.CustomCode.ORIENTATION_UP;
|
||||||
this.state.turning = true;
|
this.state.turning = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue