User prompt
if an object is above y=0, start the gameovertimer (3 seconds) flash the screen red every second, if the timer is over check again if an object is above y=0 then go game over, if there is none then continiue the game like normal
User prompt
remove the ball spawning cooldown
User prompt
add score when balls merge
User prompt
also add points for every new merged ball not only the new spawned balls
User prompt
if an object is above y=0 instead of going game over instantly, start the game over timer (3 seconds) flash the screen red every second, if the timer is over check again if an object is above y=0 then go game over, if there is none then continiue the game like normal
User prompt
when an object gets above y=0 go game over
User prompt
Migrate to the latest version of LK
User prompt
Replace getBallColor with a custom function
User prompt
replace newBall.getAssetColor by a custom function
User prompt
make the background color a darker version of the last spawned ball
User prompt
make the background a darker version of the last dropped ball
User prompt
make a multiplier when balls merge
User prompt
make a multiplier
User prompt
showmultiplier in the top right
User prompt
make a multiplier
User prompt
add a ball merging multiplier
User prompt
modefy the code so that merging balls gives +1 score
User prompt
modefy the code so that merging balls gives +1 score
User prompt
if balls merge add one to the score, keep the normal score
User prompt
change the score so each merge should be the normal score +1
User prompt
halve the size of each ball
User prompt
make it impossible for balls to clip into eachother
User prompt
what you changed is good, but make the bounce on collissiong with other balls less
User prompt
make the balls bounce less
User prompt
what you changed is good, but make the bounce on collide less
===================================================================
--- original.js
+++ change.js
@@ -39,9 +39,9 @@
self.addChild(scoreText);
self.value = 0;
self.updateScore = function () {
self.value = balls.reduce(function (score, ball) {
- return score + Math.pow(2, parseBallType(ball.type) - 1);
+ return score + Math.pow(2, parseBallType(ball.type));
}, 0);
scoreText.setText(self.value.toString());
};
});
@@ -151,8 +151,9 @@
for (var i = 0; i < balls.length; i++) {
for (var j = i + 1; j < balls.length; j++) {
if (balls[i].intersects(balls[j]) && balls[i].type === balls[j].type) {
balls[i].upgrade();
+ score.value += 1;
balls[j].destroy();
balls.splice(j, 1);
// Adjust index to continue checking without skipping a ball
j--;