From d7ea7f359648ac0af8574e399dc474253c6bb275 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sun, 7 Sep 2025 22:09:14 -0400 Subject: [PATCH] form server --- assets/script.js | 3 +++ index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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: