diff --git a/assets/script.js b/assets/script.js index e789601..4c1c192 100644 --- a/assets/script.js +++ b/assets/script.js @@ -85,6 +85,9 @@ class Map { getKeystroke() { var self = this; _listener = function (event) { + if (["Space", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].indexOf(event.code) > -1) { + event.preventDefault(); + } var dontLoop = false; if (event.key === "h" || event.key === "a" || event.key === "ArrowLeft") { self.move("left"); diff --git a/index.html b/index.html index 3ecbc25..99d1c2b 100644 --- a/index.html +++ b/index.html @@ -161,7 +161,7 @@

How To Play:

- You are an old man working in a Sokobanya, a Russian bath house. You need + You are an old man working in Sokobanya, a luxury Russian bath house. You need to move pieces of coal to the stoves in order to keep the saunas hot. Try to move all pieces of coal in the shortest amount of moves possible!

Controls: