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