Code edit (1 edits merged)
Please save this source code
User prompt
now button show '0' instead of 'NaN', it's better but it's worng: it should be 10 then 10^1.2 then ....
Code edit (1 edits merged)
Please save this source code
User prompt
try to fix NaN written on gen buttons after a purchase
User prompt
make each generators cost exponentially depend on number of bought genrators and update the corresponding GeneratorButton text
User prompt
make each generators cost grow exponentially after each buying
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'cost')' in or related to this line: 'var costText = new Text2(self.config.cost.toString(), {' Line Number: 401
User prompt
now use the generator cost for the text on the button
User prompt
animate button with a bump on successful buying ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (7 edits merged)
Please save this source code
User prompt
in updateGeneratorsUi, when a button is shown for the first time, animate its entrance from the right border ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
in updateGeneratorsUi, when a generatorButtons is displayed, store a flag 'wasShown' in this generatorButton. then if wasShown don't make it invisble even if player can't buy
Code edit (2 edits merged)
Please save this source code
User prompt
in updateGeneratorsUi, set buttons alpha to 0.75 when player can't but them
User prompt
in updateGeneratorsUi, use generatorButtons config property instead of ``` var generatorConfig = Object.values(GENERATORS).find(function (g) { return g.id === index; }); ```
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Cannot convert undefined or null to object' in or related to this line: 'self.config = Object.values(GENERATORS).find(function (g) {' Line Number: 409
User prompt
Please fix the bug: 'Cannot convert undefined or null to object' in or related to this line: 'self.config = Object.values(GENERATORS).find(function (g) {' Line Number: 409
Code edit (1 edits merged)
Please save this source code
User prompt
when can't buy a generator, shake the button
Code edit (1 edits merged)
Please save this source code
User prompt
in GeneratorButton, make ths `if (tapCount < GENERATORS.ROSE.cost)` more generic (depending on actual cost)
User prompt
add next GENERATORS : CHOCLATE and CHAIN_BRACELET
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -725,9 +725,9 @@
// Set alpha to 0.75 if player can't buy the generator
button.alpha = self.money < generatorConfig.cost ? 0.75 : 1;
} else {
button.visible = false;
- button.alpha = 0.75;
+ button.alpha = 0.6;
}
});
};
self.updateGame = function () {
a big lovely heart
a big stone heart
a big used copper heart
face view of a big bronze heart
face view of a big silver heart
Big shining gold heart verly slightly ornate. face view.
Big precious shiny porcelain heart slightly ornate. face view.
Large precious heart in mother-of-pearl, lightly ornate. Front view.
Large heart in precious ruby, very lightly decorated. Front view.
The most precious large heart in diamond, Front view.
clean pink enamel board witha very thin border