Skip to content

Commit

Permalink
new cheat
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonTDM committed Mar 25, 2024
1 parent 52c86dc commit d0ca5fa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions game/js/cheats.js
Original file line number Diff line number Diff line change
@@ -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();
}
});

0 comments on commit d0ca5fa

Please sign in to comment.