Update: CC - Bacon - Key Down (dgscoensvf.js) 39 bytes modified
parent
057e9130c0
commit
1b711ed541
|
@ -19,19 +19,19 @@ if (this.ccBeforeRender.gameOver) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.code === 'ArrowLeft') {
|
if (data.code === 'ArrowLeft' || 'Left') {
|
||||||
move = {left:true};
|
move = {left:true};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.code === 'ArrowRight') {
|
if (data.code === 'ArrowRight' || 'Right') {
|
||||||
move = {right:true};
|
move = {right:true};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.code === 'ArrowUp') {
|
if (data.code === 'ArrowUp' || 'Up') {
|
||||||
this.rotateBlock(false);
|
this.rotateBlock(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.code === 'ArrowDown') {
|
if (data.code === 'ArrowDown' || 'Down') {
|
||||||
this.rotateBlock(true);
|
this.rotateBlock(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue