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
@@ -293,10 +293,10 @@
currentPoint.y = nextY;
}
if (hitBubble) {
//Only increase avilable bubble type when we have actually pointed as such a bubble
- if (hitBubble.type > maxSelectableBubble) {
- maxSelectableBubble = hitBubble.type;
+ if (hitBubble.type + 1 > maxSelectableBubble) {
+ maxSelectableBubble = hitBubble.type + 1;
}
;
}
return path;
@@ -518,8 +518,11 @@
});
self.setTint = function (tint) {
bubble.tint = tint;
};
+ self.getTint = function (tint) {
+ return bubble.tint;
+ };
});
var Launcher = Container.expand(function () {
var self = Container.call(this);
var bubble = self.addChild(new Bubble(getMaxTypes()));
@@ -581,8 +584,17 @@
particle.x = bubble.x;
particle.y = self.y + 100;
};
});
+var WarningLine = Container.expand(function () {
+ var self = Container.call(this);
+ var warning = self.attachAsset('warningstripe', {
+ anchorX: .5,
+ anchorY: .5
+ });
+ warning.blendMode = 1;
+ warning.rotation = .75;
+});
/****
* Initialize Game
****/
@@ -614,15 +626,25 @@
var gameIsStarted = false;
var bubbleColors = [0xff2853, 0x44d31f, 0x5252ff, 0xcb2bff, 0x28f2f0, 0xffc411];
var barriers = [];
var maxSelectableBubble = 3;
+var warningLines = [];
+for (var a = 0; a < 13; a++) {
+ var wl = game.addChild(new WarningLine());
+ wl.x = 2048 / 13 * (a + .5);
+ wl.y = 2300;
+}
for (var a = 0; a < 4; a++) {
for (var b = 0; b < 3; b++) {
var barrier = game.addChild(new Barrier());
- barrier.y = 2732 - 500 + b * 25;
+ barrier.y = 2732 - 450 + b * 70;
barrier.x = 2048 / 5 * a + 2048 / 5;
barriers.push(barrier);
}
+ var barrierBlock = game.attachAsset('barrierblock', {});
+ barrierBlock.x = 2048 / 5 * a + 2048 / 5;
+ barrierBlock.y = 2732 - 450;
+ barrierBlock.anchor.x = .5;
}
// Create a score label
var scoreLabel = new Text2('0', {
size: 120,
@@ -686,8 +708,9 @@
var distanceSinceLastDot = -hintOffset + 100;
var hintBubbleOffset = 0;
var lastPoint = path[0];
var tint = bubbleColors[launcher.getType()];
+ var updateTint = true;
for (var a = 1; a < path.length; a++) {
var p2 = path[a];
var ox = p2.x - lastPoint.x;
var oy = p2.y - lastPoint.y;
@@ -702,9 +725,15 @@
hintBubblePlayer.addChild(currentBubble);
}
currentBubble.alpha = bubbleAlpha;
currentBubble.visible = true;
- currentBubble.setTint(tint);
+ var currentTint = currentBubble.getTint();
+ if (hintBubbleOffset == 0) {
+ currentBubble.setTint(tint);
+ } else if (updateTint && currentTint != tint || currentTint == 0xffffff) {
+ currentBubble.setTint(tint);
+ updateTint = false;
+ }
currentBubble.x = lastPoint.x - Math.cos(angle) * amountOver;
currentBubble.y = lastPoint.y - Math.sin(angle) * amountOver;
hintBubbleOffset++;
distanceSinceLastDot = 0;
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.