===================================================================
--- original.js
+++ change.js
@@ -22,10 +22,9 @@
// Function to handle popping the ball
self.pop = function () {
LK.setScore(LK.getScore() + 1);
scoreTxt.setText(LK.getScore());
- self.y = -ballGraphics.height; // Reset position
- self.x = Math.random() * 2048; // Randomize x position
+ self.destroy();
};
});
/****