fix direction right
This commit is contained in:
@@ -52,7 +52,8 @@ async function run() {
|
|||||||
if (button) {
|
if (button) {
|
||||||
if (keyCooldown > 0)
|
if (keyCooldown > 0)
|
||||||
return;
|
return;
|
||||||
if (KEYMAP[button]) {
|
if (KEYMAP[button] !== undefined) {
|
||||||
|
console.log()
|
||||||
currentKey = button;
|
currentKey = button;
|
||||||
keyCooldown = 10;
|
keyCooldown = 10;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user