User prompt
if the ball is moving downwards and its y position is lower than the middle of the hoops y at that moment, then ball should stop moving.
Code edit (1 edits merged)
Please save this source code
User prompt
remove the bouncing of the rims
User prompt
if ball hits rim it should stay still
Code edit (5 edits merged)
Please save this source code
User prompt
where is the fade effect of the ball after score?
Code edit (6 edits merged)
Please save this source code
User prompt
allow ball to go 300 pixels higher
Code edit (1 edits merged)
Please save this source code
User prompt
add a border to the hoopoutline asset
User prompt
move hoop 100 pixels up
Code edit (2 edits merged)
Please save this source code
User prompt
remove shadow from hoop outline
User prompt
add shadow the text in the game
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Change score font ro white
User prompt
Move score 200 pixels up
User prompt
Move only score 800 pixels down
User prompt
Move bounceoff point 800 pixela up
User prompt
Move hoopring 800 pixels up
User prompt
Move rim 400 pixels up
User prompt
Adjust rim to new hoop and scor poaition
User prompt
Move rim outline and way to score points 400 pixela higher
User prompt
Move hoop rim 400 pixels up
===================================================================
--- original.js
+++ change.js
@@ -29,10 +29,12 @@
};
self.hasThrown = false;
self.move = function () {
self.speed.y += 3.2;
- self.x += self.speed.x;
- self.y += self.speed.y;
+ if (!(self.speed.y > 0 && self.y > hoop.y)) {
+ self.x += self.speed.x;
+ self.y += self.speed.y;
+ }
self.rotation += self.speed.x * 0.01;
if (self.hasThrown) {
var targetScale = 0.8;
self.scale.x += (targetScale - self.scale.x) * 0.05;
Cartoon. Grass background. Backyard. Top view. In game asset Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon. Wood board. In game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stars particles. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.