User prompt
boss should shoot 2 deathlaser at same time
User prompt
make deathlaser speed little bit higher
User prompt
i change the code but still not working , can you look to code to find my mistake
Code edit (1 edits merged)
Please save this source code
User prompt
now add boss deathlaser for 5 hp or less with 1 shooter
User prompt
okay now, if boss has 5hp left boss completly stop shooting
User prompt
we counter a bug, for that first boss will stop shooting if it has 5 hp left
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'shootDeathLaser')' in or related to this line: 'self.shootDeathLaser = function () {' Line Number: 365
User prompt
if boss has 5 hp left boss start shooting deathlaser using death laser asset
User prompt
make boss hp 10
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'intersects')' in or related to this line: 'if (boss && boss.intersects && lasers[i].intersects(boss)) {' Line Number: 261
User prompt
okay lets make boss healt 10 and if boss has 5 hp left it should stop shooting from left laser but keep continue from right and center
User prompt
we counter a bug, boss stop shooting after 1 damage instead of keep shooting with middle and right shooter
User prompt
okay lets make it like this, after boss take 1 damage boss left shooter stop shooting
User prompt
we counter a bug, after boss take 1 shot its stop shooting, it should continue shooting with 2 laser
User prompt
after boss take 1 damage make boss starts shooting 2 laser, and after 1 more damage boss starts shooting 1 laser
User prompt
make it 0.1
User prompt
make it 0.5
User prompt
add background music to the game using space music asset
User prompt
use kabom sound effect for kabom asset
User prompt
we counter a bug only 1 of them is dissapering 2 of them left make all disaper at same time
User prompt
make kabom showtime same as destroy
User prompt
make the explosion size 1/4 size of boss but use it 3 times at same time
User prompt
bigger
User prompt
make explosion bigger
===================================================================
--- original.js
+++ change.js
@@ -272,9 +272,9 @@
for (var i = 0; i < kabomEffects.length; i++) {
kabomEffects[i].destroy();
}
}, 200);
- LK.getSound('explosion').play();
+ LK.getSound('kabom').play();
boss.destroy();
boss = null;
}
lasers.splice(i, 1);
star white. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
enemy space ship boss it should be big and looking from top. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
explosion. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
linear laser red horizontal. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
red pixel circle with black background and hearth on middle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
red circle with black background and bullet on middle next to x2 symbol. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.