User prompt
play death sound when fairy is destroyed
User prompt
make fairy explosion bigger and with a lot of colors
User prompt
destroy fairy and make it explode with it collides with enemy or bullet. do not flash screen
User prompt
when fairy collides with an enemy or bullet, destroy fairy with a big explosion and wait for 2 seconds before showing game over
User prompt
allow fairy to move a little more up
User prompt
play letsgo sound one second after the game starts
User prompt
on game start play letsgo sound
User prompt
red from 4 should be a little stronger than 3
User prompt
replace 4 tint from green to a sofr red
User prompt
for hitpoints not 1 do not use yellow collor
User prompt
add a few more stars on the starfield
User prompt
make enemies colors for hitpoints between 4 and 12 different, not all variations of red. use sofr colors of the rainbow
User prompt
add colors for hitpoints on enemy class from 4 to 12 in the same pallet of colors as 1 to 3
Code edit (6 edits merged)
Please save this source code
User prompt
play nono sound when player can't purchase an upgrade for not enough diamonds
User prompt
play hooray sound when an upgrade is purchased
User prompt
update diamons cost for powerups to 5 for powerup1 5 for powerup2 and 10 for powerup3. make sure it is updated everyower in the game
User prompt
set initial dimaond count t 0
User prompt
powerups costst should be 5 5 and 10
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
when boss speed increases, also increase its bullets speed
User prompt
bossbullets shoudl also increase speed when boss speed increases
Code edit (1 edits merged)
Please save this source code
User prompt
bosses should move faster every 5 seconds, but reset when they are killed
===================================================================
--- original.js
+++ change.js
@@ -481,9 +481,9 @@
});
powerup1DiamondIcon.x = powerup1.x;
powerup1DiamondIcon.y = powerup1.y + powerup1.height / 2 + 50;
self.addChild(powerup1DiamondIcon);
- var powerup1Cost = new Text2('10', {
+ var powerup1Cost = new Text2('5', {
size: 100,
fill: "#ffffff",
stroke: "#000000",
strokeThickness: 5
@@ -555,9 +555,9 @@
});
powerup2DiamondIcon.x = powerup2.x;
powerup2DiamondIcon.y = powerup2.y + powerup2.height / 2 + 50;
self.addChild(powerup2DiamondIcon);
- var powerup2Cost = new Text2('20', {
+ var powerup2Cost = new Text2('5', {
size: 100,
fill: "#ffffff",
stroke: "#000000",
strokeThickness: 5
@@ -614,9 +614,9 @@
});
powerup3DiamondIcon.x = powerup3.x;
powerup3DiamondIcon.y = powerup3.y + powerup3.height / 2 + 50;
self.addChild(powerup3DiamondIcon);
- var powerup3Cost = new Text2('30', {
+ var powerup3Cost = new Text2('10', {
size: 100,
fill: "#ffffff",
stroke: "#000000",
strokeThickness: 5
@@ -660,37 +660,37 @@
};
self.down = function (x, y, obj) {
var localPos = self.toLocal(obj.global);
if (powerup1.intersects(self.toLocal(obj.global)) || powerup2.intersects(self.toLocal(obj.global)) || powerup3.intersects(self.toLocal(obj.global))) {
- if (powerup1.intersects(self.toLocal(obj.global)) && diamondCount >= 10) {
+ if (powerup1.intersects(self.toLocal(obj.global)) && diamondCount >= 5) {
console.log("Powerup1 touched");
diamondCount -= 10;
diamondCounterTxt.setText(diamondCount);
heroFireRate = Math.max(5, heroFireRate - 5); // Increase fire rate when the first powerup is selected, but not less than 5
self.destroy(); // Close powerup menu
isPowerupScreenActive = false;
- } else if (powerup2.intersects(self.toLocal(obj.global)) && diamondCount >= 20) {
+ } else if (powerup2.intersects(self.toLocal(obj.global)) && diamondCount >= 5) {
console.log("Powerup2 touched");
diamondCount -= 20;
diamondCounterTxt.setText(diamondCount);
// Add action for powerup2
self.destroy(); // Close powerup menu
isPowerupScreenActive = false;
- } else if (powerup3.intersects(self.toLocal(obj.global)) && diamondCount >= 30) {
+ } else if (powerup3.intersects(self.toLocal(obj.global)) && diamondCount >= 10) {
console.log("Powerup3 touched");
diamondCount -= 30;
diamondCounterTxt.setText(diamondCount);
// Add action for powerup3
self.destroy(); // Close powerup menu
isPowerupScreenActive = false;
} else {
var messageText = 'I need more shiny things!';
- if (powerup1.intersects(self.toLocal(obj.global)) && diamondCount < 10) {
+ if (powerup1.intersects(self.toLocal(obj.global)) && diamondCount < 5) {
+ messageText = 'I need 5 diamonds for this powerup!';
+ } else if (powerup2.intersects(self.toLocal(obj.global)) && diamondCount < 5) {
+ messageText = 'I need 5 diamonds for this powerup!';
+ } else if (powerup3.intersects(self.toLocal(obj.global)) && diamondCount < 10) {
messageText = 'I need 10 diamonds for this powerup!';
- } else if (powerup2.intersects(self.toLocal(obj.global)) && diamondCount < 20) {
- messageText = 'I need 20 diamonds for this powerup!';
- } else if (powerup3.intersects(self.toLocal(obj.global)) && diamondCount < 30) {
- messageText = 'I need 30 diamonds for this powerup!';
}
var message = new Text2(messageText, {
size: 100,
fill: "#ff0000",
8-bit. cartoon. white star.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon 8 bit fairy dust. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon, 8bit, fireball. Black border. Cicular.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon, 8 bit, shield. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8bit, cartoon, axe. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
dark electric ball, 8bit, cartoon.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8bit, cartoon, treasure chest frame. very big empty center. only a fine border of chest. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
shoot
Sound effect
boom
Sound effect
Hit
Sound effect
backgroundmusic
Sound effect
bossbullet
Sound effect
bossappear
Sound effect
hit
Sound effect
diamondcollect
Sound effect
hooray
Sound effect
nono
Sound effect
letsgo
Sound effect
death
Sound effect
yes
Sound effect