Code edit (2 edits merged)
Please save this source code
User prompt
add the following GENERATORS: 3) PERFUME 4) WATCH 5) JEWELRY_SET 6) SPORTS_CAR 7) VILLA 8) PRIVATE_JET 9) INFINITE_LOVE
Code edit (15 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'cost')' in or related to this line: 'self.costText = new Text2(self.config.cost.toString(), {' Line Number: 399
Code edit (1 edits merged)
Please save this source code
User prompt
for `progressManager.currentLevel = Math.min(9, Math.max(0, tapCount / 100)); ` Fix level calculation to itterate TAPS_PER_LEVEL until finding a number > tapsCount
Code edit (7 edits merged)
Please save this source code
User prompt
at game start, update properly progressmanager, bigHeart and background depending of tapCount. Analyze deeply. Avoid the errror 'Timeout.tick error: Cannot read properties of undefined (reading '5')' in or related to this line: 'tween(self.heartFrames[self.heartType + 1][5], {' But the BiHeart was stuck on heartTyp 0 frame 0 after you made the initialisation. Currently if game start with a big TapCount the condition `tapCount >= self.tapsPerLevel[self.currentLevel]`is triggered and explosions occur at game start. this sound not be the case: don't forget to set progressManager.currentLevel
User prompt
Please fix the bug: 'Timeout.tick error: Cannot read properties of undefined (reading '5')' in or related to this line: 'tween(self.heartFrames[self.heartType + 1][5], {' Line Number: 347
User prompt
at game start, update properly progressmanager, bigHeart and background depending of tapCount. Analyze deeply. Previous time you avoided the errror 'Timeout.tick error: Cannot read properties of undefined (reading '5')' in or related to this line: 'tween(self.heartFrames[self.heartType + 1][5], {' But the BiHeart was stuck on heartTyp 0 frame 0 after you made the initialisation
User prompt
at game start, update properly progressmanager, bigHeart and background depending of tapCount. Analyze deeply. And avoid the errror 'Timeout.tick error: Cannot read properties of undefined (reading '5')' in or related to this line: 'tween(self.heartFrames[self.heartType + 1][5], {'
User prompt
Please fix the bug: 'Timeout.tick error: Cannot read properties of undefined (reading '5')' in or related to this line: 'tween(self.heartFrames[self.heartType + 1][5], {' Line Number: 347
User prompt
at game start, update properly progressmanager, bigHeart and background depending of tapCount
Code edit (1 edits merged)
Please save this source code
User prompt
use TAPS_PER_LEVEL for tapLimit. Analayze the code well to avoid error of use before declaration or things like that
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'self.tapLimit = TAPS_PER_LEVEL[0]; // Initialize tap limit' Line Number: 141
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'self.tapLimit = TAPS_PER_LEVEL[0]; // Initialize tap limit' Line Number: 141
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'self.tapLimit = TAPS_PER_LEVEL[0]; // Initialize tap limit' Line Number: 141
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'self.tapLimit = TAPS_PER_LEVEL[0]; // Initialize tap limit' Line Number: 141
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'self.tapLimit = TAPS_PER_LEVEL[0]; // Initialize tap limit' Line Number: 141
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading '0')' in or related to this line: 'self.tapLimit = TAPS_PER_LEVEL[0]; // Initialize tap limit' Line Number: 141
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'TAPS_PER_LEVEL')' in or related to this line: 'self.tapLimit = progressManager.TAPS_PER_LEVEL[0]; // Initialize tap limit' Line Number: 141
Code edit (4 edits merged)
Please save this source code
User prompt
extract the tapsPerLevel from progressManager class to a global constant
===================================================================
--- original.js
+++ change.js
@@ -983,8 +983,15 @@
// Set debug cost for Generators
GENERATORS.ROSE.cost = 10;
GENERATORS.CHOCLATE.cost = 11;
GENERATORS.CHAIN_BRACELET.cost = 12;
+ GENERATORS.PERFUME.cost = 10;
+ GENERATORS.WATCH.cost = 11;
+ GENERATORS.JEWELRY_SET.cost = 12;
+ GENERATORS.SPORTS_CAR.cost = 10;
+ GENERATORS.VILLA.cost = 11;
+ GENERATORS.PRIVATE_JET.cost = 12;
+ GENERATORS.INFINITE_LOVE.cost = 12;
}
var UPGRADES = {
LOVE_FILTER: {
id: 0,
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