Skip to content

Commit

Permalink
prevent always
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiro committed Nov 21, 2023
1 parent 90e38cd commit d2d486f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ async function main() {
});

window.addEventListener("keyup", (e) => {
if (game.mode !== "coop") return;
e.preventDefault();
if (game.mode !== "coop") return;

Object.keys(game.$.players).forEach((key) => {
const p = game.$.players[key];
Expand All @@ -538,9 +538,9 @@ async function main() {
case "right":
p.x += kCoopX;
break;
case "back":
p.z += 10;
break;
// case "back":
// p.z += 10;
// break;
}
});
});
Expand Down

0 comments on commit d2d486f

Please sign in to comment.