User prompt
Please fix the bug: 'TypeError: self.graphics.clear is not a function' in or related to this line: 'self.graphics.clear();' Line Number: 39
User prompt
Please fix the bug: 'Uncaught TypeError: Graphics is not a constructor' in or related to this line: 'self.graphics = new Graphics();' Line Number: 36
User prompt
debug draw the curve on mouse position
User prompt
invert the X
Code edit (3 edits merged)
Please save this source code
User prompt
ball can only be thrown once
Code edit (1 edits merged)
Please save this source code
User prompt
reduce the angle of the throw
User prompt
Calculate the horizontal speed of the basketball based on the mouse click position
User prompt
invert the Y
User prompt
Reducevertical speed of the basketball should be calculated depending on where the mouse is clicking on the playspace
User prompt
the vertical speed of the ball is too much
User prompt
the hoop should not move
User prompt
on left click calculate an arc between the ball and the hoop, then, release the ball towards it
Initial prompt
Hoopz
===================================================================
--- original.js
+++ change.js
@@ -11,9 +11,9 @@
self.speedY = 0;
self.gravity = 0.5;
self.isThrown = false;
self["throw"] = function (power, angle) {
- self.speedY = -power;
+ self.speedY = -power / 2;
self.isThrown = true;
};
self.update = function () {
if (self.isThrown) {
2d basketball in the art style of final fantasy 9. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d basketball hoop net in the art style of final fantasy 9 , just the ring and the net. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a cartoon-style illustration of a back alley. The goal is to capture a lively and playful location. No skies.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a cartoon-style illustration of clouds. The goal is to capture a lively and playful location... Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a cartoon-style illustration of a yarn ball. The goal is to capture a lively and playful location. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a cartoon-style illustration of a Cat. The goal is to capture a lively and playful location. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a cartoon-style illustration of the word ''Bonus''. The goal is to capture a lively and playful text. The letter "O" in Bonus should be a basketball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon sideways claw swipe effect just the scratches in orange. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.