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
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 (5 edits merged)
Please save this source code
User prompt
also update bigHeart.highestScore in ProgressManager.manualGeneration and ProgressManager.updateGame
User prompt
in BigHeart, add highestScore property and use it instead of tapCount to avoid bugs when player buy generators
Code edit (4 edits merged)
Please save this source code
User prompt
in heart.down of LoveField, create a clone heart instead of animating the heart itself
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: setTimeout is not a function' in or related to this line: 'setTimeout(function () {' Line Number: 670
Code edit (2 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -945,33 +945,44 @@
}
});
}
function shakeScreen() {
- tween(game, {
- x: 10,
- y: 10
- }, {
- duration: 1000,
- easing: tween.easeInOut,
- onFinish: function onFinish() {
- tween(game, {
- x: -10,
- y: -10
- }, {
- duration: 1000,
- easing: tween.easeInOut,
- onFinish: function onFinish() {
- tween(game, {
- x: 0,
- y: 0
- }, {
- duration: 1000,
- easing: tween.easeInOut
- });
- }
- });
- }
- });
+ var shakeCount = 0;
+ function performShake() {
+ if (shakeCount >= 10) {
+ return;
+ } // Stop after 10 loops
+ tween(game, {
+ x: 10,
+ y: 10
+ }, {
+ duration: 100,
+ easing: tween.easeInOut,
+ onFinish: function onFinish() {
+ tween(game, {
+ x: -10,
+ y: -10
+ }, {
+ duration: 100,
+ easing: tween.easeInOut,
+ onFinish: function onFinish() {
+ tween(game, {
+ x: 0,
+ y: 0
+ }, {
+ duration: 100,
+ easing: tween.easeInOut,
+ onFinish: function onFinish() {
+ shakeCount++;
+ performShake(); // Recursive call for next shake
+ }
+ });
+ }
+ });
+ }
+ });
+ }
+ performShake();
}
var isDebug = false;
var SWIPE_THRESHOLD = 10; // Threshold in pixels to distinguish between taps and swipes
var TAP_DETECT_DELAY = 600;
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
beautifull red gift box.
black plastic 3d triangle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
reset button. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows