Update: CC - Snake FS - Key Up (306204wy29.js) 185 bytes modified
parent
0f00831ae4
commit
8876d30a3f
|
@ -71,6 +71,12 @@ if (data.keyCode === GameLib.System.Input.KEY_LEFT) {
|
||||||
this.state.orientation === GameLib.CustomCode.ORIENTATION_UP ||
|
this.state.orientation === GameLib.CustomCode.ORIENTATION_UP ||
|
||||||
this.state.orientation === GameLib.CustomCode.ORIENTATION_DOWN
|
this.state.orientation === GameLib.CustomCode.ORIENTATION_DOWN
|
||||||
) {
|
) {
|
||||||
|
if (this.state.orientation === GameLib.CustomCode.ORIENTATION_DOWN) {
|
||||||
|
this.state.flip = true;
|
||||||
|
} else {
|
||||||
|
this.state.flip = false;
|
||||||
|
}
|
||||||
|
|
||||||
this.state.orientation = GameLib.CustomCode.ORIENTATION_LEFT;
|
this.state.orientation = GameLib.CustomCode.ORIENTATION_LEFT;
|
||||||
this.state.turning = true;
|
this.state.turning = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue