Initial prompt
Idel Breakout
User prompt
On tap, destroy a brick do not spawn more balls
User prompt
remove game over condition
User prompt
arrange brick better in the screen
User prompt
ball should bounce off off wals
User prompt
ball should bounce off of briks
User prompt
if ball destoys a brick it should still bounce of
User prompt
balls should bounce on the screen walls
User prompt
also bounce on the bottom, and remove game over
User prompt
can you arrange bricks in a better display, make sure thee is space between them
User prompt
improve balls physics
User prompt
actually have ball bounce off like it was arkanoid
User prompt
do not spawn a new ball on ttap
User prompt
bricks will have hitpoints. First level all bricks will have 1 hit point. show hitpoints remaining in brick
User prompt
player will start with one hit point damage. When player touches a brick do the player damage.
User prompt
Please fix the bug: 'ReferenceError: ball is not defined' in or related to this line: 'self.health -= ball.damage;' Line Number: 55
User prompt
there should a player damage and a ball damage
User prompt
player can destroy brick by taping on them
User prompt
Please fix the bug: 'balls is not defined' in or related to this line: 'balls.push(ball);' Line Number: 110
User prompt
Please fix the bug: 'Uncaught TypeError: brick.containsPoint is not a function' in or related to this line: 'if (brick.containsPoint(obj.global)) {' Line Number: 148
User prompt
player can reduce brick hitpoints by touching it
User prompt
Please fix the bug: 'Uncaught TypeError: brick.containsPoint is not a function' in or related to this line: 'if (brick.containsPoint(obj.global)) {' Line Number: 130
User prompt
brick is not being affected by touch...it should
User prompt
center brick blocks to the middle of the screen
User prompt
also center them horizotnally, thhey are to the ight know
===================================================================
--- original.js
+++ change.js
@@ -90,8 +90,11 @@
brick.hit();
ball.direction.y *= -1;
ball.direction.x *= -1;
score += 10;
+ if (brick.health <= 0) {
+ brick.destroy();
+ }
}
}
// Remove ball if it goes off screen
if (ball.y >= 2732) {