User prompt
fix performace on bosses bullet shooting
Code edit (1 edits merged)
Please save this source code
User prompt
boss2 should not shoot two bullets together
User prompt
boss should not wait for its bullet to be destroyed or offscreen to shoot next bullet
User prompt
boss should shoot bullets more often
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'y')' in or related to this line: 'if (bullets[i].y < -50) {' Line Number: 1117
Code edit (10 edits merged)
Please save this source code
User prompt
boss can shoot when a bossbullet is on screen, but not two together
User prompt
enemy2 should keep on movinng dowrwads an elimate the instance when off screen
User prompt
increase bosses shooting rate
User prompt
increase boss speed rate
User prompt
make sure enemy2 does not do sudden position changes
User prompt
make sure enemy waves spawn offscreen and start apeparing down from the top
User prompt
make sure only shoots one bossbullet at a time
User prompt
when boss is destroyed, make sure its bullets are also destroyed and memory is released
Code edit (1 edits merged)
Please save this source code
User prompt
make sure boss adds score when destroyed, add 200 points
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'hitpoints')' in or related to this line: 'score += enemies[l].hitpoints * 10; // Add points based on enemy hitpoints' Line Number: 1250
Code edit (3 edits merged)
Please save this source code
User prompt
for hitpoints from 4 to 12 use tints similar to: 0xffe066, 0xcc66ff, 0xff6666, 0x99ccff, 0xffa500
User prompt
make higher colors of higher hitpoints colorfull but soft
User prompt
maake sure enemy2 stays within the limits of the sides of the screen, a little off is ok
User prompt
make sure all enemy waves enemies have the same size and keep aligned like originally intendend
User prompt
improve enemy array to improve performance
User prompt
make sure every enemy adds points
===================================================================
--- original.js
+++ change.js
@@ -1075,9 +1075,9 @@
if (bullets[i] instanceof Bullet) {
bullets[i].update();
}
bullets[i].update();
- if (bullets[i].y < -50) {
+ if (bullets[i] && bullets[i].y < -50) {
bullets[i].destroy();
bullets.splice(i, 1);
}
}
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