User prompt
make the player shoot bullets and make it so the bullet counter goes down when the player shoots one
User prompt
the purple things are the bullets
User prompt
when the player shoots, the bullet counter doesn't decrease
User prompt
make it show how many bullets you have left
User prompt
make there be a limit to the bullets and by shooting the objects, you can collect more bullets
Initial prompt
Project Cloud
===================================================================
--- original.js
+++ change.js
@@ -15,9 +15,9 @@
bullet.x = this.x;
bullet.y = this.y - this.height / 2;
heroBullets.push(bullet);
game.addChild(bullet);
- // this.bulletLimit--;
+ this.bulletLimit--;
bulletCountTxt.setText('Bullets: ' + this.bulletLimit); // Update bullet count display
} // Shoot only if bullets are available and decrement bullet limit
};
});
android. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
letter X png. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
space background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
galaxy background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
galaxy background. High quality
space background.. High contrast