User prompt
add also particles to explosion of bricks
User prompt
prticle effect should be better
User prompt
colors of particles should be fromt eh tints of the game
User prompt
particles explossions should be ranodm and different every time
User prompt
tween effect on brick explosion should also change a be random ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (5 edits merged)
Please save this source code
User prompt
remove particle effect
Code edit (2 edits merged)
Please save this source code
User prompt
sniper price should be 500
User prompt
update also sniper price in the button
User prompt
reduce size of prices of ball buttons
User prompt
add a little more space between buttons of ball purchase
User prompt
add a litttle more space between them
User prompt
increase price of sniper ball to 500. make sure to update the text of the button.
User prompt
Do the samefor splash, increase it to 150
User prompt
scatter price should be 2000
User prompt
Do the same for scatter, increase it to 2000
User prompt
hide ball purchase buttons when they are disabled
Code edit (2 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
add bounce sound when ball bounces or touches a brick and do not destoyr it
User prompt
play click sound when player clicks on a brick
User prompt
play explosion when a brick is destroyed
User prompt
play background musci on ame load
User prompt
also use click when clicking on upgrade or on start or reset
===================================================================
--- original.js
+++ change.js
@@ -141,11 +141,12 @@
var particle = new Star();
particle.x = self.x;
particle.y = self.y;
particle.speed = Math.random() * 7 + 3;
+ var angle = Math.random() * 2 * Math.PI; // Random angle for direction
particle.direction = {
- x: Math.cos(i / particleCount * 2 * Math.PI),
- y: Math.sin(i / particleCount * 2 * Math.PI)
+ x: Math.cos(angle),
+ y: Math.sin(angle)
};
particle.tint = explosionColors[Math.floor(Math.random() * explosionColors.length)];
game.addChild(particle);
tween(particle, {