diff --git a/2.0-format-changes.md b/2.0-format-changes.md index d1f1844..8d712f1 100644 --- a/2.0-format-changes.md +++ b/2.0-format-changes.md @@ -1,28 +1,27 @@ # 2.0 format changes -- Temp format is changed from temp.something[layer] to temp[layer]. something, for consistency +- Temp format is changed from `temp.something[layer]` to `temp[layer].something`, for consistency - Challenges are now saved as an object with the amount of completions in each spot. (This will break saves.) -- effectDisplay in Challenges and Upgrades no longer takes an argument, and neither does effect for Buyables +- `effectDisplay` in Challenges and Upgrades no longer takes an argument, and neither does `effect` for Buyables - Buyable cost can take an argument for amount of buyables, but it needs to function if no argument is supplied (it should do the cost for the next purchase). -- Generation of Points now happens in the main game loop (not in a layer update function), enabled by canGenPoints in game.js. -- Changed fullLayerReset to layerDataReset, which takes an array of names of values to keep +- Generation of Points now happens in the main game loop (not in a layer update function), enabled by `canGenPoints` in [game.js](js/game.js). +- Changed `fullLayerReset` to `layerDataReset`, which takes an array of names of values to keep In addition, many names were changed, mostly expanding abbreviations: All instances of: - chall -> challenge - unl -> unlocked - upg -> upgrade (besides CSS) - amt -> amount - desc -> description - resCeil -> roundUpCost - order -> unlockOrder - incr_order -> increaseUnlockOrder +- chall -> challenge +- unl -> unlocked +- upg -> upgrade (besides CSS) +- amt -> amount +- desc -> description +- resCeil -> roundUpCost +- order -> unlockOrder +- incr_order -> increaseUnlockOrder Challenges: - desc -> challengeDescription - reward -> rewardDescription - effect -> rewardEffect - effectDisplay -> rewardDisplay - active -> challengeActive - +- desc -> challengeDescription +- reward -> rewardDescription +- effect -> rewardEffect +- effectDisplay -> rewardDisplay +- active -> challengeActive diff --git a/docs/upgrades.md b/docs/upgrades.md index 8f90c21..6e35893 100644 --- a/docs/upgrades.md +++ b/docs/upgrades.md @@ -6,7 +6,7 @@ Useful functions for dealing with Upgrades and implementing their effects: - upgradeEffect(layer, id): Returns the current effects of the upgrade, if any - buyUpgrade(layer, id): Buys an upgrade directly (if affordable) -Hint: Basic point gain is calculated in game.js's "getPointGain". +Hint: Basic point gain is calculated in mod.js's "getPointGen". Upgrades are stored in the following format: @@ -15,7 +15,7 @@ Upgrades are stored in the following format: rows: # of rows cols: # of columns 11: { - desc: "Blah", + description: "Blah", more features } etc diff --git a/index.html b/index.html index bbad765..a9be91f 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@

{{modInfo.name}} {{VERSION.withoutName}}



Congratulations! You have reached the end and beaten this game, but for now...


-

Please check the Discord to see there are new content updates!



+

Please check the Discord to see if there are new content updates!



It took you {{formatTime(player.timePlayed)}} to beat the game.
Make sure that you record the time in your stream or else your speedrun won't count!

@@ -99,7 +99,14 @@
{{VERSION.withoutName}}

i
- +
+ + +

Dev Speed: {{format(player.devSpeed)}}x
diff --git a/js/game.js b/js/game.js index d61e42d..7675b9a 100644 --- a/js/game.js +++ b/js/game.js @@ -301,7 +301,7 @@ function gameLoop(diff) { player.autosave = false; NaNalert = true; - alert("We have detected a corruption in your save. Please visit https://discord.gg/wwQfgPa for help.") + alert("We have detected a corruption in your save. Please visit one of the discords in the info panel for help.") } } diff --git a/style.css b/style.css index 3264d6b..db0ab20 100644 --- a/style.css +++ b/style.css @@ -300,11 +300,24 @@ h1, h2, h3, b, input { left: 4px; width: 40px; height: 40px; - cursor: pointer } -#discord:hover { - transform: scale(1.2, 1.2); +#discord img { + width: 100%; + height: 100%; +} + +#discord-links { + position: absolute; + top: 0; + padding-top: 44px; + left: -244px; + width: 200px; + transition: left .3s ease; +} + +#discord:hover #discord-links { + left: -4px; } #version {