From d0ca5fabaf01baebd754f443e99d1887a5f143b4 Mon Sep 17 00:00:00 2001 From: ClaytonTDM Date: Mon, 25 Mar 2024 11:31:14 -0400 Subject: [PATCH] new cheat --- game/js/cheats.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/game/js/cheats.js b/game/js/cheats.js index 1899bddd..757fb756 100644 --- a/game/js/cheats.js +++ b/game/js/cheats.js @@ -1,11 +1,17 @@ -// when j is hit print hello world +// when j is pressed, let the user spawn a sun at a random location document.addEventListener("keydown", function (event) { if (event.keyCode == 74) { AppearSun( GetX(Math.floor(1 + Math.random() * oS.C)), GetY(Math.floor(1 + Math.random() * oS.R)), - prompt("sun value", "50"), + prompt("Spawn Sun", "50"), 1 ); } }); +// when k is pressed, show handbook +document.addEventListener("keydown", function (event) { + if (event.keyCode == 75) { + ViewHandBook(); + } +}); \ No newline at end of file