Remix started
Copy 2024's Basketball
User prompt
Make the ball not rotate when thrown
User prompt
Make the ball heavier and not bounce so much
User prompt
Make the ball fly closer or further based on how strong was the swipe with mouse
User prompt
Give the ball +30% more and less distance it will fly depending on how strong is the swipe of mouse
User prompt
Make the ball have a different asset when it's in flight after being thrown
User prompt
Make the ball have a different asset when it's in flight after being thrown. After respawn of the ball, the ball should always have the default look
User prompt
Make ball heavier by 30%
User prompt
Put a new asset right on top of the hoop. It should have the same size.
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'width')' in this line: 'hoopTopAsset.width = self.hoopRimGraphics.width;' Line Number: 120
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'width')' in this line: 'hoopTopAsset.width = self.hoopRimGraphics.width;' Line Number: 120
User prompt
Put hoop top in the scene right above the hooprim. So they are connected visually
User prompt
Take asset hooptop and attach it right at the bottom of hooprim
User prompt
Take asset hooptop and attach it right at the top of hooprim
User prompt
move hooptop 500 pixels lower
User prompt
Move hooptop 100 pixel layers
User prompt
Move hooptop 1000 pixels lower
User prompt
snap and connect hooptop and hooprimseparate assets together
User prompt
snap hooptop and hooprimseparate assets together. Hooprimseparate bottom part should connect right to the top part of hoopTop asset
User prompt
When ball is thrown and flying, it should change its asset to a different one
User prompt
When ball is thrown and flying, it should change its asset to a different one.
User prompt
When ball hasscored true or false, reset ball asset visual to ball
User prompt
Make zindex of flying ball 999
User prompt
Make zindex of hooprimseparate 998
User prompt
make hooprim zindex 997
===================================================================
--- original.js
+++ change.js
@@ -57,11 +57,23 @@
self.removeChild(ballGraphics);
ballGraphics = LK.getAsset('ballFlying', 'Flying Basketball', .5, .5);
self.addChild(ballGraphics);
self.flyingAssetChanged = true;
+ } else if (!self.hasThrown && self.flyingAssetChanged) {
+ self.removeChild(ballGraphics);
+ ballGraphics = LK.getAsset('ball', 'Basketball', .5, .5);
+ self.addChild(ballGraphics);
+ self.flyingAssetChanged = false;
}
if (self.hasScored) {
self.alpha -= 0.15;
+ if (self.alpha <= 0) {
+ self.removeChild(ballGraphics);
+ ballGraphics = LK.getAsset('ball', 'Basketball', .5, .5);
+ self.addChild(ballGraphics);
+ self.alpha = 1;
+ self.hasScored = false;
+ }
} else {
self.alpha += 0.15;
if (self.alpha > 1) {
self.alpha = 1;
4:3 Simple rectangle white outline. Black background
Very cute cat looking into camera. Full body cat. Cartoon art style. Ginger cat. No UI elements in the picture like popups, close buttons etc.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
background
Head of a cute ginger cat peeking from a box
heart. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.