User prompt
display only 2 instances of each miniball asset when ball disseapears
User prompt
do not make the ball go in opposite direction when intersecting with middle of screen
User prompt
make the ball go 1.5 the distance when dragged
User prompt
make the ball go twice the distance when dragged
User prompt
make user drag half the distance to get the ball the same height
Code edit (9 edits merged)
Please save this source code
User prompt
while ball is invisible display miniball assets on the screen
User prompt
make ball shoot twice as high when dragged
User prompt
if ball goes through basket before intersecting with defender do not make ball dissapear
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'height')' in or related to this line: 'powerBar4.y = 2732 - powerBar4.height - powerBar3.height - powerBar2.height - powerBar1.height / 2 - 60; // Position above powerBar3' Line Number: 558
User prompt
if ball intersects with defender make ball dissapear for 1 second
User prompt
remove code that makes ball go in opposite direction of hands if it intersects
User prompt
make ball reappear after the end of every shot
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'height')' in or related to this line: 'powerBar4.y = 2732 - powerBar4.height - powerBar3.height - powerBar2.height - powerBar1.height / 2 - 60; // Position above powerBar3' Line Number: 553
User prompt
if ball intersects with defender ball dissapears
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'height')' in or related to this line: 'powerBar4.y = 2732 - powerBar4.height - powerBar3.height - powerBar2.height - powerBar1.height / 2 - 60; // Position above powerBar3' Line Number: 547
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Date.Now is not a function' in or related to this line: 'ball.throwSpeed = (Date.Now() - mouseDownTime) / 1000;' Line Number: 570
User prompt
only throw the ball when mouse button is released
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: powerBar2 is not defined' in or related to this line: 'powerBar4.y = 2732 - powerBar4.height - powerBar3.height - powerBar2.height - powerBar1.height / 2 - 60; // Position above powerBar3' Line Number: 537
User prompt
Please fix the bug: 'ReferenceError: powerBar1 is not defined' in or related to this line: 'game.addChild(powerBar1);' Line Number: 510
User prompt
Please fix the bug: 'ReferenceError: powerBar1 is not defined' in or related to this line: 'game.addChild(powerBar1);' Line Number: 510
Code edit (6 edits merged)
Please save this source code
User prompt
make ball resting position 200 pixels higher
===================================================================
--- original.js
+++ change.js
@@ -601,25 +601,18 @@
var miniball1 = LK.getAsset('MiniBall', {
anchorX: 0.5,
anchorY: 0.5
});
- miniball1.x = ball.x - 50;
- miniball1.y = ball.y - 50;
+ miniball1.x = ball.x - 25;
+ miniball1.y = ball.y - 25;
game.addChild(miniball1);
var miniball2 = LK.getAsset('miniball2', {
anchorX: 0.5,
anchorY: 0.5
});
- miniball2.x = ball.x;
- miniball2.y = ball.y - 50;
+ miniball2.x = ball.x + 25;
+ miniball2.y = ball.y - 25;
game.addChild(miniball2);
- var miniball3 = LK.getAsset('miniball3', {
- anchorX: 0.5,
- anchorY: 0.5
- });
- miniball3.x = ball.x + 50;
- miniball3.y = ball.y - 50;
- game.addChild(miniball3);
LK.setTimeout(function () {
ball.visible = true; // Make ball visible after 1 second
game.removeChild(miniball1);
game.removeChild(miniball2);
Basketball, cartoon style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
4:3 Simple rectangle white outline. Black background
Paris. Paris basketball backgroung. Eiffel Tower. Eurosport logo. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
rainbow sparkle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
two white palms facing forward no background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. HD Color
POV basketball court in forest. Full screen. Background. High detail
basketball barn background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
basketball dungeon background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
heaven background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pow effect. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
left hand. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Wide Single Orange metal bar lying down Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast. —ar 2:1
https://kagi.com/proxy/basketball_backboard.png?c=iNrrnnUOe99nVfDGJsYBLujiaX2Hu-zxBFRkvLEyXdRnJ8cU3RjcAYbR-o12E923qVNGy1CEGrQG87ogCD3yUarJdZYt5R03mmEMb7Jrh-8%3D blank backboard Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.