User prompt
Bricks are not being destroyed on tap, please fix it
User prompt
Still not being destoryed on tap
User prompt
Please fix the bug: 'Uncaught TypeError: brick.containsPoint is not a function' in or related to this line: 'if (brick.containsPoint({' Line Number: 130
User prompt
player should add 1 point, for every point taken out of a brick
User prompt
show points on the top rright
User prompt
player can buy extra balls by using points
User prompt
showbutton to buy balls and its cost
User prompt
make sure the buy ball button is visible in the top of the screen
User prompt
buy ball button should be on the left of the points
User prompt
make buy ball an actual button
User prompt
Please fix the bug: 'LK.UIButton is not a constructor' in or related to this line: 'var buyBallButton = new LK.UIButton({' Line Number: 82
User prompt
balls should spanw with a random direction
User prompt
make buy ball an actual button
User prompt
Please fix the bug: 'LK.Button is not a constructor' in or related to this line: 'var buyBallButton = new LK.Button({' Line Number: 82
User prompt
Please fix the bug: 'LK.Text2 is not a constructor' in or related to this line: 'var buyBallButton = new LK.Text2('Buy Ball (50)', {' Line Number: 82
User prompt
move buy ball button to the top center of the screen
User prompt
create a hud where the points and the buy button will be
User prompt
move buy ball button more to the left
Code edit (7 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
add icon of ball inside of buy button
Code edit (4 edits merged)
Please save this source code
User prompt
show cost of ball under the button
User prompt
Can you fix collision between ball and bricks
User prompt
when a brick is destroyed only add the points it had in the begining
===================================================================
--- original.js
+++ change.js
@@ -120,9 +120,9 @@
game.down = function (x, y, obj) {
// Check if a brick was touched
for (var i = 0; i < bricks.length; i++) {
var brick = bricks[i];
- if (brick.containsPoint({
+ if (brick.intersects({
x: x,
y: y
})) {
brick.hit();