From 2a4612c8ec4fe6d99c75c5c12b3cb01f4a5f736a Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Sun, 1 Nov 2020 12:46:39 -0500 Subject: [PATCH] Fixed default challenge currency and added clarification in getting started --- docs/getting-started.md | 2 +- js/game.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index fb087a3..1ba77d2 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -35,7 +35,7 @@ The benefits of using Github: 3. Open [mod.js](/js/mod.js) in VSCode, and look at the top part where it has a "modInfo" object. Fill in your mod's name to whatever you want, and change the id as well. (It can be any string value, and it's used to determine where the savefile is. Make it something that's probably unique, and don't change it again later or else it'll effectively wipe existing saves) -4. Save [mod.js](/js/mod.js), and then reload [index.html](/index.html) in your browser. The title on the tab, as well as on the info page, will now be the ones you configured! +4. Save [mod.js](/js/mod.js), and then reload [index.html](/index.html) in your browser. The title on the tab, as well as on the info page, will now be updated! You can repeat this process every time you change the code to test it quickly and easily. 5. Go back to Github Desktop. It's time to save your changes into the git system by making a "commit". This basically saves your work and creates a snapshot of what your code looks like at this moment, allowing you to look back at it later. diff --git a/js/game.js b/js/game.js index bddb13d..3507026 100644 --- a/js/game.js +++ b/js/game.js @@ -244,7 +244,7 @@ function canCompleteChallenge(layer, x) } } else { - return !(player[layer].points.lt(challenge.goal)) + return !(player.points.lt(challenge.goal)) } } @@ -357,3 +357,5 @@ var interval = setInterval(function() { fixNaNs() ticking = false }, 50) + +setInterval(function() {needCanvasUpdate = true}, 500) \ No newline at end of file