Code edit (11 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Ok, make the progress back 10px height and 2048 width and, make the progress bar 8px height and from 0 ro 2048 width depending on progress
Code edit (2 edits merged)
Please save this source code
User prompt
add a new progressbar class that uses assets progressBack and progressBar. don't do anything else
Code edit (7 edits merged)
Please save this source code
User prompt
if stored score was > 0, change the intro message to "Welcome back my love!"
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -635,9 +635,9 @@
});
LK.getSound('endHeartTap').play(); // Play pop sound for manualGeneration
LK.setTimeout(function () {
LK.getSound('pop2').play();
- }, 2000);
+ }, 666);
};
self.hearts.push(heart);
}
}
@@ -1510,8 +1510,9 @@
bigHeart.visible = false; // Hide the BigHeart
giftRain.visible = false; // Hide the GiftRain
// Play tada sound
LK.getSound('tada').play();
+ LK.playMusic('infiniteMusic');
// Animate rightBoard to the right border of the screen
tween(rightBoard, {
x: 2048 + rightBoard.width // Move to the right border
}, {
@@ -1583,8 +1584,9 @@
bigHeart.visible = false; // Hide the BigHeart
giftRain.visible = false; // Hide the GiftRain
// Play tada sound
LK.getSound('tada').play();
+ LK.playMusic('infiniteMusic');
// Animate rightBoard to the right border of the screen
tween(rightBoard, {
x: 2048 + rightBoard.width // Move to the right border
}, {
@@ -1733,9 +1735,9 @@
function initializeGame() {
tapCount = storage.tapCount || 900;
isInfiniteMode = storage.isInfiniteMode || false;
//storage.isInfiniteMode = isInfiniteMode = false;
- storage.isInfiniteMode = isInfiniteMode = true;
+ //storage.isInfiniteMode = isInfiniteMode = true;
var storedGenerators = storage.generators || [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
log("Loaded tapCount from storage:", tapCount);
log("Loaded isInfiniteMode from storage:", isInfiniteMode);
log("Loaded generators from storage:", storedGenerators);
@@ -1835,9 +1837,13 @@
messageText.y = 2500;
foregroundContainer.addChild(messageText);
// Start updtes
bigHeart.down();
- popMessage("Welcome my love!");
+ if (tapCount > 0) {
+ popMessage("Welcome back my love!");
+ } else {
+ popMessage("Welcome my love!");
+ }
var intervalId = LK.setInterval(function () {
progressManager.updateGame();
}, 1000);
checkInfiniteMode();
@@ -1847,8 +1853,9 @@
bigHeart.visible = false; // Hide the BigHeart
giftRain.visible = false; // Hide the GiftRain
// Play tada sound
LK.getSound('tada').play();
+ LK.playMusic('infiniteMusic');
// Animate rightBoard to the right border of the screen
tween(rightBoard, {
x: 2048 + rightBoard.width // Move to the right border
}, {
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