User prompt
If the ball moves to the right at birth, replace it with ball2.
User prompt
make it randomly spawn either ball or ball2 every time a spawn occurs.
User prompt
make it randomly spawn either ball or ball2 every time a spawn occurs.
User prompt
make it randomly spawn either ball or ball2 every time a spawn occurs.
User prompt
make it randomly spawn either ball or ball2 every time a spawn occurs.
User prompt
make it randomly spawn either ball or ball2.
User prompt
only one of the balls is always born. Fix it.
User prompt
only one of the balls is always born. Fix it.
User prompt
make it randomly spawn either ball or ball2.
User prompt
make it randomly spawn either ball or ball2.
User prompt
limit the rebirth, either the ball or the ball2 must be randomly born.
User prompt
if the birth process is repeated, either a ball or a ball2 must be randomly born.
User prompt
only one of the balls is born. Fix it.
User prompt
only one of the balls is born. Fix it.
User prompt
if the birth process is repeated, either a ball or a ball2 must be randomly born.
User prompt
limit the birth process completely, either a ball or a ball2 should be randomly born
User prompt
limit the birth process completely, either a ball or a ball2 should be randomly born
User prompt
limit the birth process completely, either a ball or a ball2 should be randomly born
User prompt
make it randomly spawn either ball or ball2.
User prompt
make it randomly spawn either ball or ball2.
User prompt
make it randomly spawn either ball or ball2.
User prompt
make it randomly spawn either ball or ball2 every time.
User prompt
Fix Bug: 'Uncaught ReferenceError: ballGraphics is not defined' in or related to this line: 'self.removeChild(ballGraphics);' Line Number: 47
User prompt
make it randomly spawn either ball or ball2 every time.
User prompt
make it so that every time either ball2 or ball2 is randomly born with equal probability.
===================================================================
--- original.js
+++ change.js
@@ -33,9 +33,9 @@
});
// Ball class
var Ball = Container.expand(function () {
var self = Container.call(this);
- var ballGraphics = self.attachAsset(Math.random() < 0.5 ? 'ball' : 'ball2', {
+ var ballGraphics = self.attachAsset('ball', {
anchorX: 0.5,
anchorY: 0.5
});
self.velocity = {
ancient nautical chart. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
head of the wind god that blows wind on ancient maps, Middle Ages, black and white, wind from the mouth. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
scrub
pirate treasure chest. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
anchor. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cannonball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
explosion, black and white. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.