Code edit (1 edits merged)
Please save this source code
User prompt
use formatGeneratorPrice to display generators cost
User prompt
add a new function formatGeneratorPrice to write genrator cost with abreviations : 1000 => 1K 1000000 => 1M ...
Code edit (1 edits merged)
Please save this source code
User prompt
add a bit of randomness in performShake movements (but always return to a normal position)
User prompt
shakeScreen anim doesn't look like a shake as it is only 3 slow movements. Anlayse then use a loop or a recursive approach to make 10 loops of 3 tween anims of 100ms
User prompt
make shakeScreen last 3sec
User prompt
make shakeScreen last 1sec
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
use self.tapMultiplier in manualGeneration
Code edit (2 edits merged)
Please save this source code
User prompt
when player buy generator index N; set the multiplier to 2 pow (N+1)
User prompt
in progressManager add a new property self.tapMultiplier = 1
Code edit (2 edits merged)
Please save this source code
User prompt
add a new global variable unlockedGeneratorIndex = 0; to track the index of last unlocked generator
Code edit (3 edits merged)
Please save this source code
User prompt
create a new global allowSwipe = false; when play unlocks generator index 5, set it to true; ignore swipe moves on buttons or right board when allowSwipe is false
User prompt
when there is less than 6 generator buttons visible, ignore the swipes
Code edit (2 edits merged)
Please save this source code
User prompt
Ok. Now the problem is : frames of heartType 0 progressievely fade from tap 0 to tap 100 and that is Ok but frames of heartType 1 from progressievely fade from tap 100 to tap 1000 instead of 100 to 200 currently. Please fix
Code edit (1 edits merged)
Please save this source code
User prompt
for heart_0_frame_X, alpha of the frames properly goes from 1 to 0 for each frame for taps from 0 to ~100; But then for next hearts (ie heart_1_frame_X) alpha doesn't change
Code edit (1 edits merged)
Please save this source code
User prompt
also update bigHeart.highestScore in ProgressManager.manualGeneration and ProgressManager.updateGame
===================================================================
--- original.js
+++ change.js
@@ -972,9 +972,8 @@
});
}
});
}
-var unlockedGeneratorIndex = 0; // Track the index of the last unlocked generator
var isDebug = false;
var SWIPE_THRESHOLD = 10; // Threshold in pixels to distinguish between taps and swipes
var TAP_DETECT_DELAY = 600;
var TAPS_PER_LEVEL = {
@@ -1146,8 +1145,9 @@
var globalStartY = 0;
// Declare a global variable to track the node being dragged
var dragNode = null;
var isSwipingButtons = false; // Global flag to track swipe/animation state
+var unlockedGeneratorIndex = 0; // Track the index of the last unlocked generator
function log() {
if (isDebug) {
console.log.apply(console, arguments);
}
@@ -1447,8 +1447,9 @@
// Enable swipe when generator 5 becomes visible
if (!allowSwipe && index === 5) {
allowSwipe = true;
}
+ unlockedGeneratorIndex = Math.max(index, unlockedGeneratorIndex);
}
// Show generator if player has at least 75% of its cost
button.wasShown = true;
button.visible = true;
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