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