diff --git a/assets/script.js b/assets/script.js index a3dacc9..6a711da 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.playerDir = "l"; diff --git a/index.html b/index.html index 6148ed5..2f77677 100644 --- a/index.html +++ b/index.html @@ -88,7 +88,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: