Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var streakUX = game.addChild(new StreakUX());' Line Number: 718
User prompt
rename StreakUX to BonusUX
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var streakUX = self.addChild(new StreakUX());' Line Number: 716
Code edit (15 edits merged)
Please save this source code
User prompt
In streak ux insert a streak label at //Insert label here
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (20 edits merged)
Please save this source code
User prompt
Implement self.calculateWarningScoreList = function () {}; which should return 13 warning values based on how many bubbles are getting close to the bottom of the screen. The goal being to show a warning to the user that some balls are getting close to the bottom.
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: null is not an object (evaluating 'bubbleIndex.col')' in or related to this line: 'var newCol = bubbleIndex.col + dir[1];' Line Number: 221
User prompt
Please fix the bug: 'TypeError: null is not an object (evaluating 'bubbleIndex.row')' in or related to this line: 'var newRow = bubbleIndex.row + dir[0];' Line Number: 218
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: null is not an object (evaluating 'bubbleIndex.row')' in or related to this line: 'if (rows[bubbleIndex.row] && rows[bubbleIndex.row].length == 12) {' Line Number: 211
Code edit (1 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: null is not an object (evaluating 'bubbleIndex.row')' in or related to this line: 'if (rows[bubbleIndex.row].length == 12) {' Line Number: 211
===================================================================
--- original.js
+++ change.js
@@ -399,15 +399,13 @@
if (row[currentPosition.co]) {
continue;
}
if (currentPosition.co >= row.length) {
- console.log("rejected");
continue;
}
} else {
var newRowLength = rows[intersectedBubblePos.row].length == 13 ? 12 : 13;
if (currentPosition.co >= newRowLength) {
- console.log("Length rejected for new row");
continue;
}
}
closestDistance = currentDistance;
@@ -429,9 +427,8 @@
row = [null, null, null, null, null, null, null, null, null, null, null, null, null];
}
rows.unshift(row);
}
- //console.log(offsetPositions[closestPosition].co);
row[offsetPositions[closestPosition].co] = bubble;
bubblesInFlight.splice(a--, 1);
refreshHintLine();
var bubbles = self.getConnectedBubbles(bubble);
@@ -514,13 +511,13 @@
LK.showGameOver();
}
if (gameIsStarted) {
if (bubble.y + self.y < 1000) {
- gridSpeed = Math.min(gridSpeed + .01, 1);
+ gridSpeed = Math.min(gridSpeed + .001, 1);
} else if (bubble.y + self.y < 2000) {
- gridSpeed = Math.max(gridSpeed - .01, 2);
+ gridSpeed = Math.max(gridSpeed - .001, .4);
} else {
- gridSpeed = Math.max(gridSpeed - .01, .25);
+ gridSpeed = Math.max(gridSpeed - .001, .15);
}
}
break;
}
@@ -557,8 +554,9 @@
previewBubble.isFlying = true;
}
createPreviewBubble();
self.fire = function () {
+ bulletsFired++;
grid.fireBubble(bubble, self.angle);
bubble = previewBubble;
previewBubble.x = previewBubble.y = 0;
previewBubble.scale.set(1, 1);
@@ -636,14 +634,12 @@
}
//Game size 2048x2732
/*
Todo:
-[ ] Make sure empty rows are removed from the array
[X] Make sure we GC nodes that drop of screen
[ ] Make preview line fade out at the end
-[ ] Add preview bubble
-[ ] Only allow ball types we have intersected with to appear in next ball list
*/
+var bulletsFired = 3 * 3 * 60;
var bubbleSize = 150;
var gameIsStarted = false;
var bubbleColors = [0xff2853, 0x44d31f, 0x5252ff, 0xcb2bff, 0x28f2f0, 0xffc411];
var barriers = [];
@@ -711,9 +707,16 @@
refreshHintLine();
// }
};
function getMaxTypes() {
- return Math.max(Math.min(Math.floor((LK.getScore() + 100000) / 50000), bubbleColors.length), 3);
+ if (bulletsFired > 30 * 3 * 3 && Math.random() > .6) {
+ return 6;
+ } else if (bulletsFired > 30 * 3 && Math.random() > .6) {
+ return 5;
+ } else if (bulletsFired > 30) {
+ return 4;
+ }
+ return 3;
}
function refreshHintLine() {
var ox = hintTargetX - launcher.x;
var oy = hintTargetY - launcher.y;
@@ -787,10 +790,10 @@
refreshHintLine();
var alphaList = grid.calculateWarningScoreList();
for (var a = 0; a < warningLines.length; a++) {
var value = alphaList[a] / 3;
- warningLines[a].alpha = Math.min(value, .4);
- warningLines[a].scale.set(20, value * 60);
+ warningLines[a].alpha += (Math.min(value, .4) - warningLines[a].alpha) / 100;
+ warningLines[a].scale.y += (value * 60 - warningLines[a].scale.y) / 100;
}
};
game.up = function () {
if (isValid) {
Circular white gradient circle on black background. Gradient from white on the center to black on the outer edge all around.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Soft straight Long red paint on black background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Fire ball. Bubble shooter game. Thin black outline.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green notification bubble. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.