Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
popupBucket, while fading out, make the bucketAsset rotate
Code edit (4 edits merged)
Please save this source code
User prompt
call popupBucket on score
Code edit (1 edits merged)
Please save this source code
User prompt
in popupMultiplier, add an offset to the asset position so that it doesn't go out of screen
Code edit (5 edits merged)
Please save this source code
User prompt
in popupMultiplier, when grow anim ends fade the asset and destroy it
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
in popupMultiplier, don't use scale, use width and height
Code edit (1 edits merged)
Please save this source code
User prompt
call popupMultiplier(value, x, y) at each bounce
Code edit (2 edits merged)
Please save this source code
User prompt
in popupMultiplier, popup the x2 asset at the position x,y. start at with,heigth 1x1 and make it grow until 1024x1024
User prompt
in popupMultiplier, check if value is in possibleValues, if not set it to 999;
Code edit (5 edits merged)
Please save this source code
User prompt
flash the ball at each bounce
User prompt
flash the screen at each bounce
Code edit (7 edits merged)
Please save this source code
User prompt
move the hoop after a shoot even if not scored
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
don't accept other touch while ball is moving
===================================================================
--- original.js
+++ change.js
@@ -402,15 +402,15 @@
});
game.addChild(multiplierAsset);
// Animate the growth of the x2 asset to 1024x1024
var growInterval = LK.setInterval(function () {
- multiplierAsset.scaleX *= 1.1; // Grow the scale by 10% each tick
- multiplierAsset.scaleY *= 1.1;
+ multiplierAsset.width *= 1.1; // Grow the width by 10% each tick
+ multiplierAsset.height *= 1.1;
// Check if the asset has grown to or beyond 1024x1024
if (multiplierAsset.width >= 1024 || multiplierAsset.height >= 1024) {
LK.clearInterval(growInterval); // Stop the growth animation
- multiplierAsset.scaleX = 1024 / multiplierAsset.width; // Adjust to exact 1024x1024
- multiplierAsset.scaleY = 1024 / multiplierAsset.height;
+ multiplierAsset.width = 1024; // Adjust to exact 1024 width
+ multiplierAsset.height = 1024; // Adjust to exact 1024 height
}
}, 16); // Run every 16ms (~60FPS)
}
/* ********************************************************************************* */