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
User prompt
Please fix it
User prompt
Hardcode 10000 points on game start. will remove this later
User prompt
please implement it
User prompt
add a listener to track players tap on brick. console log every time the player touches a brick with a tap
User prompt
add a listner to track players taps on the screen
User prompt
Remove ball spawn on player tap
User prompt
for some reason player is ot beigg able to tap bricks. help
User prompt
bricks should be touchable
User prompt
bricks should be tapable by user
User prompt
refactor how player can touch bricks
Code edit (1 edits merged)
Please save this source code
User prompt
identify if player touches the coordinates of the screen where a brick is positioned
Code edit (1 edits merged)
Please save this source code
User prompt
can you draw the hitbox of the brick
User prompt
Please fix the bug: 'Graphics is not a constructor' in or related to this line: 'var hitbox = new Graphics();' Line Number: 47
User prompt
Please fix the bug: 'Graphics is not a constructor' in or related to this line: 'var hitbox = new Graphics();' Line Number: 47
User prompt
Make sure bricks can be touched in any part of their surface
User prompt
sometimes balls bounce close to a brick butu do not touch it and nor destroy it, can you fix that
User prompt
add a level sctructurue, level two should have more bricks and some should have 2 hitpints
===================================================================
--- original.js
+++ change.js
@@ -163,8 +163,9 @@
}
};
// Handle screen tap to launch a new ball
game.down = function (x, y, obj) {
+ console.log("Player tapped the screen at coordinates: ", x, y);
// Check if a brick was touched
for (var i = 0; i < bricks.length; i++) {
var brick = bricks[i];
if (brick.intersects({