Code edit (2 edits merged)
Please save this source code
User prompt
when ball is scored reduce its size and keep it in the same x and y as when it scored. Game should then continue as normal.
Code edit (3 edits merged)
Please save this source code
User prompt
when ball scores reduce its speed by 100%
User prompt
change effect when ball is scored. instead of dim reduce its size fast
User prompt
after ball has scored keep it in the same spot until time for next shot
User prompt
when the ball scores, replace ball dim efect after score for an effect to reduce the ball size. also keep the ball still in the same place while reducing its size.
User prompt
replace ball dim efect after score for an effect to reduce the ball size.
Code edit (5 edits merged)
Please save this source code
User prompt
after ball stars scaling down and reaches 0 it should not appear again until next shot
Code edit (2 edits merged)
Please save this source code
User prompt
if ball has scored decrease the size of the ball very fast until it disappears
Code edit (2 edits merged)
Please save this source code
User prompt
move score 50 pixels up
User prompt
make score font white
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
make score text lighter color
User prompt
send hooprimseparate to the bottom of z axis
User prompt
add white ouline to text
User prompt
move score multiplier 500 pixels dow
Code edit (3 edits merged)
Please save this source code
User prompt
move score 400 pixels down
User prompt
more rim 100 pixels up
Code edit (2 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -43,11 +43,11 @@
self.scale.x += (targetScale - self.scale.x) * 0.05;
self.scale.y += (targetScale - self.scale.y) * 0.05;
}
if (self.hasScored) {
- self.alpha -= 0.40;
+ self.alpha -= 0.50;
} else {
- self.alpha += 0.15;
+ self.alpha += 0.50;
if (self.alpha > 1) self.alpha = 1;
}
};
self.bounceOffPoint = function (x, y, elasticity) {
@@ -97,9 +97,9 @@
var backboardGraphics = LK.getAsset('backboard', 'Basketball Backboard', .5, .5);
backboardGraphics.y -= 250;
self.addChild(backboardGraphics);
self.hoopRimGraphics = LK.getAsset('hoopRim', 'Basketball Hoop Rim', .5, .5);
- self.hoopRimGraphics.y = backboardGraphics.height / 2 - 550 + 20 + 120 + 150 + 100 - 1000;
+ self.hoopRimGraphics.y = backboardGraphics.height / 2 - 550 + 20 + 120 + 150 + 100 - 1100;
self.hoopRimGraphics.alpha = 0;
self.addChild(self.hoopRimGraphics);
self.leftElement = LK.getAsset('leftElement', 'Left Side Element', .5, .5);
self.leftElement.x = self.hoopRimGraphics.x - self.hoopRimGraphics.width / 2 + self.leftElement.width / 2 - 50;
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.