Code edit (20 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'bobble.y += launcher.y - self.y;' Line Number: 275
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (13 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var dist = bubble.y - nextYx - self.x;' Line Number: 243
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 (21 edits merged)
Please save this source code
User prompt
Add a method to Grid, that takes a point and a direction given as an angle and returns a path of movement as an array of points. It should do this by starting at the point, stepping 10px in the direction of the angle with the following rules. * If the left wall or right wall is hit, bounce * If the top of the screen is hit, stop * If a bubble in the rows array is hit bounce. To do intersection testing, use circle to circle intersection, with the radius of the circle used for the iteration being 70
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
Add a function to the game code that is used to increase the game score. This should use LK methods to update score and also update the label value
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
The score colors does not work as the format must be "#xxxxxx"
User prompt
In ScoreIndicatorLabel use the bubbleColors values to set color based on type. Make sure to covert to string hex values
Code edit (6 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: undefined is not an object (evaluating 'scoreMultipliers[Math.floor(self.x / (2048 / 5))].applyBubble')' in or related to this line: 'scoreMultipliers[Math.floor(self.x / (2048 / 5))].applyBubble(self);' Line Number: 77
Code edit (5 edits merged)
Please save this source code
User prompt
If unattached bubbles falls below 2732 - 500 remove them
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
In ScoreMultipliers add a score label text string. This should be white with the font Impact.
===================================================================
--- original.js
+++ change.js
@@ -64,10 +64,14 @@
self.y += overlap * Math.sin(angle);
}
}
// Remove unattached bubbles that fall below 2732 - 500
- if (self.y > 2732 - 300) {
+ if (self.y > 2732 - 400) {
self.destroy();
+ var index = Math.floor(self.x / (2048 / 5));
+ if (scoreMultipliers[index]) {
+ scoreMultipliers[index].applyBubble(self);
+ }
}
}
};
});
@@ -213,8 +217,9 @@
font: "Impact"
});
scoreMultiplierLabel.anchor.set(0.5, 0);
self.addChild(scoreMultiplierLabel);
+ self.applyBubble = function (bubble) {};
});
/****
* Initialize Game
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.